Plugin for CudaText.
Allows to use live preview of HTML and Markdown files in the browser, during editing, without need to reload browser page.
Requires Python 3, Flask framework and Markdown2 library.
Tested on Windows 10 and Linux (Ubuntu 19).
How to use
----------
- Install Python 3 from official site. With adding it to PATH variable.
- Install Flask in Python.
Run in terminal:
pip install flask
pip install markdown2
on Unix:
pip3 install flask
pip3 install markdown2
- In CudaText, specify path to browser: "Plugins / HTML Live Preview / Config".
For example: "chrome", "firefox", "opera" or full path to executable file.
Restart CudaText.
- In CudaText, call "Plugins / HTML Live Preview / Start server".
This should show terminal with running Flask server.
Browser should open at http://127.0.0.1:5000/view
After that, just edit some HTML file.
Server will detect your changes (after last editing, make small pause)
and browser should show the preview.
Lexer names handled: any with "HTML", "Jinja2" and "Markdown".
Note: on clicking any link in the browser, live preview stops, until you return to the
http://127.0.0.1:5000/view
Browsers
--------
Supported:
- Google Chrome
- Firefox
- Opera
- Microsoft Edge 42
Not supported:
- Internet Explorer
About
-----
Authors:
Medvosa, https://github.com/medvosa
Alexey Torgashin (CudaText)
plugin HTML+Markdown Live Preview
-
- Posts: 67
- Joined: 26.08.2013 06:16
really good! very good and usefull…
two questions
two questions
- what's about integrate that preview window directly inside CudaText? I am not sure if it is technically possible… if not, we must to respect current limitations, sure…
- will be possible to extend current Markdown Preview to that direction?
If Live preview in the sidebar, it is not only more convenient, but also more in line with the idiom of most editors.
just like:
geany plugin:
https://plugins.geany.org/markdown.html ( WebKit )
notepad++ plugin:
https://github.com/NotMad-Text-Editor-P ... rkdownText (Miniblink: a open source, one file, small browser widget base on chromium.)
https://github.com/nea/MarkdownViewerPlusPlus (.net)
just like:
geany plugin:
https://plugins.geany.org/markdown.html ( WebKit )
notepad++ plugin:
https://github.com/NotMad-Text-Editor-P ... rkdownText (Miniblink: a open source, one file, small browser widget base on chromium.)
https://github.com/nea/MarkdownViewerPlusPlus (.net)
a open source Preview HTML plug-in for Notepad++ write by Delphi, https://fossil.2of4.net/npp_preview/home
It can customize commands to convert any data to html and preview it. RJ TextED 14.90 Beta support this feature.
Preview Screenshot of "Markdown Literate Programming" and "Clojure Hiccup (HTML DSL)": https://github.com/linpengcheng/ClojureBoxNpp
It can customize commands to convert any data to html and preview it. RJ TextED 14.90 Beta support this feature.
Preview Screenshot of "Markdown Literate Programming" and "Clojure Hiccup (HTML DSL)": https://github.com/linpengcheng/ClojureBoxNpp
-
- Posts: 392
- Joined: 01.12.2020 13:46