Thu, 2008-02-28 08:02.
Ajaxian just featured a rad comment hack, originally posted by Dirk Ginader, for those times when you need to comment and uncomment a section of code a bunch. By adding or removing just one character you can comment/uncomment an entire block of code. This saves a bunch of time, and works great for just about any language that uses C style commenting.
Here's how to do it with (X)HTML:
<!--
<p>lorem ipsum dolor</p>
<!-->
just add a >, to uncomment the whole section.
<!-->
<p>lorem ipsum dolor</p>
<!-->
This seems to work in any browser, and validates as both HTML 4 and XHTML strict.