Sublime Forum

Set syntax for file pattern in User Preferences?

#1

Is it possible to set the syntax to use for a pattern using your User Preferences file?

A format like below would be great, where positive matches are additive to the extensions defined elsewhere.

"syntax_include_patterns": {
  "JSON": 
    ".jshintrc",
    "*.sublime-project",
    "*.sublime-workspace",
    "*.sublime-settings"
  ],
  "Shell": 
    ".extra",
    ".bash_profile"
  ]
}
0 Likes

#2

Take a look at ApplySyntax

0 Likes