How to set Document Class Colors back to the Default Class?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

How to set Document Class Colors back to the Default Class?

Post by kengrubb »

New gig, new install of TP, so I was fiddling with the colors in the Default Class. I didn't recall the Set Defaults button in the Configure, Preferences, Document Classes, <Class Name>, Colors so I changes colors in one class, then hit Set Defaults.

It appears to slam in the default color settings, regardless of what one changes in the Default class. I hunted around in ConfigState.XML and I think I found it.

<class name="COBOL" type="2">

Yes, I'm one of those.

<value name="Colors" type="blob">...</value>

Seemed simple enough to delete it from the COBOL class and then the Default class values would take over again. However, I cannot seen to be able to update ConfigState.xml, even if I close TP and update it using another tool. The values come back.
(2[Bb]|[^2].|.[^Bb])

That is the question.
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Post by kengrubb »

OK, I figured it out.

Make a backup of ConfigState.XML, edit that in TP, close TP, then copy the backup to ConfigState.XML

I remain of the opinion that the Set Defaults button isn't behaving in an intuitive manner. I think clicking Set Defaults should delete the <value name="Colors" type="blob">...</value> entry in ConfigState.XML
(2[Bb]|[^2].|.[^Bb])

That is the question.
Post Reply