Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • All categories
    • Thomas KnoefelT

      [New Plugin] MultiReplace

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      98
      3 Votes
      98 Posts
      102k Views
      guy038G
      Hi, @thomas-knoefel and All, Finally, this strange behavior, which I had observed before, is not as strange as it seems. Indeed, it was your statement that helped me understand that, when you said : That’s on purpose: in the editor, F4 and Shift+F4 belong to the Search results of Notepad++ itself. So, for tests, I’ve included the same text file, below : Notepad++ is a text editor and source code editor for use under Microsoft Windows. It support around 80 progamming languages with syntax highlighting and code folding. It allows working with multiple open files in a single window, thanks to its tabbed editing interface. Notepad++ is available under GPL and distributed as free software. Notepad++ is a text editor and source code editor for use under Microsoft Windows. bla bla blah It support around 80 progamming languages with syntax highlighting and code folding. It allows working with multiple open files in a single window, thanks to its tabbed editing interface. Notepad++ is available under GPL and distributed as free software. With your same searches within the MultiReplace plugin, as shown in this snapshot : [image: 1796294918780-29199c80-f3b1-4fd1-be72-2596dd4894ce-image.jpeg] Then, I searched the string Notepad++ in Normal mode with the option Wrap whole word only against the test file and I got this snapshot : [image: 1796294937579-34635b93-6e1b-47d3-b96f-457db4af3f50-image.jpeg] So far, here is what I’ve found out about the simultaneous use of the Find All command within native N++ and the MultiReplace plugin, where current document repesents the text file above : •======================================================================•===============================================================• | When FOCUS => ON When NO focus => OFF | ACTION when pressing | •----------------------------------------------------------------------• | | N++ Search Results | MultiReplace Search Results | Current Document | The 'F4' key or the 'Shift + F4' shorcut | •=====================•=============================•==================•===============================================================• | OFF | ON | OFF | Track occurrences in the 'MultiReplace Search Results' window | •---------------------•-----------------------------•------------------•---------------------------------------------------------------• | OFF | OFF | ON | Track occurrences in the 'Notepad++ Search Results' window | •=====================•=============================•==================•===============================================================• | ON | OFF | OFF | Track occurrences in the 'Notepad++ Search Results' window | •---------------------•-----------------------------•------------------•---------------------------------------------------------------• | ON | OFF | ON | Track occurrences in the 'Notepad++ Search Results' window | •=====================•=============================•==================•===============================================================• As you can see, when the MultiReplace - Search results windows is visible but the focus is on the current document, a hit on the F4 or Shift + F4 shortcut goes through the N++ Search results hits ( and NOT through the MultiReplace Search results hits ) ! This fact seems coherent with your statement : That’s on purpose: in the editor, F4 and Shift+F4 belong to the Search results of Notepad++ itself. Best Regards, guy038
    • CoisesC

      Search++: A work in progress

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      232
      7 Votes
      232 Posts
      117k Views
      CoisesC
      @guy038 said: Moreover, the entire lines, with their line-breaks, were colored with the custom style => OK Then I placed the caret at end of the fifth line, between the word see and its line-break After running the Replace Before option => I got the message No matches found. This is the expected behavior as the caret is INSIDE the colored zone and scope ! No, you are missing the point. The custom style coloring is a consequence of how Columns++ Search in indicated region works. Columns++ is always doing the equivalent of what in Search++ would be a search in Marked Text. When there is no selection, nothing is marked and Auto set is checked, all text in the document is marked with the custom style. That isn’t the cause of the difference between what you’re seeing and what you expect. Compare what happens if you do your original test with this expression instead: (?-s)^xyz\R.+|^abc\R.+ In Columns++ you’ll see the coloring, in Search++ you won’t, but the results will be the same: both After and Before will work. To see why your original expression didn’t work for Before, start fresh again, use your original expression, do Replace After and then do Select All (no Before). Notice that the selected area includes where your caret was. That is why it isn’t considered to be a match Before the current position.
    • K

      Notepad++ context menu removal

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      212 Views
      MarkusBodenseeM
      Just uncheck option to install Context Menu Entry during installation process. [image: 1796197902606-2a392e19-0f64-443e-8b07-5bc37213f35d-image.jpeg]
    • M

      Using C++ standard library in Notepad++ plugins.

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      2
      0 Votes
      2 Posts
      89 Views
      CoisesC
      @matsnorberg: Notepad++ is compiled with static linking, and it’s best to do that for plugins as well. Right-click the project, select Properties, then C++ > Code Generation and set Runtime Library to /MT for Release builds and /MTd for debug builds. If you use the official plugin template, the supplied solution file already sets static linking. Note that this is OK because Notepad++ and plugins never pass C++ objects between one another. The plugin API is a pure C interface. The only time this might cause a problem is if your DLL links further DLLs which were compiled with dynamic linking. A side note: you might want to take a look at a project I created, NppCppMSVS: Visual Studio Project Template for a Notepad++ C++ Plugin. It’s a template you can add to Visual Studio so that you can easily start a new plugin project directly from Visual Studio. As noted in the readme, This project is not a part of Notepad++ and is not endorsed by the author of Notepad++. With that understanding, you might want to take a look at its documentation and see if you think it would be an easier place to start than the official plugin template (which is a GitHub template, not a Visual Studio template).
    • C

      Can't access notepad++ website or use the update function within Notepad++ from our Azure Virtual Desktop environment

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      339 Views
      PeterJonesP
      @Charles-Guray , Sorry that no regular here ever replied to you in the last month. I know nothing about Azure itself, so didn’t feel qualified to answer. But my guess is that the recent reply won’t be overly helpful, especially as regards trying to contact the Notepad++ team via contact info. Unfortunately for you, as far as I am aware, the Notepad++ developer (who runs the official website) doesn’t block any IPs. If there is a block, it would be either coming from his service provider, or there’s a block somewhere between your VDI and the Notepad++ website’s service provider. Along that vein, it should be noted that many sites make use of CloudFlare or similar protections, and they are often now injecting javascript “puzzles” to make uses prove they are using a real browser, rather than an AI/bot, because bot traffic is killing the internet through using up bandwidth and connections from the constant training of AIs and other such abuses of the intention of the internet. I seem to rememer that even from individual PCs, sometimes people have had to manually go to the update URL, tell cloudflare that they are a human, and then after that, your IP will be able to get through. The developer tried to turn off that check for the download-checking URL, but I cannot guarantee his ISP is still honoring that. So obviously, you could choose to email the developer to ask, but I don’t think he has final control of whether or not your automated machine can access the website, given modern protections. That said, if you don’t want to worry about Notepad++'s fancy version check, the actual download for the Notepad++ installer is from the github releases page (the update checker replies with the github URL, if it’s needed), so if your virtual desktop environment is able to check https://github.com/notepad-plus-plus/notepad-plus-plus/releases/latest , you could have your own update script that checks the releases/latest, and if the results there have changed from the last one you downloaded, then download from github, bypassing the block.
    • Troglo37T

      20 Search Entries Deletes To 10 After Restarting N++

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      0 Votes
      4 Posts
      408 Views
      S
      That’s helpful to know. I didn’t realise the search history limit could be adjusted through config.xml rather than the Preferences window. Making a backup before editing the file is definitely a good tip, especially to avoid losing any custom changes.
    • Jack SkiJ

      Suggestion: change color on toolbar!

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      4
      0 Votes
      4 Posts
      483 Views
      L
      I get why you’d want it, but I agree with PeterJones here, plain text just has nowhere to store a colour. What I do instead is use the Style Configurator to set up a theme I like, and for marking bits of text I use the bookmark feature or just add a short comment line. Not the same as coloured text, but it keeps everything in the file itself, which is the whole point of a text editor for me.
    • Carlos SánchezC

      [New plugin] Smart Math

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      14
      1 Votes
      14 Posts
      3k Views
      Vitalii DovganV
      @matsnorberg FreeBasic is compiled to a native DLL file, and the code uses “header” files “Notepad_plus_msgs. bi”, “PluginInterface. bi” and “Scintilla. bi” which are partial ports of the corresponding C/C++ headers. So, we have a native dynamic-link library file that follows Notepad++'s and Scintilla’s API, as well as WinAPI. Generally speaking, it should not matter which programming language was used for that. It could be FreePascal, for example. By the way, since FreeBasic uses GCC under the hood, the generated DLL is very close to the one generated from C code :)