OscarGodson / EpicEditor

EpicEditor is an embeddable JavaScript Markdown editor with split fullscreen editing, live previewing, automatic draft saving, offline support, and more. For developers, it offers a robust API, can be easily themed, and allows you to swap out the bundled Markdown parser with anything you throw at it.
http://epiceditor.com
MIT License
4.25k stars 338 forks source link

Question: highlight in the EDITOR (not in the preview) #392

Open paulocheque opened 8 years ago

paulocheque commented 8 years ago

I read many related issues (https://github.com/OscarGodson/EpicEditor/pull/188 https://github.com/OscarGodson/EpicEditor/issues/148 https://github.com/OscarGodson/EpicEditor/issues/14 https://github.com/OscarGodson/EpicEditor/issues/147), but it was not clear to me how to do that and what is the current status of the extensions/parsers.

If I am using Markdown in the editor, I would like to the markdown text to be highlighted, like the following image:

https://camo.githubusercontent.com/89b31b385670824204b9e5c267031f10f1363eb4/687474703a2f2f646c2e64726f70626f782e636f6d2f752f34393433363537362f6d645f686967686c696768742e706e67

Any ideas?

PS: I used https://github.com/isagalaev/highlight.js to highlight the preview code and it is working fine.