- AuthorPosts
- December 29, 2021 at 11:12 am #27993J MelvinParticipant
Is there a way to make registry key header entries toggle to a different color when they are marked for deletion
Example
[HKEY_CURRENT_USER\SOFTWARE\EmSoft\EmEditor v3]<<<<<<<<<<<< Default *.ini syntax color, fine)
[-HKEY_CURRENT_USER\SOFTWARE\EmSoft] <<<<<<<<<<<< Want different color when bracket is marked for deletion with the minus sign “-” after the leading bracketThanks for your help.
December 30, 2021 at 4:26 am #27995LTTParticipantYou can add a string in Highlight(1):
[-
▲ Enable “Highlight Right Side” (or “Highlight Right All”) for it.
▲ Choose a color for it.Or add this:
^\[-
▲ Enable “Regular Expression” for it.
▲ Enable “Highlight Right Side” (or “Highlight Right All”) for it.
▲ Choose a color for it.December 30, 2021 at 5:54 am #27997J MelvinParticipant@LTT. I had already tried your first suggestion but it didn’t work, I guess because it conflicts with the normal string I had defined for [. Your suggested regular expression didn’t work either until I also defined a regular expression for the normal bracket ^\[. So now I have a regular expression of ^\[- for disabled key and ^\[ for enabled key and everything works fine. Just offering this detailed explanation in case someone else runs into the same issue. Thanks again.
December 31, 2021 at 5:05 am #28003LTTParticipantThe draw order seems complicated.
I have to set it this way:
picshack.net/ib/Ogai299qED.png@Yutaka
Default settings.
Highlight(1):
Switch to “Both User-Defined Strings and Default Keywords”.
Add the 2 items as shown in the above image.** I couldn’t get them work, till I switched to “Only User-Defined Strings”.
** If I use 2 non-regex items instead ( “[” and “[-” ), only “[” works in “Only User-Defined Strings”, no matter what the order is.
I got dizzy on this…
Please add a description in the help about the draw order/rules used in Highlight(1), e.g.:
Default keywords vs User-defined strings
Regex vs Non-regex
The sort orderDecember 31, 2021 at 5:31 am #28004December 31, 2021 at 6:31 am #28005J MelvinParticipant@LTT. Yes, that is exactly the way I have it set now, just like your screen shot. But as I said, when I mixed a regex definition with a non-regex user defined bracket, there’s some sort of conflict and it won’t work, at least in my configuration where I am only useing User-Defined Strings. Hope that clarifies things.
- AuthorPosts
- You must be logged in to reply to this topic.