it's Toast's script in the HTMLing thread on Article Workshop (http://www.smogon.com/forums/threads/htmlers-validation-guide-and-other-html-related-things.3464275/#post-4473374) just put the 2 lines of script on top of your HTML and load it on your browser.
hmm, I tried that before but the css from Smogon would never load :( Guess I was doing something wrong
just put the 2 lines of script on top of your HTML and load it on your browser.