Smart Highlighting - Multiline Support



  • Hi.

    I am often going through big log files and I would like to be able to see duplicate text spanned over more then 1 line.

    EX) Selecting the first 2 lines would also highlight other occurrences:
    Testing
    1 … 2 … 3

    Testing
    1 … 2 … 3

    4 … 5 … 6
    Testing
    1 … 2 … 3

    4 … 5 … 6
    7 … 8 … 9

    Currently the smart highlighting dies as soon as you select Cr/Lf or characters from 2nd line:
    76153fb6-deb4-4cae-855b-196d4e48f3e5-image.png
    c4839fab-40c7-4a7a-89f9-38d19ae10759-image.png
    4c8b3529-e691-4dc4-a699-b4870f57f30c-image.png
    cb59066e-6879-465b-ad64-c4b38050e226-image.png
    6a0517a1-69dd-41ab-8918-c9c1e120077a-image.png



  • @Joël-Sabourin-Poirier said in Smart Highlighting - Multiline Support:

    Testing
    1 … 2 … 3
    Testing
    1 … 2 … 3
    4 … 5 … 6
    Testing
    1 … 2 … 3
    4 … 5 … 6
    7 … 8 … 9

    Currently you can mark those lines (e.g. Search->MarkAll->using 1st style)
    and jump through the matches with Search->Jump down->1st style



  • Thanks for the suggestion @Ekopalypse.

    The thing is that I do not want to permanently highlight them. I just want to go through and quickly find the occurrences as I go through the logs. I just want to use the Smart Highlighting feature.



  • Did anybody managed to make it work on multi-line selection?



  • If this is a missing feature or defect, should I post this somewhere else so it gets implemented or fixed? Where should I port it?



  • @Joël-Sabourin-Poirier said in Smart Highlighting - Multiline Support:

    If this is a missing feature or defect, should I post this somewhere else so it gets implemented or fixed? Where should I port it?

    My guess is that Smart Highlighting was intentionally designed to not do multi-line (probably easier to implement that way); but that’s just a guess.

    If you would like to request a feature, see our FAQ about feature requests, and please understand that just requesting a feature, even in the official location, is not a guarantee that it will be implemented.



  • @Joël-Sabourin-Poirier

    I do not want to permanently highlight them

    I think @Ekopalypse 's suggested method is actually better than Smart Highlighting for this purpose. And…it isn’t really permanent, you can clear it later.

    Plus you can make it really fast to implement and clear by using keyboard combinations rather than mousing through the menus.

    And the killer feature part: Even if Smart Highlighting did what you wanted, you couldn’t quickly navigate to far apart versions of the duplicate text sections, you’d have to visually look for them. With Eko’s method, and he pointed this out, you can quickly jump to the next occurrence, even if very far away from the original.

    I’m not a developer on Notepad++, but I really don’t see Smart Highlighting being changed to cross line-boundaries.


Log in to reply