PATH://adammoro.net/labs/scripting-sandbox/javascript/examples/

Syntax Highlighting

Below is an example of syntax highlighting with Javascript and CSS. Got this one from Simon Willison's blog.

h1 {
color: navy;
border-bottom: 1px solid black; }
/* Make all <h1> and <h2> elements navy blue */
h1, h2 {
color: navy;
}

#logo {position: absolute; top: 0px; left: 0px;}

div#header h1.blah {
text-align: center; }

<div class="blogentry first">...</div>