• Login
Community
  • Login

Change History and SQLinForm formatting

Scheduled Pinned Locked Moved General Discussion
7 Posts 5 Posters 2.0k 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.
  • C
    Craig Healey
    last edited by Dec 23, 2022, 12:01 PM

    I’ve not seen the exact issue mentioned here. I have the new Change History on and I quite like it. But when I use the SQLinForm plugin to format and highlight SQL, instead of a coloured sidebar, it changes the page’s background colour to orange/green. It also applies that formatting to all other pages going forward. I can restart NP++ to get back to a white background, but I lose my SQL text highlighting, though not the formatting.

    Is this a bug in NP++, or SQLinForm? Their forum only suggests turning Display Change History completely off. Is there a setting that I’ve missed that will stop the page background being changed and just allow border highlighting from Change History, and text highlighting from the plugin?

    A 1 Reply Last reply Dec 23, 2022, 12:08 PM Reply Quote 0
    • A
      Alan Kilborn @Craig Healey
      last edited by Dec 23, 2022, 12:08 PM

      @Craig-Healey

      Probably that plugin uses some of the same Scintilla resources that change-history uses?

      Notepad++ had to change some of this stuff around, e.g. the “bookmark” id had to change, to avoid a conflict.

      It seems as if the plugin authors of your plugin will have to do the same, if they are inclined to.

      C 1 Reply Last reply Dec 23, 2022, 12:45 PM Reply Quote 0
      • C
        Craig Healey @Alan Kilborn
        last edited by Dec 23, 2022, 12:45 PM

        @Alan-Kilborn OK, so it seems like I have to keep an eye out for plugin updates. Thanks

        M M 2 Replies Last reply Dec 23, 2022, 1:16 PM Reply Quote 0
        • M
          Michael Vincent @Craig Healey
          last edited by Dec 23, 2022, 1:16 PM

          @Craig-Healey said in Change History and SQLinForm formatting:

          OK, so it seems like I have to keep an eye out for plugin updates. Thanks

          Seems the code is not public? It requires a paid license? I could quickly look at the code to see if it uses markers 21-24 which is usually the cause of this. And since it’s orange, my guess would be 23. Could also be use of inline indicators during the SQL lexing that is triggering this, though Notepad++ does not have Change History indicators turned on by default (only the margin markers).

          Cheers.

          1 Reply Last reply Reply Quote 1
          • M
            mpheath @Craig Healey
            last edited by mpheath Dec 23, 2022, 2:09 PM Dec 23, 2022, 2:06 PM

            @Craig-Healey

            The image in the link shows the margin in Notepad++ as hidden. Doing this hides the (Change History) margin markers and so the markers are shown as SC_MARK_BACKGROUND background colour in the document lines. Why the plugin may cause the margin to hide is questionable. I do not have the plugin to test.

            Hiding or showing this margin does not seem to be in Notepad++ Preferences without turning off Change History. NppExec can change the width setting of the margin.

            To show margin number 2

            sci_sendmsg SCI_SETMARGINWIDTHN 2 9
            

            or SCI_SETMARGINWIDTHN as a number reference if not recognized:

            sci_sendmsg 2242 2 9
            

            To hide the margin, set the 9 to 0. 9 is an estimate size to the original margin size.

            Tested on Notepad++ v8.4.7 with NppExec v0.8.2 .

            1 Reply Last reply Reply Quote 1
            • R
              Robert Rodriguez
              last edited by Robert Rodriguez Jan 9, 2023, 3:12 AM Jan 9, 2023, 3:11 AM

              Just proposes turning Show Change History totally off. Is there a setting that I’ve missed

              A 1 Reply Last reply Jan 9, 2023, 12:31 PM Reply Quote 0
              • A
                Alan Kilborn @Robert Rodriguez
                last edited by Jan 9, 2023, 12:31 PM

                @Robert-Rodriguez said in Change History and SQLinForm formatting:

                turning Show Change History totally off. Is there a setting that I’ve missed

                Consult the Change History FAQ.

                1 Reply Last reply Reply Quote 1
                • R rdipardo referenced this topic on Jan 27, 2023, 12:24 AM
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors