Custom formatting of template tags (Idea Community Edition 2016.1)
Answered
Hello!
I use Django-like templates (Zotonic). I would like to have a syntax highlighting for the following expressions:
{{ variable }}
{_ some text _}
{# comment #}
{% code %}
This could be applied to all HTML files actually.
It's OK If templates aren't supported in the community editions, I just wish to have a syntax highlighting. How can I make this happen?
[Idea Community Edition 2016.1 / Ubuntu]
Any help appreciated.
Greetings,
Jacek
Please sign in to leave a comment.
This feature requires specialized templates support that is available only in Ultimate.
So, I need an Ultimate to have syntax highlighting... Is it possible to create a file format definition, like in Vim or Notepad++? I would define a HTML format there along with django tags.
We support TextMate bundles for custom highlighting, so you can use some existing bundle or create your own to get any highlighting that you can define using the TM bundle format: https://www.jetbrains.com/help/pycharm/2016.1/textmate.html.
It took some time to get it working but there is some improvement. Thank you :)
Greetings - Jacek