• Login
Community
  • Login

disable highlighting of code blocks

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
8 Posts 4 Posters 1.6k 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.
  • M
    MattexD
    last edited by MattexD Nov 29, 2023, 10:00 AM Nov 29, 2023, 9:42 AM

    Hi everyone, I wanted to know how do I turn off bracket highlighting? I looked in the options but couldn’t find anything, when I open and close a parenthesis it highlights in red.

    T A L 3 Replies Last reply Nov 29, 2023, 10:12 AM Reply Quote 1
    • T
      Terry R @MattexD
      last edited by Terry R Nov 29, 2023, 10:14 AM Nov 29, 2023, 10:12 AM

      @MattexD said in disable highlighting of code blocks:

      Hi everyone, I wanted to know how do I turn off bracket highlighting when I’m using a programming language?

      The style configuration (online manual reference here ) is where customisation of coloring is. This can be done at a global level or each language. As I haven’t dealt with your issue I’m not sure if you can achieve exactly what you want (if its a built-in lexer) but maybe you can change the colour to a more neutral one, maybe even the colour of non-highlighted text.

      If it’s a UDL (user defined language), see here , you have more control, even to disabling some of the highlighting rules.

      Good luck
      Terry

      M 1 Reply Last reply Nov 29, 2023, 11:08 AM Reply Quote 3
      • M
        MattexD @Terry R
        last edited by Nov 29, 2023, 11:08 AM

        @Terry-R Thanks for the responde, I also updated my request because this problem persists even when plain text is active, not just when a programming language is enabled

        1 Reply Last reply Reply Quote 0
        • A
          Alan Kilborn @MattexD
          last edited by Alan Kilborn Nov 29, 2023, 11:10 AM Nov 29, 2023, 11:09 AM

          @MattexD

          Terry is on the right track with Style Configurator.

          One way to achieve your goal is:

          • Settings menu > Style Configurator
          • Go to Language and select Global Styles
          • For Style select Default Style and note the Foreground colour and Background colour settings
          • Select Brace Highlight style and set the same Foreground colour and Background colour settings as were shown for Default Style
          • Uncheckmark Bold
          • Press Save & Close

          This should get you to a setup where brackets are shown the same as any other characters you type.

          M 1 Reply Last reply Nov 29, 2023, 11:14 AM Reply Quote 5
          • M
            MattexD @Alan Kilborn
            last edited by Nov 29, 2023, 11:14 AM

            Thank you very much guys

            1 Reply Last reply Reply Quote 1
            • L
              Lycan Thrope @MattexD
              last edited by Lycan Thrope Nov 29, 2023, 8:08 PM Nov 29, 2023, 8:05 PM

              @MattexD ,
              Interestingly, what you describe as something you want to get rid of, the people I know of that use Notepad++ really…and I mean really, appreciate that feature.

              We program with dBASE Plus, and I wrote a UDL in NPP for it, and the one feature that is most appreciated is the bracket highlighting, because in dBASE we can write SQL statements, which can get quite long, and when word wrap is on or off in the dBASE editor, you don’t know which bracket belongs to which ending bracket, or if you missed one. That highlighting feature in NPP makes it real easy to see if you missed and/or where the ending paired bracket is. To verify that you have open and closing brackets, you move the cursor to one and it’s partner shows up, letting you know, that bracket pairing is completed.

              Not sure why you want that highlighting stopped, but that’s a very valuable feature…but…if you must you can follow the recommended instructions. :-)

              A M 2 Replies Last reply Nov 29, 2023, 8:08 PM Reply Quote 1
              • A
                Alan Kilborn @Lycan Thrope
                last edited by Nov 29, 2023, 8:08 PM

                @Lycan-Thrope

                To each his own, but from my perspective, I agree with you. Why fight a feature that is trying to help you, and really isn’t harming anything when left on?

                1 Reply Last reply Reply Quote 3
                • M
                  MattexD @Lycan Thrope
                  last edited by Nov 30, 2023, 8:34 AM

                  @Lycan-Thrope I know but I use it momentarily to simulate a written exam I have to take

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