Sublime Forum

*.tpl files syntax highlighing in version 3.2 is gone!

#1

I’ve just updated to the newest version 3.2. When I open one of my *.tpl files the syntax highlighting says “Plain Text” instead of “HTML”. Why do I have to switch this everytime I open a file? Before the update every *.tpl file was noticed as HTML after opening it. Is that a bug or a feature?

0 Likes

#2

It’s done intentionally because tpl means nothing but template. It could be literally a template of ANY language.

If in your case, they are mostly HTML, you could set HTML as the default syntax to .tpl extension as shown in the following screenshot.

2 Likes

#3

Thank you very much! Exactly what I was looking for!

1 Like

#4

Tell me how to get everything in place now? PHP files open as HTML.

Is there any other way to open .tpl as html?

0 Likes

#5

The method never changes. First open your .tpl file and then following the screenshot.

1 Like

#6

It seems to have fixed everything. Thank.

0 Likes