Sublime Forum

Syntax selection

#1

few suggestions regarding syntax selection for file types:

  1. it would be useful if i could set specific files to be open with specific syntax, and not just by extension. currently i can’t make sublime to remember to open makefile with make syntax, or emakefile with erlang syntax, etc.

  2. the interface when choosing syntax on the right bottom panel on sublime is not easy to scroll. the mouse wheel doesn’t work, and it is displayed as one big popup. it is cumbersome. i suggest at least adding mouse wheel support, if not changing it to quick-panel like solution.

vim.

0 Likes

#2

You can do this in a plugin. This is what I use: http://pastie.org/private/lkswf2vssear9txfnggh0w

I agree, it’s not very usable. You can use the EditPreferences plugin and press ctrl+alt+shift+N to have this in a quick panel.

0 Likes

#3

great this solves me the problem, thanks.

here is my part:

if name.lower() == ("makefile"): setSyntax(view, "Makefile") elif name.lower() == ("emakefile"): setSyntax(view, "Erlang")

0 Likes