I am currently working on a project that involves syntax highlighting.
Does anyone have/know any good algorithms in implementing syntax highlighting?
I originally thought that I would just do it by line, but some lines are continuations of others, etc.
I wouldn't know to go after reserved words, operators, strings, or the like first. Any direction would be appreciated.