Advertisement
Olegos

DefaultLanguage.py

Nov 18th, 2020 (edited)
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. #by default the new file will use this syntax
  2. import sublime
  3. import sublime_plugin
  4.  
  5.  
  6. class EverythingIsSQL(sublime_plugin.EventListener):
  7.    def on_new(self, view):
  8.       view.set_syntax_file('Packages/SQL/SQL.sublime-syntax')
  9. #Save as " \Data\Packages\User"
  10. #My example path /home/username/.config/sublime-text-3/Packages/DefaultLanguage.py
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement