Mako Templates in Eclipse

523 views
Skip to first unread message

Robert Rollins

unread,
Oct 15, 2010, 3:16:08 PM10/15/10
to Mako Templates for Python
Hi all! My code shop recently decided to switch to using Mako
templates, and I'm really liking Mako compared to psp (barf!). We all
use Eclipse for our Python coding, though, and unfortunately Mako and
Eclipse really don't seem to get along very well. The best I've been
able to manage is associating our Mako files with the Aptana HTML
Editor, but it barfs pretty bad on Mako's <% /> syntax.

So, I'm wondering a few things:
1. Is there an existing solution for making Eclipse properly highlight
Mako templates? I read about EclipseColorer on this list and
installed it, but I haven't managed to make it work unless I name my
files with the .mako extension, which I can't do for various reasons.

2. How could I create my own solution for Eclipse?

3. If that fails, are there any editors (for OSX) that *can* properly
highlight Mako templates?

Michael Bayer

unread,
Oct 15, 2010, 8:04:50 PM10/15/10
to mako-d...@googlegroups.com

I would imagine that Eclipse has a system by which new syntaxes can be added. I've worked with Eclipse mostly in the Java world, and while I know it can be expanded in pretty much any way possible, there is a steep learning curve towards creating extensions for it.

As for OSX I use TextMate along with the Mako tmbundle that's on the wiki (http://www.makotemplates.org/trac/attachment/wiki/WikiStart/Mako.tmbundle.zip) , I didn't create it originally but I made some updates to it and it now handles current Mako syntax fully.


Reply all
Reply to author
Forward
0 new messages