• Login
Community
  • Login

[New Plugin] ExtSettings

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
56 Posts 12 Posters 10.4k 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.
  • D
    dinkumoil
    last edited by dinkumoil Sep 29, 2019, 7:21 PM Sep 8, 2019, 2:55 PM

    I want to announce my new plugin ExtSettings. It can be used to configure various features of Scintilla which are normally not available via Notepad++ UI.

    Included features:

    • Toggle unindenting of whitespace at line start using backspace key.
    • Toggle line drawing under first line of folded code block.
    • Set indentation guide lines style.
    • Set white space indicator style and size.
    • Set additional upper and lower line spacing.
    • Set line wrapping mode (none/at word boundaries/at any character/at whitespace characters).
    • Set which markers should be displayed on line wrapping (at end or start of subline of a wrapped line, in line numbers margin).
    • Toggle whether line wrapping markers should be displayed near text of subline end and/or subline start.
    • Show an arbitrary number of vertical lines at certain columns with a certain color (Notepad++ v7.7 and higher).
    • Configure search match highlighting.
    • Toggle allow cursor placing beyond line endings.
    • Toggle cursor wrapping to end of previous line when pressing Left Arrow key at line start (Notepad++ v7.7 and higher).
    • Toggle extend selection highlighting up to right hand border of editor window.
    • Set alpha value to draw selection highlighting translucently.
    • Toggle multiple pasting into multiple selections.
    • Toggle end-of-line conversion when pasting.
    • Set magnification for printing.

    The main dialog of the plugin in Notepad ++ v7.7 and higher. In earlier versions, there are some options that are not supported by the older version of Scintilla used there. They will be invisible or greyed out.

    ExtSettings plugin

    The plugin can be downloaded here. I also made a pull request for Notepad++ plugin list to make the plugin available via PluginsAdmin.

    Comments and suggestions for improvements and enhancements are welcome.

    1 Reply Last reply Reply Quote 9
    • D
      dinkumoil
      last edited by Sep 14, 2019, 4:48 PM

      The plugin has been updated to v1.1

      New features:

      • Set indentation guide lines style.
      • Set white space indicator style and size.
      • Set upper and lower line spacing.
      A 1 Reply Last reply Sep 19, 2019, 8:03 PM Reply Quote 3
      • A
        Alan Kilborn @dinkumoil
        last edited by Sep 19, 2019, 8:03 PM

        @dinkumoil said in [New Plugin] ExtSettings:

        The plugin has been updated to v1.1

        It seems like that warrants posting a screenshot showing the new stuff. Especially since posting a screenshot is really easy now. :)

        D 1 Reply Last reply Sep 20, 2019, 6:13 PM Reply Quote 0
        • D
          dinkumoil @Alan Kilborn
          last edited by Sep 20, 2019, 6:13 PM

          @Alan-Kilborn said in [New Plugin] ExtSettings:

          @dinkumoil said in [New Plugin] ExtSettings:

          The plugin has been updated to v1.1

          It seems like that warrants posting a screenshot showing the new stuff. Especially since posting a screenshot is really easy now. :)

          The screenshot above is an updated version.

          A 1 Reply Last reply Sep 20, 2019, 6:16 PM Reply Quote 1
          • A
            Alan Kilborn @dinkumoil
            last edited by Sep 20, 2019, 6:16 PM

            @dinkumoil

            Ah, okay. I wish I could have the foresight to produce accurate documentation for my software projects, one version behind. ;)

            1 Reply Last reply Reply Quote 1
            • D
              dinkumoil
              last edited by Sep 29, 2019, 2:30 PM

              The plugin has been updated to v1.2

              New features:

              • Configure search match highlighting.

              See updated posting above.

              1 Reply Last reply Reply Quote 4
              • D
                dinkumoil
                last edited by Oct 6, 2019, 8:52 PM

                The plugin has been updated to v1.2.1

                This is a maintenance release.

                Fixes:

                • Due to changes in Notepad++ v7.8, configuration of indentation guide lines style did not work reliable anymore.
                1 Reply Last reply Reply Quote 2
                • T
                  tomasz1986
                  last edited by Oct 7, 2019, 1:06 AM

                  Thank you very much for this plugin.

                  The line spacing settings make it finally possible to set the line height without hacking around with font sizes in the theme xml files.

                  I also very much like being able to modify the match highlighting colours separately, so that it is possible to only have the border visible with no background colour, like below.

                  c73292e6-a02c-4248-b6c6-eb9c985459f4-image.png

                  1 Reply Last reply Reply Quote 1
                  • T
                    tomasz1986
                    last edited by Oct 7, 2019, 1:27 AM

                    I also very much like being able to modify the match highlighting colours separately, so that it is possible to only have the border visible with no background colour, like below.

                    I am not allowed to edit the post above any more, so I just want to clarify that I meant the colour filling settings, and not some kind of multiple colours.

                    In relation to this, I also have a question - is it possible to have this kind of highlighting customisation for the ordinary text selection too, or is it limited to the smart highlighting only?

                    D 1 Reply Last reply Oct 7, 2019, 7:23 AM Reply Quote 0
                    • D
                      dinkumoil @tomasz1986
                      last edited by dinkumoil Oct 7, 2019, 8:32 AM Oct 7, 2019, 7:23 AM

                      @tomasz1986 said in [New Plugin] ExtSettings:

                      is it possible to have this kind of highlighting customisation for the ordinary text selection too

                      You can configure the background color of selected text in the style configurator.

                      Go to (menu) Settings -> Style Configurator -> (list box) Style -> Selected text colour -> (group box) Colour Style -> Background colour.

                      Click on the colored panel to open a color selection dialog.

                      With my plugin you can set the alpha value for selected text.

                      @all
                      To provide the same configuration options for selected text as for match highlighting I have to know how highlighting of selected text is implemented internally. Is it a certain indicator like match highlighting (its number is 29, thanks to @Ekopalypse who pointed that out somewhere)?

                      E 1 Reply Last reply Oct 7, 2019, 10:15 AM Reply Quote 4
                      • E
                        Ekopalypse @dinkumoil
                        last edited by Oct 7, 2019, 10:15 AM

                        @dinkumoil

                        selected text is handled internally by scintilla with SCI_SETSELFORE and SCI_SETSELBACK

                        1 Reply Last reply Reply Quote 1
                        • E
                          Ekopalypse
                          last edited by Oct 7, 2019, 10:31 AM

                          @dinkumoil - btw. there is no SCI_GET… equivalent of those calls, so if it is
                          needed to store the default value in case of resets then you have to read the
                          config.xml to get the current used styler.xml/theme.xml and read the value from there. :-(

                          D 1 Reply Last reply Oct 7, 2019, 11:11 AM Reply Quote 1
                          • D
                            dinkumoil @Ekopalypse
                            last edited by Oct 7, 2019, 11:11 AM

                            @Ekopalypse
                            Thank you for providing these information.

                            @tomasz1986
                            As you can see it is only possible to set the character color and the background color of selected text. No fancy boxes with filling and borders, sorry.

                            1 Reply Last reply Reply Quote 1
                            • T
                              tomasz1986
                              last edited by tomasz1986 Oct 7, 2019, 11:17 AM Oct 7, 2019, 11:17 AM

                              @dinkumoil said in [New Plugin] ExtSettings:

                              As you can see it is only possible to set the character color and the background color of selected text. No fancy boxes with filling and borders, sorry.

                              No problem. Thank you for investigating.

                              You mentioned the “character color”, but Notepad++ ignores the fgColor value for “Current line background colour”, so as far as I understand, it is only possible to modify bgColor of selected text. Your plugin, in addition, allows to modify the transparency, which is then applied to both the background and the text.

                              Is this correct?

                              D 1 Reply Last reply Oct 7, 2019, 11:33 AM Reply Quote 1
                              • D
                                dinkumoil @tomasz1986
                                last edited by dinkumoil Oct 7, 2019, 11:47 AM Oct 7, 2019, 11:33 AM

                                @tomasz1986 said:

                                as I understand, it is only possible to modify bgColor of selected text

                                That’s true, technically it is possible to set a background and a character color but Notepad++ doesn’t support the latter one.

                                Notepad++ ignores the fgColor value for “Current line background colour”

                                Why do you think so? Style configurator provides an option to configure that setting.

                                Your plugin … allows to modify the transparency, which is then applied to both the background and the text.

                                No. The alpha value for selections which my plugin can set only changes the opacity of the background color, i.e. the selection color.

                                T 1 Reply Last reply Oct 7, 2019, 12:40 PM Reply Quote 1
                                • E
                                  Ekopalypse
                                  last edited by Oct 7, 2019, 12:34 PM

                                  @dinkumoil

                                  a new scintilla feature is showing dots next to a folded line
                                  Maybe worth including to your plugin?

                                  b173d6f6-c414-4967-b0ff-64fb427d6a33-image.png

                                  D 1 Reply Last reply Oct 7, 2019, 1:00 PM Reply Quote 4
                                  • T
                                    tomasz1986 @dinkumoil
                                    last edited by Oct 7, 2019, 12:40 PM

                                    @dinkumoil said in [New Plugin] ExtSettings:

                                    @tomasz1986 said:

                                    as I understand, it is only possible to modify bgColor of selected text

                                    That’s true, technically it is possible to set a background and a character color but Notepad++ doesn’t support the latter one.

                                    Notepad++ ignores the fgColor value for “Current line background colour”

                                    Why do you think so? Style configurator provides an option to configure that setting.

                                    Are these two sentences not contradicting? The setting is indeed there, but the selected text colour does not change, no matter what colour is specified there. Only the background colour changes.

                                    On the topic: https://community.notepad-plus-plus.org/topic/12578/can-t-change-foreground-color-of-selected-text

                                    I hope that we are talking about the same thing here. I use “fgColor” to mean the text/font colour, and “bgColor” to mean the background colour, as this is how they are used in the themes xml files.

                                    D 1 Reply Last reply Oct 7, 2019, 1:27 PM Reply Quote 0
                                    • T
                                      tomasz1986
                                      last edited by Oct 7, 2019, 12:50 PM

                                      On the other hand, enforcing the text colour with external scripts (as explained in the other thread linked above) overwrites all syntax highlighting in the selected field of text, so it can become problematic very quickly, and I am not really sure if this is really worth it. That is why I myself would prefer a box style selection :). Since you said that it was not possible, it is probably better to leave the issue as it is, and focus on more important things. I have managed to get the job done with the standard text selection fine enough.

                                      E 1 Reply Last reply Oct 7, 2019, 1:27 PM Reply Quote 0
                                      • D
                                        dinkumoil @Ekopalypse
                                        last edited by Oct 7, 2019, 1:00 PM

                                        @Ekopalypse said in [New Plugin] ExtSettings:

                                        Maybe worth including to your plugin?

                                        Indeed, I think it is. I will put it on my list.

                                        1 Reply Last reply Reply Quote 2
                                        • D
                                          dinkumoil @tomasz1986
                                          last edited by Oct 7, 2019, 1:27 PM

                                          @tomasz1986 said in [New Plugin] ExtSettings:

                                          Are these two sentences not contradicting?

                                          I hope that we are talking about the same thing here. I use “fgColor” to mean the text/font colour, and “bgColor” to mean the background colour

                                          Sorry, I’ve messed up things. To be clear I should thoroughly define what I’m talking about.

                                          Selection highlighting

                                          Technically it is possible to set a background and a character color for selection highlighting but Notepad++ doesn’t support the latter one, respectively it ignores the according setting that may be available in whatever config file.

                                          Current line highlighting

                                          As in Style Configurator the setting is named “Current line background colour”, it is only possible to configure the background color of the current line highlighting. Notepad++ doesn’t support configuring the character color, respectively it ignores the according setting that may be available in whatever config file. I don’t know if there is a Scintilla setting that would allow to set the character color of the current highlighted line. I don’t know as well how current line highlighting is implemented internally. Maybe @Ekopalypse can provide this information?


                                          enforcing the text colour with external scripts … overwrites all syntax highlighting in the selected field of text

                                          Yes, thats the reason why I’ve never thought about changing text colors of selection or current line highlighting and would never include such a feature in my plugin.

                                          E 1 Reply Last reply Oct 7, 2019, 1:32 PM Reply Quote 3
                                          • First post
                                            Last post
                                          The Community of users of the Notepad++ text editor.
                                          Powered by NodeBB | Contributors