Code Highlighting for Erlang

by Sean Cribbs

Last night, in the expectation that I would start posting things about my journey in learning Erlang, I wrote up a language file for Dan Webb’s CodeHighlighter. You can get the results from my github repo. Here’s a sample of the results:

-module(foo).
-export([bar/1]).

% Pwns joo
bar(Baz) ->
  case Baz of
    pwned -> 
      io:format("Eat that!~n", []);
    bin -> 
      <<"Eat that!">>;
    _ -> 
      io:format("What are you doing?~n", [])
  end.

I’d appreciate any contributions — just fork and send a pull request!

© 2006-present Sean CribbsGithub PagesTufte CSS