Skip to content

Instantly share code, notes, and snippets.

Created January 5, 2013 13:32
Show Gist options
  • Save anonymous/4461602 to your computer and use it in GitHub Desktop.
Save anonymous/4461602 to your computer and use it in GitHub Desktop.
Sublime Text menu file that adds a Syntax submenu to the editor window right-click context menu. Creates a submenu entry that lets you set the syntax to JavaScript. To install, save in /Sublime/Data/Packages/User/Context.sublime-menu.
[
{
"caption": "Syntax",
"children":
[
{
"caption": "JavaScript",
"command": "set_file_type",
"args": {"syntax": "Packages/JavaScript/JavaScript.tmLanguage"}
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment