Custom formatting of template tags (Idea Community Edition 2016.1)
已回答
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
请先登录再写评论。
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