Community
    • Login

    Change Syntax Highlighting ("Language") Characters

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    languagehighlightingsyntax
    2 Posts 1 Posters 1.5k Views 1 Watching
    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.
    • Stefan TravisS Offline
      Stefan Travis
      last edited by

      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
      • Stefan TravisS Offline
        Stefan Travis
        last edited by Stefan Travis

        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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors