i am really sorry that i'm writing this here, but this is really good board and i have not found such for delphi questions. I have to make a project in delphi (i don't have any other choice, so i cannot use C++ ), and I should use RichEdit component. But I don;t know how to make a syntax highlighter using richedit. I can change a font for a whole line only, so for example comments in lines containing code are not highlited in proper way. how can i solve this? or should i use another component?