Skip to content

Commit 6b84f5a

Browse files
azizkprincemaple
authored andcommitted
Scripts: added print_html.py
1 parent 047a9b8 commit 6b84f5a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/print_html.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This script can be used in Sublime's Python console.
2+
3+
# Converts the current file to HTML (simple span tags with inline styles.)
4+
view.export_to_html()
5+
6+
# Converts the current selection to HTML.
7+
view.export_to_html(view.sel())

0 commit comments

Comments
 (0)