We were asked recently when Komodo would provide syntax highlighting for http://haml.hamptoncatlin.com/, a rails markup language for showing views.
It didn't take long to whip up an extension with UDL, only it doesn't handle indent blocks, since we haven't implemented indentation-based parsing yet. Still, since all a syntax highlighter has to do is color text, but not understand it (most of the time), it works until indentation becomes significant.
This screenshot of the standard.haml test file in Komodo shows what you'll get if you install this extension:
Those yellow strings are my doing; I like to see what's going on when I write a syntax highlighter, but I don't want the scheme to be too hard on the eyes.
The attached zipfile contains two nested zip files:
haml_language-0.1.0-ko.xpi : install this into Komodo to get Haml syntax highlighting
haml.zip : contains the source code for building the xpi. See my tutorial on supporting Kid to see how to merge this source code with the Luddite build system. The instructions are in the first part.
I give this xpi a version 0.1 because indentation is significant in Haml the same way it is in Python, and we need to add that to UDL. For example, this will work in this version:
/ a comment
but this won't:
/ indentation means this is a comment but this line is data content
Anyone who figures out how to make indentation blocks work with this version of UDL, please let me know how you did it.