Mephisto syntax highlighting

January 19th, 2008

One thing I definitely want to be able to do is be able to post code snippets, which without syntax highlighting is quite tricky.

I’m using this technique, except that I managed to install the required dependency using apt-get instead of compiling the source myself. That seemed like the path of least resistance, and in total this took about 30 seconds to get working.

Here’s a ruby example with the blackboard theme

def hello_world
  puts 'hi'
end

And a C# example with the allhallowseve theme:

public static void Main(string[] args){
  Console.WriteLine("hello world");
}

Sorry, comments are closed for this article.