sparksuite / simplemde-markdown-editor

A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://simplemde.com
MIT License
9.9k stars 1.12k forks source link

Code syntax highlight GFM #661

Open lucabartoli opened 6 years ago

lucabartoli commented 6 years ago

Hi all, We are trying to get syntax highlight based on language code in the preview mode, but the code placeholder ignore the language specification. ```bash or ```php or ```javascript don't apply the correct syntax, so they are both equals to ```

Any suggestion?

ghost commented 6 years ago

@lucabartoli If you want more advanced Markdown features, use an editor like ToastUI or Editor.md. SimpleMDE is AFAIK only designed to support CommonMark, so it doesn't add syntax highlighting like that of GFM.