Menu

#81 Search list with more than 100 rules alters the coloring

1.13
accepted
nobody
None
Bug
5
2023-01-05
2020-10-16
Mattes H.
No

Hi,

Analyse Plugin for Notepad++ is a really useful tool. But I found a bug about this plugin. I don't know whether it has rule limitation or not. In my search list it has more than 100 rules. But sometimes the color will be wrong.
For example one rule I set it to red. But after click the search button, in filter result windows the match line is green not red. If I move the rule up or down the color will change to another. Do you know how to fix this?

e-mail

Discussion

  • Mattes H.

    Mattes H. - 2020-10-16

    Hi,
    yes, there is a restirction in the number of available styles in scintilla view. In former version this was some by 119, due to 7bit range subtracting some default styles that cannot be changed.
    With your input i read again the documentation and see that in the updated version of NPP's scintilla the number of styles have been made to 8bit -> some 248 entries. https://www.scintilla.org/ScintillaDoc.html#StyleDefinition
    Also I admit I was not expecting one to use so many entries and forgot to put a warning in the configuration table.

    I will add the additional ~120 styles, hoping this slove your probem ;-)

    best regards, Mattes

     

    Last edit: Mattes H. 2020-10-16
  • Mattes H.

    Mattes H. - 2020-10-16
    • status: open --> accepted
     
  • yang fan

    yang fan - 2020-10-19

    Wow! Really thanks. 248 entries is enough for me!!!

     
  • Mattes H.

    Mattes H. - 2022-12-29

    Finally change was made and will be available with next version.

     
    👍
    1
    • yang fan

      yang fan - 2022-12-29

      How many rule supported in next version? Still 248?

       
  • Mattes H.

    Mattes H. - 2022-12-30

    Hi Yang Fan,
    actually 247 because 1 is used for default color. I plan to provide a pre-release in some few days.
    I use this pattern list as test scenario, where 247 color is still shown but 248 falls back to default.
    Interesting question would be, what's the best way to inform user that max colors is reached?
    Popup seemed me to be too annoying. Any suggestions?

     
    • yang fan

      yang fan - 2023-01-05

      Maybe just show a warning message at the top of AnalysePlugin UI or above the rule list.
      Or when add rule more than 247 only default color can be choise.

       
  • Mattes H.

    Mattes H. - 2023-01-02

    see first test version here v1.14-R50 (sourceforge.net)

     
    👍
    1

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB