Sublime Text 2: Define the syntax of the file in the file itself (as Vim models)

advertisements

In VIM one can force a file type by writing a modeline like this

# vim:syntax=html filetype=html

I'ld like to obtain the same thing for Sublime Text. For example I'ld like Sublime Text 2 to use MarkDown syntax for some file I have with .txt extension.


There is a Modelines plugin for Sublime Text: https://github.com/SublimeText/Modelines