Changing Syntax Highlighing for certain file types?

Is there any way to change what syntax highlighting is used for a given file type?

We use a templating engine similar to smarty in our applications however, the file extension isn’t .tpl so we’d like to know how we can use smarty highlighting in a different file type?

1 Like

Pinging @rumpelsepp, as GitLab uses his gem for syntax highlighting. He may be able to help you add the extension in the gem to be officially supported.

I am also interested in this, but in addition to changing syntax types, how would I go about adding additional syntax templates along with their respective extensions. For example I have .SQR files and a special syntax template that I would like to add, in addition to other custom file types. Thanks!

1 Like