HTML Formattor

Can someone help me write a code that formats a HTML document in a RichTextBox?

Like making the <HTML> tag bold, changing the color of the SRC field in the <IMG> tag.

Something like, you know, in Frontpage Express (or other versions), when you want to view the HTML source rather then the WYSIWYG, Frontpage highlights the HTML tags and SRCs. I want it to be like that.

And also, I want to be able to change the formating whenever I want. Like bold for <HTML>, italic for <BODY> etc...

500 points for the right one.
jackjokerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

interCommented:
Hi,
There is a wonderfull fast component that could highlight anything like HTML, Pascal, C++ but no source (source is $25) do you want it? or should we try to write our own

igor
0
SlavakCommented:
0
interCommented:
yes that is it...
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

rwilson032697Commented:
Try this one:

http://www.eccentrica.org/gabr/mw/mwedit.htm

Its a free with source editor with numerous syntax highlighting methods, including HTML!

Cheers,

Raymond.
0
jackjokerAuthor Commented:
rwilson, do you know how to install that thing? I can't find any package files!

I hope someone will post code to my question. I'm not telling you to list out every HTML command. Maybe you can write a code that reads from a ListBox that contains all the HTML commands, which I can add in myself.
0
rwilson032697Commented:
Add mwEditReg.pas to a new or existing package and away you go.

BTW its the development version which has the HTML syntax highlighting (as I am sure you have noticed).

Seems to be quite good - I use it in SiteSplicer.

Cheers,

Raymond.
0
jackjokerAuthor Commented:
Development version?

I only see an official release and an interal beta. Where is the development version?
0
rwilson032697Commented:
The internal beta is the development version...

Cheers,

Raymond.
0
simonetCommented:
Have you had the answer you were looking for yet?
0
jackjokerAuthor Commented:
I accept the mwEdit as an answer. But since you didn't post any code, so you'll much less points. Deal?

Post an answer.
0
rwilson032697Commented:
jackjoker: You said "But since you didn't post any code, so you'll much less points. Deal? "

Would you have preferred I posted the 100+K of code for the mwEdit source here? I don't think so... Isn't a pointer to source an implicit include of that source anyway?

You should grade the answer depending on how it meet the requirements of your question.

You asked for source for an HTML syntax highlighter/formattor. I believe I pointed you at something that meets those requirements very well...

Cheers,

Raymond.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.