Hi,
I'm currently working on an RSS File Editor. I want to implement a syntax highlighting feature, but I don't know how to program it and didn't find anything useful on the internet. I'm using a RichEdit as the editor window. Can someone tell me how to do it or give me the code that I can adjust to my needs (enter the words, that i want to be highlighted)?

I'm looking forward to your answers
Thank you,
the_titan

by the way i'm using delphi 7

Recommended Answers

All 2 Replies

Did You Try Using SynEdit, Its A Great VCL Component That Supports Syntax Highlightning For An Array Of Languages. Its
Free And 'Open Source' So If The Component is Not What Your
Looking For You Can Get An Idea of How To Do Syntax Highlighting.

http://synedit.sourceforge.net/

If you continue to use the rich edit control you need to make a note of where the colour change should start, select the length of string you need to colour, and then set the current selection colours/font etc.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.