I want to create a text view which will support highlighting of basic things, like links and hashtags. The similar features can be found in Twitter.app:
It is not necessary to support clicking on those links, just need to highlight all things properly while user is editing contents of text view.
The question is, what is the best way to do that? I don't really want to use heavy-weight syntax highlighting libraries, but I didn't find any simple and small libraries to highlight only a few things.
Should I parse text and highlight it by myself? If I should, what libraries can I use to tokenise text, and what libraries will allow me to make live highlighting?
Yes, if you want that light-weight use your own parsing to find relevant parts and then use the textStorage
of NSTextView to change text attributes for the found range.