Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7417817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:46:14+00:00 2026-05-29T07:46:14+00:00

I am debugging/monitoring a log file containing extensively the control character [SOH] This makes

  • 0

I am debugging/monitoring a log file containing extensively the control character [SOH]
This makes logs barely unreadable (well, to me, on NP++, but it has to be this way as this character is of some use in the protocol I am monitoring)

How do I display that character in a more friendly fashion on NP++ ?

EDIT : Replacement is not an option as I just want to tail the file, not edit it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:46:15+00:00Added an answer on May 29, 2026 at 7:46 am

    Introduction

    Notepad++ is using Scintilla for the editor component. Scintilla has a function SCI_SETCONTROLCHARSYMBOL(int symbol) where you can set the character that will be used for the control characters. From the Scintilla Docs they describe the functionality:

    SCI_SETCONTROLCHARSYMBOL(int symbol)

    SCI_GETCONTROLCHARSYMBOL

    By 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". 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).

    You can choose to replace these mnemonics by a nominated symbol with an ASCII code in the range 32 to 255. If you set a symbol value less than 32, all control characters are displayed as mnemonics. The symbol you set is rendered in the font of the style set for the character. You can read back the current symbol with the SCI_GETCONTROLCHARSYMBOL message. The default symbol value is 0.

    There’s probably a "right" way to do this, but I’m going to give you a very hack-y way of accomplishing this.

    Technique

    Edit the file %APPDATA%\Notepad++\shortcuts.xml using anything EXCEPT Notepad++.

    Add the following to the <Macros> section of the file to manually add a macro:

    <Macro name="RemoveControl" Ctrl="no" Alt="no" Shift="no" Key="0">
            <Action type="0" message="2388" wParam="32" lParam="0" sParam="" />
    </Macro>
    

    Note that you can set a shortcut with the Ctrl, Alt, Shift and Key attributes. The wParam will set the character which will be used instead of the spelled-out codes. In this case, code 32 is a Space in the ASCII standard. Message 2388 is the constant for the SCI_SETCONTROLCHARSYMBOL value.

    Save the file

    Use

    Now you can change the behavior of Notepad++ at runtime. To use this do the following

    Open Notepad++
    Simply open the editor. If you open a file directly (ie. Edit with Notepad++ context menu) you will get weird behavior.

    Activate the macro from the menu (or your shortcut).
    If there’s a way to automate running a macro on startup it would be nice to add it here

    Open your file.
    Nothing new here

    Notes

    1. The positions with the control character will still be inverted (white text on black background by default).
    2. If you activate the macro when you have a document open it will not take effect right away. You’ll have to do something to force the window to redraw.
    3. A look at the Scintilla.h file may open up other options which could be similarly exploited.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This can be a debugging/monitoring process. I want to know a way, preferably the
Debugging experience http://www.dmhermitage.org/wtfborders.png This is making me want to kill myself. I have some
Whilst debugging my code, I came across this interesting scenario with my switch statement
Debugging assistance requested. The page http://www.freshfaves.com/newfave.html contains this code: <script> document.domain = 'freshfaves.com'; $(document).ready(function()
Debugging a binding when it is like this IsChecked={Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}}, Mode=TwoWay,
Note : This question has been re-asked with a summary of all debugging attempts
Whilst debugging a website I found this tag below the body of the page
In debugging the issue in this thread: InvalidCastException when querying nested collection with LINQ
In our system, we're monitoring a third-party executable which we have very little control
this debugging option: Require source files to exactly match the original version This is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.