[New Plugin] ExtSettings



  • 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.



  • 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.


  • @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. :)



  • @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.



  • @dinkumoil

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



  • The plugin has been updated to v1.2

    New features:

    • Configure search match highlighting.

    See updated posting above.



  • 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.


  • 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



  • 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?



  • @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)?



  • @dinkumoil

    selected text is handled internally by scintilla with SCI_SETSELFORE and SCI_SETSELBACK



  • @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. :-(



  • @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.



  • @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?



  • @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.



  • @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



  • @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.



  • 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.



  • @Ekopalypse said in [New Plugin] ExtSettings:

    Maybe worth including to your plugin?

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



  • @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.


Log in to reply