• Regex: Find String in HTML Not at Line Start or Following </p>

    15
    0 Votes
    15 Posts
    2k Views
    Sylvester BullittS

    @dr-ramaanand Understand. Thanks for your input and time!

  • Calltip on mouse-over from UDL xml file (Python)

    21
    0 Votes
    21 Posts
    2k Views
    Khundian TwitchK

    I have finished the script, if anyone is interested I posted it in the Plugin development forum.
    Thanks again to everyone who helped me out!

  • Find-in-FIles: Can’t Replace Multiple Instances of Word

    48
    0 Votes
    48 Posts
    8k Views
    Sylvester BullittS

    @Sylvester-Bullitt Got done generating broken link report.

    THE GOOD NEWS: My regex didn’t break any links

    THE BAD NEWS: I just go lucky. Some further testing revealed that my regex would have broken links, if I had had the bad luck to use a search term that also in a hyperlink URL.

    So, I added lookaheads to ignore matches of underscores and .htm, and it seems to work. In case anyone’s interested, here’s the new-and-improved regex, with some comments added for clarity:

    (?-si:<section class="lyrics">|(?!\A)\G)(?s-i:(?!</section>).)*?(?#Not at start of line or para)(?<!^)(?<!<p>)(?<!<p class="chorus">)\K(?-si:\bWORD_TO_FIND\bq(?#Not in hyperlink)(?!(\.htm))(?!_))
  • Line where cursor is located disappears in line highlighting

    3
    0 Votes
    3 Posts
    374 Views
    PeterJonesP

    @Stefan-Kirsch ,

    You might want to follow similar steps to what I suggested in this post – that other post was about the “multi-selected text colour” setting, but your stylers.xml and themes\DarkModeDefault.xml might be missing some of the recent style definitions, and the default it chooses with those undefined styles might not be compatible with your color choices.

    So you basically need to compare the whole <GlobalStyle>...</GlobalStyle> section from your copies of those two settings files to the same section in stylers.model.xml, and copy over any lines that are missing from the stylers.model.xml version into your config files. Once you restart, you can use Style Configurator with either the default-theme or DarkModeDefault theme selected, and change the new colors to better match the colors you’re using for other things.

  • How to revert to single pane after compare

    3
    0 Votes
    3 Posts
    1k Views
    Vishnu vardhanV

    @PeterJones Thanks mate!

  • All occurrences of token: Not all the same texts are marked (highlighted)

    3
    0 Votes
    3 Posts
    393 Views
    N

    @PeterJones Thank you. Your tip solved exactly my problem. THANK YOU SO MUCH!

  • Trying to create Language for ChordPro Format but I am miserably failing

    4
    1 Votes
    4 Posts
    400 Views
    Heinz FaerberH

    @Mark-Olson said in Trying to create Language for ChordPro Format but I am miserably failing:

    EnhanceAnyLexer

    While reading about UDL I cam across EnhanceAnyLexer so I knew I have to install that plugin :-) Then I copied the Chordpro lexer code into C:\Users\UserName\AppData\Roaming\Notepad++\plugins\config\EnhanceAnyLexer\EnhanceAnyLexerConfig.ini

    Guess what? You’v made my day.

    Everything is working the way I wantet it to be.

    Thank you very much Mark

  • code folding

    2
    0 Votes
    2 Posts
    186 Views
    Klaudiusz GawlikK

    @Klaudiusz-Gawlik
    ba867789-c71b-4c53-a134-684864a091c8-obraz.png

  • Disable ASCII Control characters shortcuts?

    24
    0 Votes
    24 Posts
    41k Views
    Alan KilbornA

    @mkupper said in Disable ASCII Control characters shortcuts?:

    it may well not be at all easy for Notepad++ to have an Ignore unrecognized keyboard Ctrl codes setting.

    Actually, it should be fairly easy.
    And the script I linked to yesterday (and everyone since then has so far ignored) shows what would need to be done:
    Prevent WM_CHAR codes for the control character range from reaching Scintilla, where they are processed by putting the corresponding character in the document.

    By the way, people in the future will come read this thread, so it is best to post “correct” information.

    This is not how to define a correct action tag to solve the problem; one example from above:

    <Macro name="RemoveKey_Ctrl_Shift_X_CAN" Ctrl="yes" Alt="no" Shift="yes" Key="88"> <Action type="" message="" wParam="" lParam="" sParam="" /> </Macro>

    The correct equivalent would be:

    <Macro name="RemoveKey_Ctrl_Shift_X_CAN" Ctrl="yes" Alt="no" Shift="no" Key="88"> <Action type="0" message="2172" wParam="0" lParam="0" sParam="" /> </Macro>

    Reference: https://npp-user-manual.org/docs/config-files/#macros:~:text=Attributes for the <Action> tag

  • next serch result - multiple files search

    3
    0 Votes
    3 Posts
    207 Views
    Harald SchöffelH

    @Andi-Kiissel
    so close :D
    thanks a bunch !

  • NppEventExec - can not open specified file or it is empty

    3
    0 Votes
    3 Posts
    250 Views
    H

    @dinkumoil Thanks! That works. Imo, the Expression “NppExec command” is a little misleading…

  • Reset back to a single-line cursor using arrow keys

    9
    0 Votes
    9 Posts
    654 Views
    AlezexA

    [Solved]

  • 0 Votes
    3 Posts
    301 Views
    no hanksN

    @PeterJones Awesome, thanks that was a super simple fix!

  • Is there any alternative to Merge files in one plugin?

    16
    0 Votes
    16 Posts
    6k Views
    CésarC

    @Doğancan This solution worked for me (I tried it on merging HTML files succesfully):

    @Diego-Raguindin said in Combine Plugin Gone!?:

    This worked perfectly for me:

    Put all of the files you want to combine in the same folder. Easiest would be at root-level. Run a command prompt CD to the folder in Step 1 Enter command copy *.csv filename.csv where “filename” is the desired output filename Hit enter File ‘filename.csv’ is created in the same folder

    https://community.notepad-plus-plus.org/post/77090

  • Changing tab colors

    3
    2 Votes
    3 Posts
    2k Views
    TeasyT

    @PeterJones said in Changing tab colors:

    Sorry about that: I fixed it for you, and you now have enough upvotes to be able to post links in the future. But it’s either have that restriction and annoy the portion of first-time posters who try to include a link with good intentions, or return to being the spam-pot we used to be. We used to get multiple spam links per day by first-time posters, and it annoyed me that I had to spend so much of my time in the forum moderating spam; now that we don’t allow first-time posters to include links, I and the other moderators can focus on trying to actually help the posters rather than individually deleting spam posts. Sorry that it inconvenienced you. (And if I’m going to do moderator-y things, I’d rather edit a well-written first-time post to linkify a URL than deal with spam.)

    Much appreciated! <3

  • Issues Running Python Scripts in Batch File

    10
    0 Votes
    10 Posts
    770 Views
    PeterJonesP

    @ImJohnFolks said in Issues Running Python Scripts in Batch File:

    With your help, (its took me around 4 hours of just F’ing around) I’ve managed to make some progress on my PythonScript within Notepad++.

    If you mean you spent a total of 4 hours on all the aspects of the script, including the research and starting from the example, and incorporating our feedback : that’s actually pretty good, considering how new you are to Python and coding in general – congratulations, such effort is to be commended. (Put it in perspective: universities offer semester-long “introduction to Python” classes. In such a class, you might not even have defined one function yet in the first week, let alone the first four hours of class and homework, because they’re still working on variables and for-loops for the first few classes. So you’re doing great)

  • Holding down Ctrl zooms the text out

    2
    0 Votes
    2 Posts
    258 Views
    PeterJonesP

    @Dario-de-Judicibus-0 ,

    Are you sure it’s “only”? Because Ctrl+ScrollWheel is the zoom feature, as Ctrl+NumPadPlus Ctrl+NumPadMinus (fixed: you said it went tiny, not huge, which is zooming out). And if you have a laptop with a trackpad, holding down Ctrl and then sliding on the trackpad might also trigger the zoom behavior (and some might be sensitive enough that you don’t even have to be fully on the trackpad, it might sense you hovering a couple millimeters above)

    Or have you hit Ctrl enough times that Windows is turning on its Sticky Keys feature, because Sticky Keys can make things behave differently than you are expecting.

  • Where is the toolbar configuration stored?

    3
    0 Votes
    3 Posts
    282 Views
    Alan KilbornA

    @Mark-Olson said in Where is the toolbar configuration stored?:

    Your toolbar config file should be in your …

    I would think THIS would be the toolbar config documentation link.

  • 0 Votes
    2 Posts
    214 Views
    Mark OlsonM

    @Michal-Maciejewski
    Have you raised an issue in the Notepad++ GitHub repo?

    If you believe this is a bug, and not just something you need help with, you should raise an issue there.

  • How to collapse/hide lines? (not alt+h method)

    13
    1 Votes
    13 Posts
    7k Views
    T

    @mkupper said in How to collapse/hide lines? (not alt+h method):

    The comments would give your text file the structure that Notepad++ can be configured to then collapse, color code, etc.

    I’ll try using this one as well and see which option I end up liking more.

    Thanks for everyone of this great community for all the help! You guys are awesome!