![]() ![]() ![]() ![]() TechniqueĮdit the file %APPDATA%\Notepad \shortcuts.xml using anything EXCEPT Notepad .Īdd the following to the section of the file to manually add a macro: There's probably a "right" way to do this, but I'm going to give you a very hack-y way of accomplishing this. You can read back the current symbol with the SCI_GETCONTROLCHARSYMBOL message. The symbol you set is rendered in the font of the style set for the character. If you set a symbol value less than 32, all control characters are displayed as mnemonics. You can choose to replace these mnemonics by a nominated symbol with an ASCII code in the range 32 to 255. These mnemonics come from the early days of signaling, though some are still used (LF = Line Feed, BS = Back Space, CR = Carriage Return, for example). From the Scintilla Docs they describe the functionality:īy default, Scintilla displays control characters (characters with codes less than 32) in a rounded rectangle as ASCII mnemonics: "NUL", "SOH", "STX", "ETX", "EOT", "ENQ", "ACK", "BEL", "BS", "HT", "LF", "VT", "FF", "CR", "SO", "SI", "DLE", "DC1", "DC2", "DC3", "DC4", "NAK", "SYN", "ETB", "CAN", "EM", "SUB", "ESC", "FS", "GS", "RS", "US". Scintilla has a function SCI_SETCONTROLCHARSYMBOL(int symbol) where you can set the character that will be used for the control characters. Notepad is using Scintilla for the editor component.
0 Comments
Leave a Reply. |