This is mucho better :-) Dynamic colors in the source. Yay! For people interested in the code behind the screenshot: it's entirely done in JS above an nsPlainTextEditor. In fact, the hardest part is done by a CSS stylesheet and a good design. The rest, ie dealing with empty nodes, joining nodes, quoted string handling uses JS.

Colors in the CSS source