Extending HTML

I'm trying to support FreeMarker syntax within HTML. Is there a way to "extend" an existing filetype (such as HTML) and simply tweak it? Looking at the JavaScript example plugin (which, by the way, seems to be outdated against the current Open API), I saw "LayeredLexer" and thought maybe that can help.

4 comments

Pat Lightbody wrote:

I'm trying to support FreeMarker syntax within HTML. Is there a way to "extend" an existing filetype (such as HTML) and simply tweak it? Looking at the JavaScript example plugin (which, by the way, seems to be outdated against the current Open API), I saw "LayeredLexer" and thought maybe that can help.


This is currently impossible. You'll need to vote for
http://jetbrains.net/jira/browse/IDEA-624 and
http://jetbrains.net/jira/browse/IDEABKL-3328 with the rest of us.

0

Done and done.

So how does JSP work then? It supports Java, JS, and HTML. Is that something custom they did?

0

Pat Lightbody wrote:

Done and done.

So how does JSP work then? It supports Java, JS, and HTML. Is that something custom they did?


Yes, I imagine the code is very tied to internal JB classes and parsers and
things like that.

0

Hello Pat,

PL> I'm trying to support FreeMarker syntax within HTML. Is there a way
PL> to "extend" an existing filetype (such as HTML) and simply tweak it?
PL> Looking at the JavaScript example plugin (which, by the way, seems
PL> to be outdated against the current Open API), I saw "LayeredLexer"
PL> and thought maybe that can help.

The sources of the JavaScript plugin included in the Plugin Development Package
are always the real up-to-date source code of the plugin included with IDEA,
so they always match the current OpenAPI.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0

Please sign in to leave a comment.