I have long made Ethan Schoonover’s Solarized by default color scheme for my text editing applications, be it Textmate, BBEdit, or the terminal. But, I confess, Ethan’s defaults for basic contrast are a little too close together, and so I also routinely darken the foreground, the text itself, to one of the other base colors. In some cases, I need to know what the hexadecimal descriptors are:
This is just one of those tips that is so amazing that I have to note it down. As many readers know, one of the rules that XML has that is not part of HTML is that all tags must be closed. Thus, the IMG and BR tags in HTML are something of a problem for the child of the marriage of XML and HTML: XHTML. The solution was to add a self-closing slash just before the closing angle bracket. For example: ` `. It turns out that my text editor of choice, [Textmate](http://macromates.com/), has the ability to do this for you:
> In TM’s Advanced preferences, in the Shell Variables segment, add a new variable named TM_XHTML with the value of / (single slash) and you will get this trailing slash everywhere you use a singleton tag, without editing any of the snippets.