November 22, 2002
HTML Docs For JavaScript
Tantek has come up with an extremely clever way to include HTML documentation for JavaScript code inside the same document using comment hacks. The particular (and peculiar) sequence of SGML comments <!– –> and C-style comments /* */ allow the document to be parsed as either HTML or JavaScript depending on the way it’s imported into the document.












