Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 2: Setting file syntax inside the file itself (as Vim modelines)

Tags:

sublimetext2

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.

like image 304
the brx in the walls Avatar asked Aug 27 '12 10:08

the brx in the walls


1 Answers

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

like image 100
chiborg Avatar answered Sep 21 '22 05:09

chiborg