• Notepad++ v8.9.9 Release Candidate

    Pinned Announcements
    31
    6 Votes
    31 Posts
    2k Views
    andrecool-68A
    @donho Is it possible to add a button (for the search bar) to clear the text field?
  • 0 Votes
    8 Posts
    130 Views
    M
    @PeterJones said: Your words said “Distraction Free Mode” without “Fullscreen”. “Fullscreen” is the aspect of DFM that covers the full screen. That is true, but to be fair I’ve also immediately clarified what I meant by “Fullscreen” in the first message : ) I’m assuming operates in Fullscreen mode, meaning it tries to always stay on top Not being a programmer, I can only talk about Fullscreen and Borderless by their observed effects in videogames. From videogame options, Fullscreen and Borderless both cover the entire screen, the only difference is Fullscreen behave as “Always On Top” (almost always), and Borderless doesn’t. Thank you for the Macro, it’s much less hassle than having to run that script manually every time, and I really appreciate it ^_^
  • 0 Votes
    1 Posts
    48 Views
    No one has replied
  • [New Plugin] MultiReplace

    Notepad++ & Plugin Development
    88
    3 Votes
    88 Posts
    95k Views
    Thomas KnoefelT
    Hi @guy038 , to your question about the 8 logical processors: they don’t really matter here. The load threads do very little computing, they mostly wait for the key to deliver the next file. How many reads can usefully run at once depends on the drive, not on the CPU. That’s why auto picks the count by drive type: 4 for local drives like your key, 8 for network drives, where every file waits for the server, and 1 for hard disks, where parallel reads would just make the heads jump back and forth. On a key with a weaker controller, 8 could just as well be slower than 4. On yours it’s slightly faster, so feel free to keep it. 8 is also the maximum. One more thing: your first comparison showed 27 053 hits in the same 646 files, now it’s 27 010. Did anything change on the key in between?
  • Search++: A work in progress

    Notepad++ & Plugin Development
    219
    7 Votes
    219 Posts
    94k Views
    guy038G
    Hi, @coises and All, You said : Since all you need to do to cancel a selection is to click anywhere in the document, I didn’t figure anything more would be needed. I agree with you that’s not a big task ! I just wanted to point out, that if you want to keep focus on the Search++ dialog, in order to use any other Alt + ... command, I do not see any command which could cancel the selection ! Now, regarding the five shortcuts problem, you’re totally right : my FRENCH keyboard is a standard one and in order to get, for example, the Alt + 1 action, I must use the combination Alt + Shift + 1 ! Now, I do not mind to stay with these Alt + Shift + 1-5 shortcuts ! But, if you find a way to detect the keys themselves, that would be fine too ! BR guy038 P.S. : Sorry for thinking you might have made a mistake when assigning those 5 shortcuts !
  • 0 Votes
    2 Posts
    158 Views
    xomxX
    @Sevens99 said: I wonder if I’m the only one experiencing this issue. It’s a known problem of the modern NppShell, see the GitHub issue #15683 Most likely this is the culprit but I have no easy solution ready. Also no spare time to fix that (maybe during the end of year holidays), so your workaround (or similar) is what I currently recommend to do for the affected users (you don’t need to rename the NppShell.dll, unregistering that shell extension from within the admin-rights powered CMD by regsvr32 /u "C:\Program Files\Notepad++\contextMenu\NppShell.dll" will do it). What’s interesting - the problem manifests only on some PCs/configs (I, for one, have never encountered it).
  • Anyone Here Use Notepad++ for Large Files?

    General Discussion
    3
    0 Votes
    3 Posts
    151 Views
    S
    @Mark-Olson That’s really helpful, especially the point about a huge single-line file being slower than a much larger file with shorter lines. I hadn’t considered that line length could make such a big difference to Notepad++ performance. I’ll definitely take a look at the Large File Restriction setting and the HugeFiles plugin as well. Thanks for sharing all these details!
  • 0 Votes
    4 Posts
    232 Views
    rdipardoR
    @fml2 said: Out of interest: is it possible to configure Notepad++ in a way that the folder marks are also displayed at the last element of the structure? The document’s fold structure is determined by the underlying Scintilla editing component. Notepad++ simply visualizes the fold structure. While some alternative styles can be enabled at the application layer, what you’re requesting would require changes to Scintilla.
  • 0 Votes
    1 Posts
    80 Views
    No one has replied
  • Ahem - I want to rant

    Boycott Notepad++
    2
    -3 Votes
    2 Posts
    157 Views
    PeterJonesP
    Rants like this are only allowed in the Boycott Notepad++ category, so I moved it from a reply in the General Discussion to its own topic here Do not reply to normal discussions with such rants.
  • Mark lines with blue balls and jump between them

    General Discussion
    16
    0 Votes
    16 Posts
    14k Views
    T
    hello, try to navigate: Search -> Bookmark -> Next bookmark <F2> tomas
  • 1 Votes
    19 Posts
    1k Views
    CoisesC
    @guy038 said: Now if, for any font, you select all the text of that new tab and run an Edit > Line Operations > Split Lines operation, for most of them, indeed, the spliting behaviour occured right after the 78 capital letter P. However, for eample : For the proportional Times New Roman font, the spliting action occured after 76 letters P For the fixed witdh **``Consolas font, the spliting action occured after 77 letters P The explanation may lie in something I discovered while bug-hunting in the Elastic tabstops function of Columns++: when DirectWrite is in use, the width of characters can work out to fractional pixels (this is true for both fixed and proportional fonts); but Scintilla only reports the width of strings as integers. So due to the effect of rounding to integers, the width of a string of 78 letters P is not necessarily 78 times the (reported) width of one letter P. Notepad++ uses 78 times the width of one letter P. (Not that it matters much, since none of this is likely to be what anyone wants or expects anyway.)
  • 0 Votes
    1 Posts
    135 Views
    No one has replied
  • 0 Votes
    2 Posts
    142 Views
    PeterJonesP
    @ThatsYar_ , Can you share your ?-menu’s Debug Info? Does the same problem occur if you turn off all plugins (using -noPlugin command line option)? Is it for all files that need admin? Or just in one directory? Or just the one file?
  • 0 Votes
    10 Posts
    662 Views
    David Brigden52D
    Tabs v spaces As Peter said, the most important part is consistency. Mixing tabs and spaces together makes no one happy. I will throw out a couple arguments for tabs here: Indentation of code, markup language, et. cetera is meant to show the structure of whatever. Tabs are a logical, structural element. Spaces are physical. Different users may want different sizes of indentation. If i want 4 character indentation and my coworker wants 2, tabs can be set to show our preferred width. Seems for the most part that spaces are winning out though.
  • 0 Votes
    2 Posts
    165 Views
    PeterJonesP
    @Steven-Guillemet said: Hopefully this will let Notepad++ ditch its current method Until that patch has effectively 100% deployment, Notepad++ should not change its implementation, otherwise it breaks something that currently works for anyone who hasn’t applied that fix. (If there’s a way to make the two methods coexist peacefully, or if there’s a way the installer can test the version and use the appropriate alternative, then that’s great. But if not, then breaking a feature to support bleeding edge is a bad idea)
  • Surprising regular expression !

    Blogs
    2
    1 Votes
    2 Posts
    1k Views
    S
    That’s a clever little experiment! I never really thought about using regular expressions to represent mathematical patterns like multiples of 3, but it makes sense when you look at the binary sequence. Definitely a fun way to explore just how powerful regex can be beyond ordinary text searching.
  • 0 Votes
    2 Posts
    296 Views
    PeterJonesP
    @vivek-viv , Unfortunately, there are an unknown number of “programming languages” or “data file languages” in the world, and no text editor can syntax-highlight 100% of them out-of-the box. Apex is not available in the syntax-highlighter library that Notepad++ uses, and until it is, it will never be in the upper portion of the Language list. To get it added: A feature request would have to be put into Lexilla, and then the Lexilla team, or external volunteer, would have to code up that lexer, and they would have to accept it, bundle it with the library; then Notepad++ could update to use a version with that, and then and only then, Notepad++ could be updated to enable and list the Apex language in the default menu. I’m not saying it’s impossible… just that it’s not likely to be fast. If Apex were similar enough to another language, then, in theory, the Apex language could be mapped to use the that existing language’s lexer, but given its own list of keywords. However, Notepad++ has the User Defined Language (“UDL”) feature, which allows you to define a keyword-based syntax highlighting – so you can put in various lists of keywords, operators, folding-keywords, and delimiter pairs, and get it to do a reasonable job of highlighting simple syntax in your language. The User Defined Language page, and all the UDL > pages in the manual’s table of contents below it, describe how to use the UDL system. There’s also a community-contributed User Defined Language Collection, where people can share UDL definitions that they’ve made, or find ones to use for themselves. I don’t see Apex there… but if you created one, you could share it there, so that other Apex users I did a quick search, and if this is the Apex you are talking about, then it looks similar to YAML (builtin) – so maybe trying to use the YAML lexer might be an initial workaround. And google search AI tells me that the HAML uses a similar structure – there is a UDL in the Collection for HAML, so you might be able to use that as a reference for how to get something like what you want for Apex. No guarantees, but it’s a starting point…
  • 7 Votes
    24 Posts
    30k Views
    Mark OlsonM
    JsonTools v8.6 is now available for download (it’s not up on the Plugins Admin yet, pending my PR to NppPluginList). Major changes: Fixed potential for Notepad++ to hang or crash due to: RemesPath queries with a for loop over an empty array Maliciously crafted schemasToFnamePatterns.json config file RemesPath queries that generate too-deep JSON (which previously could have caused stack overflow) List of 16 most recently used unique RemesPath queries (stored in config file, accessible by menu command) New control in JSON to CSV form, allowing columns to be listed in the order that they occurred in the first record, rather than in alphabetical order
  • PHP Lang: Word vs Keyword

    General Discussion
    3
    0 Votes
    3 Posts
    290 Views
    Laurie StearnL
    @PeterJones Good info on StyleID, thanks.