I'm making a TextEditor like Notepad and I have to "highlight" keywords of a source code in diffrent colors and fonts. My ideea is to split the sourse code and store it in an array with push_back() method, but I don't really know how to do it.
I've tried some ideeas like strtok and isstringstream , but I don't get the result. I don't know exactly how to do that. Also , I have a problem with string and AnsiString , because I'm working in C++ Builder .
Please, if someone could help me.
Best regards.