Does anyone know of a syntax highlight for Mako templates for Eclipse or for TextMate?
I know that there is a .mako
syntax highlighter for the default text editor in Ubuntu.
Does anyone know of a syntax highlight for Mako templates for Eclipse or for TextMate?
I know that there is a .mako
syntax highlighter for the default text editor in Ubuntu.
I just did some googlin'. There is a Mako bundle.
I installed it under ~/Library/Application Support/TextMate/Bundles/
like so:
cd ~/Library/Application\ Support/TextMate/Bundles/ svn co http://svn.makotemplates.org/contrib/textmate/Mako.tmbundle
In TextMate, I did Bundles | Bundle Editor | Reload Bundles
, and Mako
showed up in the menu.
It adds new HTML language variant: HTML (Mako)
, snippets and stuff like that.
Hope this helps.
Claudio,
I don't use mako templates, but a quick google search turned up this article from the mako-discuss google group, which refers to a Colorer library syntax highlighter. This sounds like it might be a decent lead for you.
-matt
What I ended up doing was naming my Mako Templates with .html suffix and thus getting the usual HTML syntax highlighting etc. that I am used to. Alternatively I could have associated .mako suffix with the HTML handler. While this does not address Mako specifically, it was enough for me, since I find most of the template is plain HTML anyway.
You can go to:
This colors the text, works OK for me :)
P.S. Be sure to have the Aptana plugin installed.
There is a Mako Template Editor for Eclipse. To install, copy the plugins directory with the jar file into your dropins folder in your Eclipse root folder. That is, a manual installation of a Eclipse plugin in jar format.
Windows (menu) > Preference > General > Editor > File Associations Add *.mako in File Types (upper box) and add Html editor in Associated editor (lower box)
Windows (menu) > Preference > General > Editor > Content Types
Under Text find HTML and add *.mako in File associations.
The LiClipse plugin (http://www.liclipse.com/), provides Mako support out of the box for Eclipse (and as a note, if you want support for any other language in Eclipse, LiClipse can load any existing TextMate bundle -- http://www.liclipse.com/textmate_bundles.html -- for that).