New/Custom Syntax Highlighting

I want to give ExpressionEngine another chance :-) New version 6 looks quite polished. 

However, there is no syntax highlighting for their custom template tags. Currently, everything between the {} (file type is .html) is just plain white. Is there any way to get a better view?

Is it possible to add my own highlighting? IIRC Atom or VSC had a pretty simple solution to define custom highlighting.

0

ExpressionEngine templates are not yet supported (https://youtrack.jetbrains.com/issue/WI-2894). What file type did you assigned the `.html` extension to?

0

… "templates are not yet supported" … yet implemented for a ticket 11 years old :-D

I have not changed anything. Have no idea where and how. Is there a tutorial creating a new one? I guess it is more of a complex todo when nobody came up with a solution since 2010.

0

You need to develop a custom plugin for this template language. Please check this tutorial: http://www.jetbrains.org/intellij/sdk/docs/tutorials/custom_language_support_tutorial.html.

Here's the open source example of the template language implementation: https://github.com/JetBrains/intellij-plugins/tree/master/handlebars

Note that we have a special forum for questions regarding plugins development - https://intellij-support.jetbrains.com/hc/en-us/community/topics/200366979-IntelliJ-IDEA-Open-API-and-Plugin-Development. Feel free to ask questions there

0

Thanks for the links. Looks quite effortful and for a non-Java developer not like an easy task. Frankly, Panic's Nova is a lot easier in this situation, and I'll give it a try now.

Anyhow, thanks for your help!

0

You can try using Twig Plugin for syntax highlighting as the syntax is more or less similar - install the plugin and then associate your web templates (<file_name>.html) with Twig file type in Settings | Editor | File Types

0

Twig uses double {{ where ExpressionEngine uses only { so it doesn't work.

Found this post https://blog.jetbrains.com/pycharm/2013/06/textmate-bundles-in-pycharm/ but it doesn't work with available bundles. I guess they're too old 

 

0

请先登录再写评论。