I started playing around with
Bertrand's microsling
(P.S. do not google for the name of the project), which is a minimalized version of the
Apache Sling (incubating)
framework. Microsling supports two templating languages, Velocity and ESP which is a
JSTE
-inspired JSP-like syntax for Javascript. As I am a fan of server-side Javascript, I opted for the ESP template language and noted there is no syntax highlighting support in my editor.
With jEdit this is no problem, however. I just copied and adjusted the JSP syntax highlighting definition file, adopted it to ESP and got fine syntax highlighting for ESP files.
All you need to do is download esp.xml
, put it into your jEdit-modes directory (either in the jEdit application folder or in $HOME/.jedit/), and add following line to the catalog file in the same directory:
<MODE NAME="esp" FILE="esp.xml" FILE_NAME_GLOB="*.esp" />
Update: As I learned from Felix
, ESP is not inspired by JSTE, it is just very similar. In fact ESP is being used since 2001 by Day. And as I learned from Betrand
, it is not Bertrand's microsling, he was just the first to write about it.