Hi, I was searching eclipse plugin to get Mako editing nicer in
eclipse. I didn't found any readymade plugin so I wrote highliter
definitions for Mako for Colorer library
http://colorer.sourceforge.net/
which has eclipse plugin. Hopefully it'll be added to official release
soon.
Anyways if someone is really hurry to try it out (or make it better)
here's the changes that I had to do to
https://sourceforge.net/project/showfiles.php?group_id=34855&package_id=75558
0.8.0 version.
I added line:
<location link="hrc/auto/mako.hrc"/>
to net.sf.colorer_0.8.0/colorer/catalog.xml
and wrote:
net.sf.colorer_0.8.0/colorer/hrc/auto/mako.hrc
And associated *.mak and *.mako to be colorer files. Actually *.mako
should be only working one since *.mak is already defined to be
Makefile in colorer. I added mako.hrc to below since it's not that big
file anyways.
Mikael Lepistö
------- net.sf.colorer_0.8.0/colorer/hrc/auto/mako.hrc --------
<?xml version="1.0" encoding="Windows-1251"?>
<!DOCTYPE hrc PUBLIC "-//Cail Lomecb//DTD Colorer HRC take5//EN"
"
http://colorer.sf.net/2003/hrc.dtd">
<hrc version="take5" xmlns="
http://colorer.sf.net/2003/hrc"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://colorer.sf.net/2003/hrc
http://colorer.sf.net/2003/hrc.xsd">
<prototype name="mako" group="inet" description="Mako templates">
<filename>/\.(mako|mak)$/i</filename>
</prototype>
<type name="mako">
<import type="def"/>
<import type="python"/>
<import type="html"/>
<region name="MakoTag" parent="python:python"/>
<region name="PythonBlock" parent="def:InsertionEmbed" />
<scheme name="mako">
<inherit scheme="html:html"/>
<block start="/##/" end="/$/" scheme="def:Comment"
region="def:LineComment"/>
<!-- python colorization to mako tags -->
<block start="/\<%.*(def|doc|textpage|include|namespace.*|
inherit|call)/"
end="/(\>|$)/"
scheme="python:python" region="MakoTag"/>
<block start="/\<%/" end="/%\>/" scheme="python:python"
region="PythonBlock"/>
<block start="/\$\{/" end="/\}/" scheme="python:python"
region="PythonBlock"/>
<block start="/^\s*%/" end="/$/" scheme="python:python"
region="PythonBlock"/>
</scheme>
</type>
</hrc>