Living on the Edge

Javascript Code Highlighter

Posted on January 03, 2008

I’ve had a lot of people ask me about the syntax highlighting used on this blog site. When I was setting up this blog there were a couple of different solutions that involved plugins to Mephisto. Instead of going that route I figured there must be a javascript based solution. I found this javascript based highlighter and began to use it effortlessly. It’s not the most efficient thing but it does work well. The only modifications I made was to to the syntax coloring file to make it look more like the Vibrant Ink theme in Textmate.

Comments
  1. MikeJanuary 04, 2008 @ 01:45 AM

    Try this – http://softwaremaniacs.org/media/soft/highlight/highlight.zip Description (in Russian) – http://softwaremaniacs.org/soft/highlight/

  2. thejuJanuary 04, 2008 @ 10:01 AM

    Another very good javascript highlighter based on a python project “Pygments” (http://pygments.org/) is “Pygments Code Colorizer” (http://www.pygments.com/)

  3. EmptyJanuary 04, 2008 @ 12:05 PM

    Mike and theju: Thanks for the recommendations. I’ll have to give those both a look.

  4. Ivan SagalaevJanuary 04, 2008 @ 08:03 PM

    BTW, Michael… I keep forgetting to ask you if you intentionally use “html” highlighting for django templates instead of “django” highlighting or is it just an oversight?

    Thanks for linking anyway :-)

  5. EmptyJanuary 04, 2008 @ 08:40 PM

    Ivan: Because I’m a moron. I didn’t even notice that you support Django highlighting. Thanks for that. By the way keep up the good work. I’m really grateful.