From 2d9ef77398d783b751be450090b103e46244716a Mon Sep 17 00:00:00 2001 From: Vojtech Kral Date: Thu, 4 Apr 2013 20:10:00 +0200 Subject: [PATCH] Adding option "none" to not open html --- MarkdownBuild.py | 4 ++-- MarkdownBuild.sublime-settings | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MarkdownBuild.py b/MarkdownBuild.py index 3a8372f..f66f9ec 100644 --- a/MarkdownBuild.py +++ b/MarkdownBuild.py @@ -51,9 +51,9 @@ def run(self): self.window.open_file(output.name) elif open_html_in == "sublime": self.window.open_file(output.name) - else: + elif open_html_in != "none": webbrowser.open("file://" + output.name) - + #sublime.set_timeout(partial(ctypes.windll.user32.SwitchToThisWindow,sublime.active_window().hwnd(), 0), 250) #sublime.set_timeout(partial(ctypes.windll.user32.ShowWindow,sublime.active_window().hwnd(), 5), 500) #sublime.set_timeout(partial(ctypes.windll.user32.SetActiveWindow,sublime.active_window().hwnd()), 500) diff --git a/MarkdownBuild.sublime-settings b/MarkdownBuild.sublime-settings index 7637fd9..626068a 100644 --- a/MarkdownBuild.sublime-settings +++ b/MarkdownBuild.sublime-settings @@ -1,6 +1,6 @@ { "output_html" : false, - "open_html_in" : "browser", // possible values are "browser", "sublime", or "both", default is "browser" + "open_html_in" : "browser", // possible values are "browser", "sublime", "both", or "none", default is "browser" "use_css" : true, - "charset" : "UTF-8" + "charset" : "UTF-8" } \ No newline at end of file