Skip to main content
edited title
Link
Stonecraft
  • 869
  • 2
  • 19
  • 35

Adding a new file extension for Kate syntax hilightinghighlighting did not work as expected

Source Link
Stonecraft
  • 869
  • 2
  • 19
  • 35

Adding a new file extension for Kate syntax hilighting did not work as expected

I want to get Kate to highlight files ending in .jinja2 as html.

As described here, I tried adding *.jinja2 to the markdown/html mime type using settings, but even after closing/reopening Kate, the addition of *.jinja2 had no effect.

Changing the file extension to .html resulted in the expected highlighting. I tried playing with the priority setting, but no luck.

enter image description here

Is there something else I need to do to get Kate to associate a custom file extension with a syntax highlighting mode?