I used a TGML type of tag as an example. I want to color code specific instances of words within a textarea. For example, in this textarea I'm typing this message in, I could use TGML. I could then preview my post prior to submitting it. If I elect to edit the post, I want the TGML to be color coded so it stand out.
The project involves having reporters writing artilces for print. They have been using Word. The aritcles are then processed in to .xtg files for insetion into Quark. I am using TGML "like tags" to denote when a Quark tag conversion must take place. There will be a simple conversion application written in VB to convert these "TGML like tags" into Quark tags.
Everything works great. It's a beautiful thing, except if a reporter uses lots of the "TGML type of tags" it gets confusing to edit. I was hoping to be able to color code the tags so they are easier to see.
So if you can imagine, a reported starts writing an article and saves it prior to finihsing it. The reporter then retreives the article. The retrived artilce is displayed within a textarea. The reporter has used instances of text (the TGML like tags) to denote when he or she wants bold text etc... I want those tags to be color coded.
This portion of the project is done in PHP. I was hoping that there was a way, in PHP, to manipulate the contents of a textarea in such a manner as to color code, using markup/css or whatever, the "TGML like tags."
mike