Better?
Maybe just make the finished link that has everything in it as a code, (no need to code the smid and the dd tag) so the post doesn't look cluttered. I was thinking of doing it myself as a wiki, but came there and found the thread locked.
ETA: Or you can leave the post the way it was so people can understand what's going on, and have the codes in a wiki. Whatever is more reader friendly.