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

4 comments

This feature requires specialized templates support that is available only in Ultimate.

0

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.

0

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.

1

It took some time to get it working but there is some improvement. Thank you :)

Greetings - Jacek

0

Please sign in to leave a comment.