Home
News
Life
Geeks
Projects
Pics
Links







Geeks

This is a section that will contain problems I've encountered along my travels in the weird, wonderful and downright frustrating world of computers.

I hope to post up solutions and workarounds to common and obscure things. Hopefully more obscure than common, otherwise I might aswell put a link in to Experts Exchange.

Things like:



04-Feb-2006 02:49

Code Highlighter
08-Oct-2005 11:12

Having written the Geeks section, I decided it would be nice to start off with an article on how I've got code highlighting done.

The links above are the classes I've used to create this section and the code highlighting functionality. Of particular interest is the CodeSnippet class that does all the formatting.

The basic theory around this is to use Regular Expressions to search for keywords and to place <span class="keyword"> tags around them. Likewise for comments and HTML comments.

Anyway, the code is there for all to see. Got Amy screaming in my ear so got to go! No time for more explanation. Sorry!