Reputation:
I need to be able to style/format text when specific words are typed into a content-editable iframe on the fly. For instance say the word "danger" was one of the key words, when the user types the word danger into the content-editable it wraps that word in a div that makes the word bold and red. JS Bin type functionality for their syntax highlighting as you type is what I'm trying to achieve, any suggestions?
Upvotes: 0
Views: 403
Reputation: 46557
You should definitely check out CodeMirror... it is used by jsFiddle actually. Once you've installed it, I'm pretty sure you could create your own stylesheets and your own syntax highlighting. It might involve some extra coding but it will be totally worth it!
I hope this helps.
Upvotes: 1