sublimetext2 - Set default syntax to different filetype in Sublime Text 2 -


how set default filetype file extension in sublime text 2? want have *.cfg files default having ini syntax highlighting cannot seem figure out how create custom setting.

in current version of sublime text 2 (build: 2139), can set syntax files of file extension using option in menu bar. open file extension want set default , navigate through following menus: view -> syntax -> open current extension as... ->[your syntax choice].

updated 2012-06-28: recent builds of sublime text 2 (at least since build 2181) have allowed syntax set clicking current syntax type in lower right corner of window. open syntax selection menu option open current extension as... @ top of menu.

updated 2016-04-19: of now, works sublime text 3.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -