views:

1501

answers:

4

Hi, 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.

Thanks a lot. Claudio.

+1  A: 

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

Matt Newby
yep I tried that one but did not work for me... :( Thanks a lot anyway!!!!
ClaudioA
+2  A: 

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.

Heikki Toivonen
+6  A: 

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.

Pavel Repin
thanks a lot man, i´m going to test this right now.
ClaudioA
Working great, some minor tweak, once loaded... go to Bundle Editor, select Mako, then HTML (mako) and in the second line of the script, the file type should be MAKO and not MAO, once changed, is looking really really cool.Thanks¡
ClaudioA
thanks a ton! the link above doesn't work anymore, but this does:git clone http://github.com/williamsjj/Mako.tmbundle.gitAlso, if this stumps anyone, I had to create a TextMate/Bundles folder myself, it wasn't already there.
denrk
The link has changed : http://www.makotemplates.org/trac/attachment/wiki/WikiStart/Mako.tmbundle.zip
Studer
A: 

There is a Git repos: http://github.com/williamsjj/Mako.tmbundle.git

Lasse
Thanks for the link :)
ClaudioA