update: the definition has been updated to include support for atoms, variables and function names as well as additional file extensions. screen shot and downloadable content have been updated.
thus far i’ve done all of my erlang development on fedora using vim or kwrite (which does a decent job in ruby mode).
but today i found myself on a windows box and wanted a basic syntax highlighting editor for erlang that was free and worked on windows. oh – and not eclipse+erlide. i wanted something small and fast.
here’s a screen shot …
notepad++ has pretty weak syntax highlighting but was sufficent to do most of what i wanted. some regex based rules would make this a more robust.
highlighted entities include
erlang reserved words (and named operators)
variables
atoms
function names (same coloring as atoms)
operators
comments
kernal, stdlib, mnesia and odbc modules.
support for *.erl, *.hrl and *.htp extentions
i’ve probably missed several things.
looks a lot better than nothing and it took all of 10 15 minutes.
if you are using notepad++ here is the file:
<a href="http://www.roberthorvick.com/wp-content/uploads/2009/07/erlangsyntaxdefinition.zip">http://www.roberthorvick.com/wp-content/uploads/2009/07/erlangsyntaxdefinition.zip</a>
and here are the instructions on how to install it:
<a href="http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=syntax_highlighting_sharing">http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=syntax_highlighting_sharing</a>
and here’s the instructions on modifying or creating your own:
<a href="http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=user_defined_languages">http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=user_defined_languages</a>