Categories

  • Announcements regarding our community
    279 Topics
    5k Posts
  • Frequently Asked Questions and Guides (about Notepad++ and this Forum)

    36 Topics
    61 Posts
    PeterJonesP
    Update

    As of Notepad++ v8.7.6 in January 2025, the Shortcut Mapper should now list the keys based on the keyboard layout that was active when you started Notepad++. You should no longer need this FAQ, unless you are choosing to use an older version of Notepad++.

  • Notepad++ discussions that don’t fit in other Categories

    4k Topics
    22k Posts
    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).

  • 10k Topics
    53k Posts
    PeterJonesP

    @mapsonx said in Notetab++ novice questions:

    Notetab++

    I think you mean “Notepad++”

    I’ll answer your last one, first, because it’s not related to the others:

    If I add content to a new file, I am not prompted to save/dismiss, but when i open notepad++, that content is still there?? Is there a filw created. I’ve never experienced that type that of behavior before.

    That’s Settings > Preferences > Backup > ☑ Enable session snapshot and periodic backup option being turned on: as described in the backup settings in the User Manual, in that mode, Notepad++ will periodically take a snapshot of any edited files, and even remember those unsaved changes the next time you restart Notepad++. I, personally, am not a fan, because it lulls people into foolish behavior (like never saving/naming a file). However, that has been Notepad++'s default behavior for years… and it’s been there long enough that Microsoft took a page from Notepad++'s book (because in the “app” version of MS notepad that gets shipped with Windows 11 – the version that also now has tabbed editing, not the old win10-and-earlier one-window-per-file – now also keeps your unsaved changes from run to run).

    If you don’t want to keep unsaved changes, and you want to be prompted before exiting Notepad++, you can turn off that option: congratulations for wanting to control your data. To better understand this feature, and other backup-related issues, I highly recommend reading the backup settings in the User Manual and this forum’s backup FAQ, just to get a better handle on what’s going on.

    Now to your first question:

    1 I have both portable versions, from here and portableapps.

    Downloading from the official website is great. Downloading the portableapps version is a bad idea, because they edit the binary without saying what they change (in violation of the open-source license, IMO); we cannot guarantee that the portableapps version behaves in any way, shape, or form like the official Notepad++ release. Use portableapps at your own risk (or better, don’t use it, ever).

    How do I update the version form this site and maintain tre current settings. I tried to keep the current .xml files bu that did not help.

    It helped, but you might not have kept all the right files. The official Online User Manual for Notepad++ has a section devoted to upgrading the portable edition: https://npp-user-manual.org/docs/upgrading/#upgrading-a-portable-edition

    Toolbar size and labels. I want the larger toolbar, and if possible, button labels., but aI like the fancier icons I don’t know why the toolbars look different.

    For builtin icons, the “large” icons only come in the new “Fluent UI” look, hence the names in the Settings > Preferences > Toolbar section (was a sub-section of the General tab, before v8.8.0) are “Fluent UI: large” and “Filled Fluent UI: large”. If you have one portable set to “standard icons (small)” and another to “Fluent UI: large”, of course your toolbars are going to look different.

    Also, this is strange. Upon opening this sites version after I trying to update it, both toolbars were now identical to portableapps, and it had the same content as the portableapps version.

    When you updated your portable copies, you presumably overwrote all your config files, including your choice of which toolbar icon set you were using, so they went back to the same. (Though I’m surprised they went back to the “Fluent UI: large”, which your screenshot appears to be showing, because

    Are they cloud connected? Yes, I know, doesn’t make sense.

    No. (Well, not unless you had set the Cloud settings in the preferences dialog, and set them both to the same cloud folder.)

    For builtin toolbar icons, your only choices are big/small and hollow/filled versions of the Fluent UI icons, or the old small-only standard icons. (That “standard icon” set has not, as far as I can remember, been published in a large-icon version. In Notepad++ 7.9.5 and earlier, before there were the “Fluent UI” icons, there were the ancient “small icons” and “big icons” and the “standard icons” (which were small, even then); I just double-checked v6.5 from 2013, the oldest copy I have downloaded right now, and the “standard” ones were only small, even then.)

    You can customize the icons, if you don’t like any of the four Fluent options or the “standard icon” set. The Toolbar Customization section of the User Manual explains how to do that, and even provides a link to a zipfile with a copy of the ancient “big icons”, which are now called the “legacy” icons. But that download doesn’t come with big versions of the “standard icons”, either… so if that’s what you wanted, you’d still be out-of-luck. It might be possible to use image editor software and grab the “standard icons” out of the Notepad++ source code, and scale them from 16x16 .ico files to 32x32 .ico files – but I don’t know of anyone who has done that and made them public.

  • Technical discussion of building or contributing to Notepad++ or Plugin codebases

    1k Topics
    9k Posts
    PeterJonesP

    Do not read this if you don’t want a critique of your ideas.

    Currently, Notepad++ manages plugin configurations by storing all plugin-related configuration files in a shared, common “Config” directory into the main N++ > Plugin dir.

    Notepad++ plugins manage their own configurations, most using the suggested plugins\Config\ directory or a subdirectory thereof.

    Leftover Files & Conflicts: Sometimes, uninstalling plugins leaves residual files, which may cause clutter or other issues.

    Alas, clutter is the bane of uninstallations.

    Difficulty in Transfer & Customization: Moving individual plugins between different Notepad++ versions or portable setups is cumbersome, as it involves manually managing the shared Config directory and if the user doesn’t know what are the files related to that specific plugin is not always easy to transfer the customization done from the source to the destination.

    If the user doesn’t choose to learn the configuration structure, that could be difficult.

    Risk of Overwrites: Multiple plugins may use files with identical names (e.g., Config.ini), risking overwrites and configuration corruption or incompatibilities due to overlapping configuration files names.

    I obviously don’t know all plugins, but could you actually name any plugins that use any naming scheme as horrific as config.ini without also including their own subdirectory? Or any two plugins that actually have conflicting names without using their own subdirectories? Or is this just a hypothetical problem that doesn’t exist in the real world?

    Complex File Management: Finding specific plugin settings within the shared Config directory is challenging, especially when troubleshooting or modifying settings.

    Most plugins name their config files after the plugin (or an abbreviation thereof), and any plugin worth its salt should document the name of the configuration file(s), at least if it’s not patently obvious. (The worst offender I’ve seen is NppExec, which uses names like NppExec.ini and npec_cmdhistory.txt and npes_last.txt.)

    Each plugin should have its own dedicated directory structure, for example:

    Plugins/ └── PluginName/ └── Config/ └── Plugin configuration files

    The best plugins already use their own subdirectory of the Config directory, so Plugins\Config\PluginName\____.xyz

    It makes more sense to me for PluginName to be a subdirectory of Config than the other way around.

    Cleaner Uninstallations: Removing a plugin involves just deleting its entire directory, ensuring no clutter due to leftovers will happen.

    And most plugins involve just deleting their one config file, or their Config\PluginName directory (again, NppExec being the worst offender in this regard)

    Reduced config files Overwrite Risks: Separate Config sub-directories prevents configuration files from different plugins overwriting each other.

    Again, in my experience, the risk is 0, after more than a decade of plugin use. YMMV.

    Support for Selective Transfers: Users can copy/transfer specific plugins and their settings without affecting others.

    Irrelevant, as the same is true today.

    Config Preservation on Uninstall: Incorporating an option in the Plugin Admin/Manager

    Why mention the ancient and incompatible Plugin Manager. It’s irrelevant to today’s Notepad++.

    to retain configuration files during uninstallation of one or more plugin

    That’s literally what happens now.

    for example in case of plugin dll file corruption, will allow quick reinstallation with previous settings completely intact

    delete the DLL; install again.

    Granular Transfer & Backup: at the moment it is possible to import just the dll file (one at a time) with the import plugin function, but no config or customization files are imported

    I wish Don had removed that useless menu command when he added the builtin Plugins Admin. The only reason it existed was for people who didn’t have the old Plugins Manager plugin installed to manage their plugins in the pre-v7.6-era. And now, and even then, it was only useful, as you say, for DLL-only plugins.

    With Plugins Admin, there is no reason for that old “import” command.

    So this will also facilitates transferring individual plugins between computers,

    You keep using this phrase. i can understand copying config files between computers, but I would always prefer installing plugins through the Plugins Admin,

    And you do understand that for most people (those who install Notepad++), the plugin DLL goes in the hierarchy of the executable, whereas the plugin configs go in the AppData hierarchy – so it’s two separate hierarchies that you’re dealing with, so not as easy as you are implying.

    Improved Directory Structure: Implementing this as standard philosophy,

    As a philosophy, with the caveat that the order should be config\PluginName\, I am fine with it. Your post implies much more than a philosophy.

    would be a significant step forward in plugin management,

    hehehehe

    reducing conflicts among plugins

    again, name one

    There’s my point-by-point analysis.

    And then, of course comes the technical aspects that you’ve ignored:

    Notepad++ gives easy access to %AppData%\Notepad++\Plugins\Config\ (or that installations’s equiavlent) as the root directory that it suggests for plugins to use by providing a message NPPM_GETPLUGINSCONFIGDIR… But whether or not a plugin uses that is not up to Notepad+++. Notepad++ does not and cannnot enforce where plugins put their configs. It is completely and totally and 100% impossible for Notepad++ to enforce that: Plugins can write files (config or otherwise) in any directory that has write permission, and there is nothing Notepad++ can do to stop that. If Notepad++ were to change what that message returned (for example, returning %AppData%\Notepad++\Plugins\Config\PluginName\ for a normal installation), it could break existing plugins (whether they are currently using that message for getting access to their own , or abusing that message to find a directory that’s relative to Notepad++'s configuration directory, since Notepad++ doesn’t provide a message for that one) – and breaking existing plugins, especially in such a drastic way, should only be done with exceedingly good reason.

    Every time Don has broken backward compatibility, it has created months or years of difficulties with plugins, and headaches for all the regulars who help people here and in GitHub. I sincerely hope you are never able to convince someone to put in that feature request into GitHub for you, and that Don never gets the idea in his head to change the behavior of the existing message.

    If, on the other hand, you wanted to suggest to plugin authors that they voluntarily use NPPM_GETPLUGINSCONFIGDIR\PluginName\ to house their plugin’s config files, I am all for it. (I would especially appreciate if someone can convince NppExec to move all its config files to a dedicated subdirectory).

    (And if nothing else comes of it, you reminded me that I preferred that hiearchical structure, so I have given myself a TODO to move my ConfigUpdater plugin’s configuration and log files to a subdirectory, rather than just relying on the ConfigUpdater prefix in the names to help keep things clean.)

    update: caveat: this is just my opinion; I don’t speak for everyone or even anyone here, nor for the Developer. I am just expressing my own vehement disagreement with the “forcing” that was strongly implied by the original post, and making it clear that I will argue against any breaking change with regards to this directory for existing plugins making use of the NPPM_GETPLUGINSCONFIGDIR in the intended manner

  • Security shouldn't be the privilege of rich people
    51 Topics
    224 Posts
    Mark OlsonM

    @donho
    v8.8.1 looks good to me!

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

  • All the issues (publications/questions) about binary translation
    72 Topics
    462 Posts
    Alan KilbornA

    @PeterJones

    Ah…

  • Say fuck to Notepad++ here, and only here
    88 Topics
    507 Posts
    Klein KlayK

    95399cd5-c897-4efe-8260-dd45d7397047-image.png

  • No support request and bug report here, only unconditional praise and worship

    1 Topics
    3 Posts
    T

    @martaisty I agree, this is a pretty awesome idea! I actually forgot there was a war going on.

    I’m a new user of Notepad++ and I already love it very much, both the politics and the software itself.

    It’s nice to see Don Ho has provided several ways I can help stop this damn war.

    As he suggested, I wanted to donate to one of the reliable organizations “Dronators” which is to help Ukraine assemble an army of drones but that project is already over and it’s no longer possible to donate.

    Anyways, I don’t think they will need my $50 as the project has collected $1,443,157,017! Impressive, but the war didn’t stop, what a bummer!

    In the end I chose to donate to the National Bank of Ukraine which is reliable as it is the national bank of Ukraine. Don Ho says this is to “help people suffering” and funding the military always leads wars to stop, eventually.

  • Blog posts from individual members
    58 Topics
    217 Posts
    OliverO

    As a developer, I often use Notepad++ when I’m traveling or working remotely. Recently, I took a cruise vacation, and it inspired me to jot down thoughts — not just code, but also motivational cruise quotes that help me stay creative.

    Here are a few cruise quotes that spark joy and clarity — just like clean code:

    “You can’t control the wind, but you can adjust the sails.”

    “Cruise life: where work ends and waves begin.”

    “Let your dreams set sail.”

    If you’re a developer who enjoys travel, you might enjoy reading my full list of inspiring cruise quotes here.

    Bonus tip: I used Notepad++ during my trip to take notes, edit scripts offline, and even write some travel logs!

    Let me know — do you code while cruising?


    moderator deleted external link

  • Computer/Programming Jokes are welcome here

    53 Topics
    170 Posts
    ThosRTannerT

    From here https://xkcd.com/2347/ - I think the author understands our digital infrastructure only too well.