Last active
December 23, 2015 00:28
-
-
Save sligodave/6553396 to your computer and use it in GitHub Desktop.
Revisions
-
sligodave revised this gist
Sep 13, 2013 . 4 changed files with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ [ // Change the syntax of the current file to YAML { "keys": ["ctrl+alt+y"], "command": "change_syntax", "args": {"syntax": "Packages/YAML/YAML.tmLanguage"}} ] This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ [ // Change the syntax of the current file to YAML { "keys": ["ctrl+super+y"], "command": "change_syntax", "args": {"syntax": "Packages/YAML/YAML.tmLanguage"}} ] This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ [ // Change the syntax of the current file to YAML { "keys": ["ctrl+alt+y"], "command": "change_syntax", "args": {"syntax": "Packages/YAML/YAML.tmLanguage"}} ] This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,13 @@ import sublime_plugin class ChangeSyntaxCommand(sublime_plugin.TextCommand): def run(self, edit, syntax='Packages/Text/Plain text.tmLanguage'): self.view.set_syntax_file(syntax) # class ChangeSyntaxToYAMLEventListener(sublime_plugin.EventListener): # def on_load(self, view): # view.run_command('change_syntax', args={'syntax': 'Packages/YAML/YAML.tmLanguage'}) # on_new = on_load -
sligodave revised this gist
Sep 13, 2013 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,3 @@ import sublime_plugin -
sligodave revised this gist
Sep 13, 2013 . 4 changed files with 24 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ [ // Change the syntax of the current file to YAML { "keys": ["ctrl+alt+y"], "command": "syntax_to_yaml", "args": {"syntax": "Packages/YAML/YAML.tmLanguage"}} ] This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ [ // Change the syntax of the current file to YAML { "keys": ["ctrl+super+y"], "command": "syntax_to_yaml", "args": {"syntax": "Packages/YAML/YAML.tmLanguage"}} ] This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ [ // Change the syntax of the current file to YAML { "keys": ["ctrl+alt+y"], "command": "syntax_to_yaml", "args": {"syntax": "Packages/YAML/YAML.tmLanguage"}} ] This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,14 @@ import sublime_plugin class SyntaxToYamlCommand(sublime_plugin.TextCommand): def run(self, edit, syntax='Packages/Text/Plain text.tmLanguage'): self.view.set_syntax_file(syntax) # class SyntaxToYAMLEventListener(sublime_plugin.EventListener): # def on_load(self, view): # view.run_command('syntax_to_yaml', args={'syntax': 'Packages/YAML/YAML.tmLanguage'}) # on_new = on_load -
sligodave revised this gist
Sep 13, 2013 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,7 @@ import sublime_plugin class SyntaxToYAMLEventListener(sublime_plugin.EventListener): def on_load(self, view): view.set_syntax_file('Packages/YAML/YAML.tmLanguage') on_new = on_load -
sligodave revised this gist
Sep 13, 2013 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,3 @@ import sublime_plugin class SyntaxToYAMLEventListener(sublime_plugin.EventListener): -
sligodave created this gist
Sep 13, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ import sublime_plugin class SyntaxToYAMLEventListener(sublime_plugin.EventListener): def on_load(self, view): view.set_syntax_file('YAML.tmLanguage')