SublimeText 2&3 plugin to live preview markup files, supported (not limited to) markup formats are markdown, reStructuredText, WikiCreole and textile.
OmniMarkupPreviewer is a plugin for both Sublime Text 2 and Sublime Text 3 that preview markups in web browsers. OmniMarkupPreviewer renders markups into htmls and send it to web browser in the backgound, which enables a live preview. Besides, OmniMarkupPreviewer provide support for exporting result to html file as well.
OmniMarkupPreviewer has builtin support following markups:
5.10
and can be found in PATH
, if the perl version < 5.10
, Pod::Simple
should be
installed from CPAN
.)ruby
in your PATH
)ruby
, and gem org-ruby
should be installed)ruby
, as well as gem wikicloth
)ruby
, as well as gem asciidoctor
)If you find my work useful, please consider buying me a cup of coffee, all donations are much appreciated :)
The easiest way to install OmniMarkupPreviewer is through Package Control.
Once you have Package Control installed, restart Sublime Text.
The advantage of using Package Control is that it will keep OmniMarkupPreviewer up to date automatically.
Without Git: Download the latest source code, and extract to the Packages directory.
With Git: Type the following command in your Sublime Text Packages directory:
git clone git://github.com/timonwong/OmniMarkupPreviewer.git
The "Packages" directory for Sublime Text 2 is located at:
%APPDATA%\Sublime Text 2\Packages\
~/.config/sublime-text-2/Packages/
~/Library/Application Support/Sublime Text 2/Packages/
And for the Sublime Text 3:
%APPDATA%\Sublime Text 3\Packages\
~/.config/sublime-text-3/Packages/
~/Library/Application Support/Sublime Text 3/Packages/
The default key bindings:
Windows, Linux:
OSX:
Available OmniMarkupPreviewer commands in the command palette:
OmniMarkupPreviewer: Preview Current Markup in Browser
OmniMarkupPreviewer: Export Current Markup as HTML
OmniMarkupPreviewer: Empty Cache
NOTE Command will not be available (greyed out) if current file syntax (or filename) doesn't match any of OmniMarkupPreviewer renderers.
For a complete list of changes, see CHANGELOG.md
v3.0.0 (02/28/2015)
Python-Markdown
package to v2.4.1 final..mmd
file extension support (MultiMarkdown).server_host
setting is now taken into account when launching preview in browser.v2.0.9 (08/02/2014)
xdg-open
under linux environments.v2.0.8 (04/15/2014)
v2.0.7 (04/14/2014)
v2.0.6 (01/27/2014)
v2.0.5 (01/24/2014)
v2.0.4 (08/10/2013)
export_options
when not available.v2.0.3 (07/18/2013)
smart_strong
and meta_data
extention name for markdown.v2.0.2 (06/17/2013)
v2.0.1 (05/12/2013)
v2.0 (03/31/2013)
org-ruby
should be installed).wikicloth
).asciidoctor
)..sublime-package
(zip archive).ignored_renderer
setting.v1.20 (03/15/2013)
Copy Markup as HTML
.Sweep Cache (Remove Unused)
.v1.12 (03/13/2013)
This plugin released under MIT License:
Copyright © 2012 - 2015 Timon Wong
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.