Categories

  • Announcements regarding our community
    280 Topics
    5k Posts
    donhoD

    … around the 23th June.

  • 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

    @Marshall-Brooks, @Zack-Wallace, @PeterJones, @mkupper, @guy038 and anyone else interested:

    When I coded the Search functions in my Columns++ plugin, I made an attempt to show context.

    In the original implementation of Search in Columns++, it was not possible for a match to span multiple lines, because it worked only on column selections and each match had to occur within a single row. Looking at my code (it’s been awhile), it looks like I never changed the positioning code to account for the expansion to contiguous multi-line search regions… so it probably does some dumb things now which I just never noticed. I apparently made these choices:

    If the (first) line containing the found text is visible on the screen, don’t scroll vertically. If the (first) line containing the found text is not visible on the screen, scroll so that it is approximately one-quarter of the total number of lines visible on the screen past the nearest edge. If after scrolling vertically (if required) the entire found text is visible, don’t scroll horizontally. If it’s possible to show the entire found text while scrolled all the way to the left, scroll all the way to the left. If the width of the found text is greater than or equal to the width of the visible area, scroll the end of the found text (the caret) to the far right edge. If the width of the found text is less than the width of the visible area, scroll so that the margin in the direction preceding the search (left for forward searches, right for backward searches) is the lesser of five times the width of a blank in the default style and half the difference between the widths of the visible area and the found text. The code does not consider the area blocked by the dialog.

    I assume (but do not remember) that I experimented a bit to come up with that, but mostly just made it up. I didn’t feel bad about that for a new (at the time) plugin, but I don’t think it’s good enough for a proposal to change Notepad++ itself.

    I’ll have to think more about what I would suggest now for an algorithm, but input from others would be very welcome.

  • 10k Topics
    53k Posts
    PeterJonesP

    @Aria-James,

    Recommended plugins for C/C++ syntax highlighting, auto-indentation, or even code suggestions for Arduino.

    Syntax highlighting occurs without plugins in Notepad++. You can set Settings > Style Configurator > Language: C++ to have user ext.: = ino so that Arduino sketches automatically get associated with C++ language.

    Further, you can set the USER KEYWORDS # > user-defined-keywords per my post here to add the Arduino-specific keywords to the syntax highlighter.

    Notepad++ does some auto-indentation natively: see Settings > Preferences > Indentation > Indent Settings = cpp to control tabs-vs-spaces on a per-language basis, and the Auto-indent = basic vs advanced which applies globally throughout Notepad++ (described in more detail here in the User Manual). But it’s not super-fancy, and is only “as you add new lines”, so it won’t clean previous code. @Michael-Vincent shares an example script for the NppExec plugin that is able to run an external “pretty print” utility for multiple languages depending on file extension in this post: his script does it for C, HTML, Perl, and Python, but once you understand what you shared, you could definitely call one for a different language (like C++: I am betting that most c pretty-printers are really c++ pretty-printers, too).

    Code suggestions – there is some auto-completion, but it won’t go as far as code suggestions (and it’s definitely not going to be a copilot AI or anything like that).

    Is there a way to integrate serial monitor output or debugging processes within Notepad++ or via external tools? Is there a recommended workflow that allows me to combine Notepad++ with the Arduino IDE or PlatformIO for compiling and uploading, while primarily coding in Notepad++?

    I’ve never tried anything like that, so maybe someone else will be able to give more advice on that end.

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

    1k Topics
    9k Posts
    FraF

    @PeterJones Thanks for the input.

    Surprisingly, just dragging and dropping all the files at once onto Notepad++ opens all the files in about 5 seconds for 1000 files.

    Then the XML Tools takes about 10 seconds to prettify all opened files.

    Then just go to File > Close All so to not have to close each file manually.

    Will do it that way.

    Would be great to update the XML tools plugin if someone’s able and it is not to much work.

    Or just adding the Pretty Print feature directly to the Find In Files feature as extra function for the next Notepad++ update.

  • 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
    89 Topics
    508 Posts
    XLN TechnologiesX

    I can’t believe that, instead of keeping their mouths shut so their opinions don’t harm their corporate interests, these guys are so brazen as to freely state how they feel about things that are important to them!! How dare they do that?

    Let’s all show them the power of the consumer by no longer using their awesome and free software. Ha!! That’s what they get for openly supporting things that they firmly believe in!

    Only the worst sort of people are willing to stand behind their personal beliefs in their professional lives instead of hiding them like good little corporate minions. Let’s make sure they live in fear of expressing themselves so none of us ever has to hear anything we disagree with and can keep pretending that the horrors of world events are just as awful when we work.

  • 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
    171 Posts
    XLN TechnologiesX

    Sadly, it’s missing the lang attribute so it’s just short of true perfection:
    16e31b41-90cb-4378-837f-0ef561d08d53-image.png