cocoa - NSTextView live text highlighting -
i want create text view support highlighting of basic things, links , hashtags. similar features can found in twitter.app:
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
Post a Comment