0

Associated file extension to syntax

Jorge López 11 років тому оновлений 11 років тому 3

I have files with a proper extension MIF written in TCL language. How can I configure Sublime Text to always use syntax highlighting automatically with Tcl.

Tahnks in advance.

The solution is to add the following line inside Tcl.tmLanguage


<key>fileTypes</key>

<array>

<string>tcl</string>

<string>mif</string>

</array>


Ore even simpler, click at the syntax indicator at the lower right of the window, select Open all with current extension as... and then select Tcl.