Make Non-Print Characters show by default

Add NEL and ALM to NPC, and add note to not translate npc custom color stylename.

Close #13063
pull/13072/head
ozone10 2 years ago committed by Don Ho
parent 39f32bda96
commit dc99ce1035

@ -1667,6 +1667,8 @@ U+FEFF : zero-width no-break space
For the full list check User Manual.
Click on "?" button on right to open website with User Manual." />
<!-- Don't translate "(&quot;Non-printing characters custom color&quot;)" -->
<npcCustomColor-tip value="Go to Style Configurator to change the default custom color for selected whitespace and non-printing characters (&quot;Non-printing characters custom color&quot;)." />
</MiscStrings>
</Native-Langue>

@ -6333,7 +6333,7 @@ void NppParameters::feedScintillaParam(TiXmlNode *node)
}
// Unicode non-printable characters visibility State
_svp._npcShow = parseShowHideBoolAttribute(TEXT("npcShow"));
_svp._npcShow = parseShowHideBoolAttribute(TEXT("npcShow"), true);
nm = element->Attribute(TEXT("npcMode"), &val);
if (nm)

@ -122,7 +122,9 @@ const int MARK_HIDELINESUNDERLINE = 17;
const std::vector<std::vector<const char*>> g_nonPrintingChars =
{
{"\xC2\x85", "NEL", "U+0085"}, // U+0085 : next line
{"\xC2\xA0", "NBSP", "U+00A0"}, // U+00A0 : no-break space
{"\xD8\x9C", "ALM", "U+061C"}, // U+061C : arabic letter mark
{"\xE1\x9A\x80", "OSPM", "U+1680"}, // U+1680 : ogham space mark
{"\xE1\xA0\x8E", "MVS", "U+180E"}, // U+180E : mongolian vowel separator
{"\xE2\x80\x80", "NQSP", "U+2000"}, // U+2000 : en quad

Loading…
Cancel
Save