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

      How to create a C# plugin?

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development plugins
      29
      0 Votes
      29 Posts
      7k Views
      EkopalypseE

      @scampsd

      Although the registry is actually the Windows standard, I would personally avoid it and rather use the plugin config directory. Can be determined via NPPM_GETPLUGINSCONFIGDIR.
      However, I would create a subdirectory with the plugin name and add a json, xml, toml … file there.

    • fml2F

      Replace in Files / "Directory" field scrolls right when clicked

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      23
      0 Votes
      23 Posts
      6k Views
      fml2F

      @Alan-Kilborn Hehe, “for in much wisdom is much grief”.

    • donhoD

      Fighting Malicious Ads on Download Pages

      Watching Ignoring Scheduled Pinned Locked Moved Security
      22
      3 Votes
      22 Posts
      5k Views
      Mark OlsonM

      @donho
      v8.8.1 looks good to me!

      b4ca5135-c6fa-4b98-9223-374ae6b5204a-image.png

    • PeterJonesP

      Config Files Need Updating, Too

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion pythonscript config-files stylers.xml langs.xml syntax highlight
      37
      9 Votes
      37 Posts
      10k Views
      Lycan ThropeL

      @Coises said in Config Files Need Updating, Too:

      For what it’s worth, as the author of Controlled Auto-indent, I can guarantee it was the culprit. It could crash under other circumstances, too, having nothing to do with ConfigUpdater; I just hadn’t hit one of them, and if anyone else did before you, they didn’t report it.

      I appreciate that, and I’ll go ahead and download it and test it against the old and new versions of ConfigUpdater. I’ve already downloaded, but not installed the new version of CU yet.

      Update: It works fine under the old CU and the new CU. I tried it with CAI enabled and not enabled, and the CU ran through everything, so the crash condition from CAI appears to be gone. Glad I could help find that edge case, unknowingly. :-)

    • PeterJonesP

      Announcement: NPPM_GETOPENFILENAMES and related are being deprecated in v8.8.2

      Watching Ignoring Scheduled Pinned until 6/30/25, 3:12 PM Locked Moved Notepad++ & Plugin Development
      15
      3 Votes
      15 Posts
      1k Views
      CoisesC

      @Vitalii-Dovgan said in Announcement: NPPM_GETOPENFILENAMES and related are being deprecated in v8.8.2:

      My last question was rather related to NPPM_GETFULLCURRENTPATH, NPPM_GETCURRENTDIRECTORY and the other messages from the same family. These messages:

      are internally limited by MAX_PATH; do not provide ability to request/retrieve the length required for the returned path/name.

      See the first part of this comment and the first part of the reply by the maintainer of Notepad++.

      The MAX_PATH limitation is present in the file handling routines of Notepad++, not just the interface for these messages. As I read that reply, Don has rejected (for now, at least) consideration that the MAX_PATH constraint might someday be removed. If you know MAX_PATH is enough, there’s no need to request the actual length ahead of time.

      I agree that there is some inconsistency in what is considered appropriate for deprecation, but I return to the observation that it will always be possible to screw up calling a C interface, and there were and are compelling reasons to keep the plugin interface as a pure C interface. (If we could pass a std::wstring or a std::vector<std::wstring> the whole problem would go away.) It’s a judgement call what is “too error-prone.” Not worth all that much debate.

    • DrakyemD

      Replace multiple, alternate lines in a comparison of two files

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      16
      0 Votes
      16 Posts
      2k Views
      DrakyemD

      @mpheath

      Hello. Thank you very much for this script, it works wonders! There are some misplaced lines (e.g. line 23 in one file corresponding to line 24 in the other one), but nothing that I can’t fix for the script to work within the entire file as it should.

    • peter-frentrupP

      NppMenuSearch version 0.9.7 available

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      13
      3 Votes
      13 Posts
      510 Views
      Vitalii DovganV

      Here is a funny scenario:

      type “menu” in the Search textbox; select Plugins -> NppMenuSearch -> Menu Search… press Enter.
      As the result, the Search textbox does not have a focus!

      Well, I know this is a strange use-case: call itself, but anyway :)

    • Jonathan JohansenJ

      Hi and I'm working on a WPF fork of NppCSharpPluginPack

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      12
      1 Votes
      12 Posts
      722 Views
      pbarneyP

      @Jonathan-Johansen Thanks for the clarification. I don’t develop Windows apps, so I just didn’t know what the two were. After looking at it, it seems that WinForms is more imperative and tightly coupled and WPF is more declarative and modular.

    • Claudia SvensonC

      How to save new (!) documents always in D:\data\ ? (And not in most recent directory)

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      11
      0 Votes
      11 Posts
      1k Views
      Claudia SvensonC

      @Coises

      Thank you for your suggestion.
      This seems to be the only way of solving the problem.

      Sad to say that a feature-rich editor like NP++ has no separate option for that.

      To achieve this, the user has to fiddle around unintuitively outside of NP++. Not very elegant

      Thanks anyway

    • PeterJonesP

      C++ DarkMode dialogs -- not all controls inherit the mode

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      10
      0 Votes
      10 Posts
      580 Views
      PeterJonesP

      For those who weren’t watching:

      ozone10 made a better fix for the tab-control: PR #16673 has been accepted ozone10 also fixed my “secondarily” report about the listbox scrollbar from above, which I reported in issue #16674, fixed in PR #16676 (accepted) progressbars also don’t go to darkmode, and ozone10 has proposed PR#16687, which hasn’t been accepted yet, but hopefully will be.

      So at least 2 of those 3 (and hopefully the third) will be in v8.8.2

      Meanwhile, CollectionInterface v1.1 has been released – the new version will be in PluginsAdmin for v8.8.2, or you can install it from the assets in the release at https://github.com/pryrt/NppPlugin-CollectionInterface/releases/tag/v1.1.0 :

      Adds DarkMode support (with N++ v8.5.4 or newer; in earlier versions, dialog will be LightMode still) [I do my own subclassing on the TabControl for v8.5.4-v8.8.1; it will use the builtin starting in v8.8.2] Allow selecting multiple files for bulk download (#6) Add label to progress bar so “100% [DONE]” is more clear (#9) Fix crash if firewall blocks download (#13) and make error handling better in other edge cases as well
    • M

      Please, don't tell me I've lost all my Notepadd++ docs!

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      9
      0 Votes
      9 Posts
      891 Views
      M

      @Terry-R

      Thank you!

    • guy038G

      Bug when a multi-lines regex is used in the 'Search', 'Replace' or 'Mark' dialog

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      19
      2 Votes
      19 Posts
      2k Views
      mkupperM

      @Alan-Kilborn said in Bug when a multi-lines regex is used in the 'Search', 'Replace' or 'Mark' dialog:

      It isn’t really a bug, it’s more of a historical vestige. Before the setting existed, 1024 was used for even more purposes. Think of the setting as always-existing, but at an unchangeable value: 1024.

      Agreed but it’s not quite that bad at present. There is a constant within the npp source code that defines both the maximum value and default value for the Settings / Preferences / Searching / Minimum Size for Auto-Checking "In selection". It defaults to 1024. The length of the current selection is visible in the Sel: part of Notepad++'s status line. If the number is 0 to 1,023 and you do Ctrl+F, Ctrl+H, or Ctrl+M to bring up the Find, Replace, or Mark dialog boxes then the In Selection field will not be enabled. If the number is 1024 or larger and you do Ctrl+F, Ctrl+H, or Ctrl+M then In Selection field will be enabled. You can change this threshold via Settings / Preferences.

      That works well.

      The same internal constant that defines the default and/or maximum value for the Minimum Size for Auto-Checking "In selection" thing I just mentioned is also used by the code for the Find, Replace, and Mark dialog boxes to decide if the current selection should auto-populate the Find what field. If the current selection is from 1 to 1024 characters then Find what gets populated with whatever is in the selection. If the current selection is zero or is more than 1024 characters then the selection is ignored and Find what contains whatever was in there before.

      The preferences setting for Minimum Size for Auto-Checking "In selection" does not control the current selection auto-populates Find what thing. Auto-population is a constant and is 1024.

      A few weeks ago I wrote up some notes to myself about the name of this internal constant and started teasing out how and where the constant gets used. I can’t find my notes at the moment. My plan at the time was to submit a feature request on github that adds a new constant and showed exactly how and where in the code it should be used so that we can separate out the current selection to In selection vs current selection to Find what. I’d still like to do that but at the time I realized the npp code is a marvelously tangled ball of yarn and so needed to move carefully with my nip-n-tuck.

      I also realized I probably should work on being able to compile my own copies if Notepad++.exe as there were areas where the current values of some internal variables are not obvious. I wanted to change the current selection to Find what limit from 1024 to 2047 characters and to do that should also fix whatever causes Notepad++'s 2046 character limit. Nearly all of Notepad++'s code thinks the limit for search patterns is 2047 characters but something in there restricts searches to 2046 characters.

    • C BaccaC

      Some functions not shown in function list

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      8
      0 Votes
      8 Posts
      663 Views
      PeterJonesP

      @Alan-Kilborn said in Some functions not shown in function list:

      There’s also a sample macro called “Trim Trailing Whitespace and Save” or something close to that, that conveniently does the action every time you save (well, every time you run the macro, which, if assigned to your favorite save-keycombo, e.g. Ctrl+s, will do it).

      I used Ctrl+S remapped to Macros > Trim Trailing and Save for years before starting to use editorconfig – and actually I still use that mapping, because I don’t have a .editorconfig file at the root directory of all my drives, so there are still times when the editorconfig plugin doesn’t know to trim trailing for me. Since I almost exclusively use the keystroke vs the toolbar or menu command for my Save, I (almost) always get the trailing removed when I save.

    • Рома СмирновР

      EDITING FILES

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      8
      0 Votes
      8 Posts
      896 Views
      PeterJonesP

      @Рома-Смирнов ,

      When I followed @mkupper’s suggestion of searching the internet for your filename, I was able to see that the name wallet.json is often used for the storing secrets or backups for things like banking apps or for backing up your blockchain wallets – and that the latter often have encryption mechanisms built into their apps for encoding/decoding (because you really don’t want your blockchain secret key to be visible to anyone with a text editor), so it wouldn’t surprise me if the former kind of app did something similar. You should read the documentation for whatever app/blockchain you are using, to see how to read/decrypt those files. But in general, it’s doubtful that the intention is for them to ever be human-readable. (And, IMO, they should not be abusing the JSON file extension by claiming their files are JSON if they are, in fact, encrypted and not plain-text JSON; but this parenthetical is just my opinion.)

      And if you are trying to get us to help you decrypt someone else’s online wallet, please understand: doing so, or us helping you do so, is highly illegal in all jurisdictions I have ever heard of, and immoral no matter what jurisdiction you are in. If instructions were ever posted here on how to help someone break into an encrypted wallet, they would be deleted/purged immediately, and the person posting those instructions would be banned permanently from this Forum.

    • garrett careyG

      Question(s)

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      23
      0 Votes
      23 Posts
      4k Views
      CoisesC

      @mkupper said in Question(s):

      I verified that at least for my current setup that the zoom level seems to have no affect on the printed results.

      Same here. Perhaps I was unclear.

      If I leave the zoom at default and adjust the font size for Default Style to be large enough for me to read easily on my monitor, I would set a font size of 14 or 16 points with Liberation Mono. (14 is bit smaller than I like, 16 is too big, 15 isn’t an option.) Those are too large for printing, though.

      If I set Default Style to 12 points, printing is reasonable. If I then zoom in 3 steps, I’m just about where I want to be to read easily on the screen — without affecting printing.

      The question I was answering was, “Why not just change your default font size?” Because that does affect printing (and, though I hadn’t remembered until I tried just now, also isn’t as fine-grained as zoom).

    • ?

      Lock file

      Watching Ignoring Scheduled Pinned Locked Moved Security
      7
      0 Votes
      7 Posts
      541 Views
      donhoD

      Here’s my reply:
      https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16638#issuecomment-2947240947

    • CoisesC

      Advertising on the official download page?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      7
      4 Votes
      7 Posts
      1k Views
      donhoD

      See https://community.notepad-plus-plus.org/topic/26920/fighting-malicious-ads-on-download-pages

    • Neko_KaiohN

      Plugin/Script to clean up text noise?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      7
      0 Votes
      7 Posts
      785 Views
      Lycan ThropeL

      @Neko_Kaioh said in Plugin/Script to clean up text noise?:

      Yeah, I used that one. Theres nothing on the file that I need to worry about, but it doesnt tell me anything I personally can use.

      "File Type: MSX Graph Saurus compressed image

      MIME Type: application/octet-stream;
      Suggested file extension(s): bin lha lzh exe class so dll img iso"

      So, if anyone reading this happens to know a program or two that I could try to view the file properly, I’d be very grateful.

      At best, you could use the Hex Editor plugin, however, from the information and this discussion so far, it is apparent that your abilities will be taxed, since you can’t tell when a file is binary or not, just by looking at it. If it’s like the file on the left that @PeterJones showed you, I noticed right away the first two letters in the file, PK, and to me that looks like a PKWare file, meaning it’s compressed at best, as matches your description of the file type that web site told you it was. That’s a compressed graphic file, meaning it’s encoded and at this point, I don’t see you having the skill set necessary to use a Hex Editor and be able to debug/decrypt a file.

      Your best bet it to use the file in an application that generated it, and you can do that on your own by using that ubiquitous tool, Google, and putting that file type in the search terms and follow all the links you can until you find a tool that you can use to open that file with so that it can be played, viewed or whatever it is that it is designed to do. As @Terry-R has suggested, we can’t help anymore than this.

    • Brent RiggsB

      Notepad++ open in new instance because I use multiple desktops

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      11
      0 Votes
      11 Posts
      9k Views
      notdodgeballN

      @PeterJones said:

      I concur. Has anyone ever asked for (specifically) not touching sessions.xml when -openSession/File > Load Session… is active?

      No, not really, its a shame.

    • Kunal MehtaK

      Open text files present in Onedrive directly without downloading to a sync folder

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      6
      0 Votes
      6 Posts
      136 Views
      Kunal MehtaK

      By any chance if anyone is already aware of such a plugin it would be very helpful.
      Thanks in advance!