A simple ST2 plugin to help you export your code in a single HTML file.
Your code, needed JS and CSS are bundled in a single HTML file and displayed in your browser.
Support many syntaxes thanks to CodeMirror 2
Installation :
- you should use sublime package manager
- use
cmd+shift+PthenPackage Control: Install Package - look for
Html Exportand install it.
Usage :
- use
cmd+shift+PthenHtml Exportto export the current file - or bind some key in your user key binding
- in your HTML Export user settings, customize your codeMirror configuration if needed (lineNumbers, theme...)
Uses :
- CodeMirror 2 for awesome syntax highlighting
Todo :
Selectable theme- Export and publish
The code is available at github https://github.com/revolunet/sublimetext-html-export
Licence MIT : http://revolunet.mit-license.org