Syntax Highlighting and Auto Indent

How’s everyone? I’ve been working on a new text editor written in Java (despite how many already exist ;p). So far it performs all the basic requirements of a text editor, as well as having many customization options. What I would like to add is the ability to highlight syntax and auto indent. I assume that for syntax highlighting to work I would need a complete word bank for each specific language. Not sure where I would find such a word bank. Auto indent is provably easy to implement but I really don’t know where to start with it.

I’ve never done anything like it, but maybe this will be useful to you: