Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

message and readme

  • Loading branch information...
commit a053825679663e6d646ae49d6360c299a9cfcdf5 1 parent 45e29f2
@erinata authored
View
8 MarkdownBuild.py
@@ -5,10 +5,12 @@
import tempfile
import webbrowser
-#TODO: option to embedded the css into the file or using external file
-#TODO: Some way to make html prettier?
+# TODO: set focus back to sublime after build
+# TODO: option to embedded the css into the file or using external file
+# TODO: Some way to make html prettier?
class MarkdownBuild(sublime_plugin.WindowCommand):
def run(self):
+ #hwnd = self.window.hwnd()
s = sublime.load_settings("MarkdownBuild.sublime-settings")
output_html = s.get("output_html", False)
use_css = s.get("use_css", True)
@@ -39,4 +41,4 @@ def run(self):
output.write(html.encode('UTF-8'))
output.close()
- webbrowser.open("file://" + output.name)
+ webbrowser.open("file://" + output.name)
View
1  MarkdownBuild.sublime-settings
@@ -1,6 +1,5 @@
{
"output_html" : false,
"use_css" : true,
- "focus_sublime" : true,
"charset" : "UTF-8"
}
View
9 README.md
@@ -1,4 +1,4 @@
-# MarkdownBuild (version 0.3.0)
+# MarkdownBuild (version 0.4.0)
This is a Sublime Text plugin for building markdown into html and open it in browser.
@@ -23,6 +23,13 @@ Press Ctrl+b to build the markdown file to html and view it in the browser. It u
I also include a Markdown.tmLanguage file so the markdown files' syntax should be highlighted. It works well with the theme "SunBurst" but it should work for other themes too.
+## Customization
+
+You can customize the behaviour of MarkdownBuild in that MarkdownBuild.sublime-settings file.
+- output_html - set it to true if you want to have an html file generated at the same folder of your markdown file (default: false)
+- use_css - set it to false if you do not want to use css in the generated file (default: true)
+- charset - the charset in the meta tag of html, (default: "UTF-8")
+
## Operating Systems
This package works on Windows, OSX, and Linux
View
3  messages.json
@@ -1,4 +1,5 @@
{
"0.2.0": "messages/0.2.0.txt",
- "0.3.0": "messages/0.3.0.txt"
+ "0.3.0": "messages/0.3.0.txt",
+ "0.4.0": "messages/0.4.0.txt"
}
View
3  messages/0.4.0.txt
@@ -0,0 +1,3 @@
+SublimeMarkdownBuild 0.3.0
+
+- add quite a number of settings for customization
Please sign in to comment.
Something went wrong with that request. Please try again.