cocoa - NSTextView live text highlighting -


i want create text view support highlighting of basic things, links , hashtags. similar features can found in twitter.app:

twitter.app screenshot

it not necessary support clicking on links, need highlight things while user editing contents of text view.

the question is, best way that? don't want use heavy-weight syntax highlighting libraries, didn't find simple , small libraries highlight few things.

should parse text , highlight myself? if should, libraries can use tokenise text, , libraries allow me make live highlighting?

yes, if want light-weight use own parsing find relevant parts , use textstorage of nstextview change text attributes found range.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -