jakiestfu / Medium.js

A tiny JavaScript library for making contenteditable beautiful (Like Medium's editor)
http://jakiestfu.github.io/Medium.js/
4.39k stars 403 forks source link

does medium do syntax highlighting ? #192

Closed jmls closed 8 years ago

jmls commented 8 years ago

This may be a real dumb-ass question .. but .. All I am wanting to do is to allow a user to enter html code in a textarea and have the code syntax-highlighted

I am trying to avoid big libraries like codemirror and ace, and was wondering if it would be possible using medium ?

thanks ..

robertleeplummerjr commented 8 years ago

No dumb questions. I think that codemirror would be more ideal in that scenario, where it is specifically a syntax highlighter, and we are more gui/contenteditable oriented.

jmls commented 8 years ago

thanks for the pointers, appreciate it ;) /me goes off to play with codemirror ..

robertleeplummerjr commented 8 years ago

👍