tip

Coda tip: show "invisible characters" when you highlight text

Coda is awesome. Here's a quick way to make it awesomer: invisible visible invisible characters!

Coda lets you show all the newlines, tabs and spaces, which comes in handy. But the default settings are pretty distracting. If you change the invisible character display color to match the background, they only show up when you select text.

First do this:

Show invisible characters

Then change this:

Change invisible character color to match the background

And rock out like this:

Invisible visible invisible characters!

uberquick comments in html/xhtml

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.