Home Download Buy Blog Forum Support

DetectSyntax updated with new_file_syntax

DetectSyntax updated with new_file_syntax

Postby phillip.koebbe on Tue Jun 26, 2012 9:29 pm

If you haven't followed this thread [1] about setting a default syntax when a new file is created, you might be interested to know that I just updated DetectSyntax to provide this functionality. All you need to do is add

Code: Select all
"new_file_syntax": "name of syntax"

to Packages/User/DetectSyntax.sublime-settings and all new files will start with that syntax assigned. Keep in mind that once you save the file, any other rules in DetectSyntax will kick in and the syntax could change. The new_file_syntax applies only in the on_new event listener.

[1] viewtopic.php?f=2&t=7646
-- Phillip

Code: Select all
while self.living? do
    mistake = Mistake.new
    self.learn_from!(mistake) unless mistake.fatal?
Posts: 208
Joined: Tue Dec 20, 2011 4:58 pm

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 5 guests