Skip to content

Instantly share code, notes, and snippets.

@rozza
Created May 31, 2012 13:33
Show Gist options
  • Save rozza/2843451 to your computer and use it in GitHub Desktop.
Save rozza/2843451 to your computer and use it in GitHub Desktop.
Main.sublimeMenu
[
{
"id": "edit",
"children":
[
{
"id": "sublime_highlight",
"caption": "Highlight",
"children":
[
/* in SublimeText conversions */
{
"caption": "SublimeHighlight: convert to HTML",
"command": "sublime_highlight",
"args": {
"target": "sublime",
"output_type": "html"
}
},
{
"caption": "SublimeHighlight: convert to RTF",
"command": "sublime_highlight",
"args": {
"target": "sublime",
"output_type": "rtf"
}
},
/* in SublimeText rendering */
{
"caption": "SublimeHighlight: view as HTML",
"command": "sublime_highlight",
"args": {
"target": "external",
"output_type": "html"
}
},
{
"caption": "SublimeHighlight: view as RTF",
"command": "sublime_highlight",
"args": {
"target": "external",
"output_type": "rtf"
}
},
/* Clipboard exports */
{
"caption": "SublimeHighlight: copy to clipboard as HTML",
"command": "sublime_highlight",
"args": {
"target": "clipboard",
"output_type": "html"
}
},
{
"caption": "SublimeHighlight: copy to clipboard as RTF",
"command": "sublime_highlight",
"args": {
"target": "clipboard",
"output_type": "rtf"
}
}
]
}
]
},
{
"caption": "Preferences",
"mnemonic": "n",
"id": "preferences",
"children":
[
{
"caption": "Package Settings",
"mnemonic": "P",
"id": "package-settings",
"children":
[
{
"caption": "SublimeHighlight",
"children":
[
{
"command": "open_file", "args":
{
"file": "${packages}/Highlight/SublimeHighlight.sublime-settings"
},
"caption": "Settings – Default"
},
{
"command": "open_file", "args":
{
"file": "${packages}/User/SublimeHighlight.sublime-settings"
},
"caption": "Settings – User"
},
{ "caption": "-" }
]
}
]
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment