• Login
Community
  • Login

Change Syntax Highlighting ("Language") Characters

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
languagehighlightingsyntax
2 Posts 1 Posters 1.3k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    Stefan Travis
    last edited by Jan 12, 2018, 10:34 PM

    Is it possible to change which characters can be used for syntax highlighting?

    Specifically, the “Language” function let you use characters and strings of ASCII characters, in the Unicode range 21-7F, to define text colouring. This includes the obsolete “Deleted Character” code (7F), but excludes the space (20). I want to use the control code characters 01-1F.

    Are there Scintille or NppExec functions to do this?

    1 Reply Last reply Reply Quote 0
    • S
      Stefan Travis
      last edited by Stefan Travis Jan 12, 2018, 11:37 PM Jan 12, 2018, 11:36 PM

      Update: Charcters outside the range 21-7F can form part of delimiter strings, but the strings must contain 21-7F characters.

      So, if “$” here represents code 1B - the “Escape” character - these would valid strings:

      $Start
      Finish$
      Modif$ier

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors