Permalink
Browse files

instructions for setting up shortcuts - fixes #13

  • Loading branch information...
1 parent 9c1f507 commit a824149a1315b732158de525c428d287979fa50c @n1k0 committed Nov 17, 2012
Showing with 28 additions and 0 deletions.
  1. +28 −0 README.md
View
@@ -108,6 +108,34 @@ SublimeHighlight supports [Pygments lexer options](http://pygments.org/docs/lexe
}
}
+Setting up shortcuts
+--------------------
+
+This is a sample key binding for copying RTF highlighted code contents to your clipboard by pressing <kbd>ctrl</kbd> + <kbd>alt</kbd> + <kbd>c</kbd>:
+
+```json
+[
+ { "keys": ["ctrl+alt+c"],
+ "command": "sublime_highlight",
+ "args": { "target": "clipboard",
+ "output_type": "rtf"
+ }},
+]
+```
+
+You can combine the `target` and `output_type` argument values to achieve the stuff you want. Possible values are:
+
+`target`:
+
+- `sublime`: new Sublime Text 2 tab
+- `external`: new external file
+- `clipboard`: system clipboard
+
+`output_type`:
+
+- `rtf`: RTF format
+- `html`: HTML format
+
Why this package?
-----------------

0 comments on commit a824149

Please sign in to comment.