Print to HTML
Sublime Text 3 plugin to print colorized files as HTML via your browser.
- Total 68K
- Win 38K
- Mac 23K
- Linux 8K
|Dec 3||Dec 2||Dec 1||Nov 30||Nov 29||Nov 28||Nov 27||Nov 26||Nov 25||Nov 24||Nov 23||Nov 22||Nov 21||Nov 20||Nov 19||Nov 18||Nov 17||Nov 16||Nov 15||Nov 14||Nov 13||Nov 12||Nov 11||Nov 10||Nov 9||Nov 8||Nov 7||Nov 6||Nov 5||Nov 4||Nov 3||Nov 2||Nov 1||Oct 31||Oct 30||Oct 29||Oct 28||Oct 27||Oct 26||Oct 25||Oct 24||Oct 23||Oct 22||Oct 21||Oct 20|
Sublime Text 3 Print to HTML
A Sublime Text 2/3 plugin to print files as HTML with color syntax highlighting and line numbers, and open them in your browser for printing.
Currently Plugin specified word wrap for ST3 is still under development. Web Browsers will still handle word wrap as necessary.
- Install Package Manager.
Package Control: Install Package.
- Look for
Print to HTMLand install it.
If you prefer to install manually, install git, then:
git clone https://github.com/jchampy/sublimetext-print-to-html "<Sublime Text 3 Packages folder>/Print to HTML"
- For best results, save your file with an appropriate extension beforehand.
- To print the current file, use one of the following methods:
Shift+Alt+Pto print current file as HTML via your browser, or
- from File menu, use
Print as HTML to Browseror
Print as HTML to New Buffer.
- Edit settings in
Preferences->Package Settings->Print in HTMLto customize output formatting and behavior. Options such as monochrome, line numbering, and browser behavior can be modified.
Use ST2's internal scope and color data from a buffer to produce an exact replica of a file from ST2 in HTML form. The current approach using Pygments has limitations regarding formats unknown by Pygments (e.g. Markdown) and documents with mixed syntaxes (e.g. PHP embedded in HTML).
The original code is available on Github. Pull requests are welcome.
Created by Joel Thornton.
Forked and updated to Python3 by Matt Hulse
Forked and Pushed for SublimeText3 by Jake Champlin
Uses the Pygments library (included) for code-to-HTML conversion.