XML tag colors

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
leegold
Posts: 65
Joined: Sat May 03, 2003 1:16 am
Location: USA

XML tag colors

Post by leegold »

Some editors will hilight xml tags. It can be an XML file the editor has never seen before, but it will know about XML and hilight properly.

Can TextPad do this?
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

You can use existing syntax files or create your own.

Start here, over 10 existing syntax files: http://www.textpad.com/add-ons/syna2g.html
Hope this was helpful.............good luck,
Bob
leegold
Posts: 65
Joined: Sat May 03, 2003 1:16 am
Location: USA

Post by leegold »

Just want to be clear - it can be an XML file textpad has never seen before - but there will be an awareness about .XML files and the nesting of the markup that the editor will have about XML, and tags will properly highlighted.

When I throw a .xml into TextPad it doesn't do it. Is such a feature planned?
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Make a Class for your XML files and attach the syntax file that you want to use.
Hope this was helpful.............good luck,
Bob
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

I believe that leegold is looking for a way to highlight the syntax of an arbitrary XML file, regardless of the tags it uses. I don't believe there's any way to get TextPad to do that.
Post Reply