• FORUM: Posting Queue

    Pinned
    9
    12 Votes
    9 Posts
    1k Views
    PeterJonesP

    @donho ,

    Makes sense.

    Since deleting posts was tedious for me, I had recently been looking into whether I could use the API that the forum offers to write a script to automate some of the cleanup (like with purging the deleted posts/topics), but that will take some time to develop.

    update: As of Nov 9, the purge automation is working, and it will run once a week. (Along with purging deleted posts/topics, it will also delete user accounts that are more than a year old where the user never posted and never logged in after the first day – nearly half of the 30000 accounts were in this category)

  • Please Read This Before Posting

    Pinned Locked
    1
    5 Votes
    1 Posts
    4k Views
    No one has replied
  • Find/Replace Window blocking results ...

    9
    1 Votes
    9 Posts
    76 Views
    guy038G

    Hello, @coises and All,

    In order to improve viewing of ALL the different matches of a specific search, we could add, in the Find dialog ONLY, this new option :

    ❐ Close after find

    or

    ❐ Close after first find

    Then, if checked, we’ll continue the search, using the F3 or Shift + F3 shortcuts

    For example, this option is present within Notepad2 and Notepad3.

    At any time, if we need to open the Find dialog again, we’ll just need to use the Ctrl + F shortcut.

    Best Regards,

    guy038

  • Notepad++ lags when text files are on FTP

    11
    0 Votes
    11 Posts
    201 Views
    mkupperM

    @Alexander-Anisimov said in Notepad++ lags when text files are on FTP:

    You may be right. In my understanding, WebDAV is another way of connecting protocol but still is FTP, although different.
    May be I am wrong.

    You are wrong. :-)

    WebDAV is a protocol that is similar to HTTP that web browsers use with web servers. As WebDAV looks like HTTP on the network it works with NAT, firewalls, web proxies, etc. Accessing a WebDAV server is just like accessing a web server. Many web browsers have built-in support for WebDAV.

    That said, if there are bandwidth or latency issues accessing a particular WebDAV server then all applications, including Notepad++ will be impacted.

    WebDAV itself is not slow or laggy.

    If I was stuck with needing to edit files that are on a slow or laggy server then I probably would create script that first copies the file to the local hard drive, runs Notepad++ on the file, and then keeps an eye on both the local and remote copies of the file. If the local copy changes then I push it out to the remote server. If it changes on the remote side then pop-up a warning. A tricky aspect is that Notepad++ allows people to exit Notepad++ and then resume editing. Thus I can’t depend on Notepad++.exe going away as a signal that I no longer need to monitor and synchronize that file but also need to watch Notepad++'s session.xml file.

  • 0 Votes
    17 Posts
    6k Views
    PeterJonesP

    @Marshall-Brooks said in Double Ctrl+F won't bring the find dialog to the front of the primary window.:

    Also - somewhere along the way (8.81 or prior), Alan’s suggestion was implemented:

    v8.3.3 in March 2022, so a few months after Alan’s 2021 post. See https://github.com/notepad-plus-plus/notepad-plus-plus/wiki/Changes#833

  • Copying file itself into clipboard in Notepad++

    23
    0 Votes
    23 Posts
    2k Views
    PeterJonesP

    @Alexander-Anisimov said in Copying file itself into clipboard in Notepad++:

    how can I bind a hotkey something like Ctrl+Shift+C to it?

    That’s explained in the FAQ. Search that page for “shortcut” (step 4 of the instructions) if you didn’t notice it.

  • Pascal multi line string highlight

    2
    0 Votes
    2 Posts
    45 Views
    PeterJonesP

    @Ertan-Küçükoglu said in Pascal multi line string highlight:

    It would be nice to have it visualized as string in Notepad++

    Notepad++ uses a library called “Lexilla” to handle deciding what characters in a document to syntax highlight. When I use their testbed “SciTE” editor, it is showing that it’s treating the line ending with ''' as an “unterminated string”. But it apparently doesn’t know that Delphi recently added multi-line strings with the triple-quote syntax.

    The Lexilla project has ome reported issues about Pascal and Delphi – you can look through those, and see if any mention the multi-line strings. If not, you might want to request that they add it. Once they add it, and Notepad++ updates its Lexilla library, then Notepad++ could add that new styleID to the Style Configurator options for Pascal. But until they add the support, there’s nothing Notepad++ can do about the official lexing of the language.

    However, as a workaround, there is a plugin called “EnhanceAnyLexer”, which allows you to add regex-based foreground colors. Doing multi-line stuff with a regex is risky if there’s a mismatched triple-quote somewhere, but once you install EnhanceAnyLexer, open your Delphi/Pascal file, use Plugins > EnhanceAnyLexer > Enhance current language, which will open up a [pascal] section in the EnhanceAnyLexerConfig.ini. Set it to the following

    [pascal] ; Everything between pairs of triple-ticks is colored cyan 0xCCCC00 = (?s)'''.*?''' ;excluded_styles = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,20,21,22,23

    (make sure you use the ; or # to coment out the excluded_styles, otherwise it won’t color properly; you can, of course, pick any 0xBBGGRR values you want to choose your own color, as described in the comments of the INI file.)

    With that INI saved, it will mean that from now on, the EnhanceAnyLexer plugin will color triple-quote multi-line strings in Delphi/Pascal files. like this example:
    5ba5abdd-c30f-4536-b470-290f55647f1a-image.png

    Since some people aren’t clear when I’ve given such instructions: once you save the EnhanceAnyLexerSettings.ini, the EnhanceAnyLexer will always apply that regex-based coloring to Pascal/Delphi files (you don’t have to run Enhance current language every time you want to turn it on; with the plugin installed, and the ini saved, it will be automatic).

  • 1 Votes
    35 Posts
    11k Views
    M

    @Denis-Rionnet said in Notepad++ has a Reload false alarm / bug? "This file has been modified by another program. Do you want to reload it"? even when it hadn't been recently modified at all?!:

    I understand that this behaviour can be disabled via the settings panel (it works: the warning gets muted)).

    How and where? nvm - found it with Google - Settings>Misc>File Status auto-detection.

    I’m having the same issue - for me, typically when I don’t save the file in NPP, lock the computer, and then unlock it and go back to editing.

    Files are stored on a network hard drive (not Cloud storage). File protocol is SMB, if that is what @ekpalypse is asking.

    I don’t think I’ve seen the message in NPP previously, but I’ve just started using it heavily.

    I agree, the feature was handy when it worked.

    For me, nobody else edit’s these files, and the one other program that I might edit them in notifies me if they were changed in NPP, so I’m okay with disabling it, but I’d like to see it fixed.

    Debug info:
    Notepad++ v8.8.1 (64-bit)
    Build time : May 3 2025 - 18:41:09
    Scintilla/Lexilla included : 5.5.6/5.4.4
    Boost Regex included : 1_85
    Path : C:\Program Files\Notepad++\notepad++.exe
    Command Line : “Z:_Brooks Work\FM ExtendScript\Scripts_2025\OPS_JG_Update_Variables.jsx”
    Admin mode : OFF
    Local Conf mode : OFF
    Cloud Config : OFF
    Periodic Backup : ON
    Placeholders : OFF
    Scintilla Rendering Mode : SC_TECHNOLOGY_DEFAULT (0)
    Multi-instance Mode : monoInst
    File Status Auto-Detection : cdEnabledNew (for current file/tab only)
    Dark Mode : OFF
    OS Name : Windows 11 Enterprise (64-bit)
    OS Version : 23H2
    OS Build : 22631.5472
    Current ANSI codepage : 1252
    Plugins :
    JSMinNPP (1.1905.1)
    mimeTools (3.1)
    NppConverter (4.6)
    NppExport (0.4)
    NPPJSONViewer (1.34)
    XMLTools (3.1.1.13)

  • ANSI escape sequences color rendering

    13
    0 Votes
    13 Posts
    13k Views
    J_SwaJimeJ

    @PeterJones

    Sorry I wasn’t trying to stir up trouble. Either you are correct or I may simply have mangled things by going in the wrong order.

    Here is a pic showing miswritten regex I found via AI, which was what I was trying to correct. I did not find the ErrorList language feature until after writing my initial post.

    Screenshot_20250618_203154_RVNC Viewer.jpg

  • Revert to Windows 10 NotePad

    3
    0 Votes
    3 Posts
    103 Views
    7 COME117

    @PeterJones
    Many thanks!
    Regards,
    RPrinceton

  • How to copy text file from Notepad++

    Locked
    4
    0 Votes
    4 Posts
    93 Views
    PeterJonesP

    @Alexander-Anisimov ,

    Ah, okay, I understand. Notepad++ itself doesn’t have that feature. But as you apparently don’t remember from last October when you asked the same question, there are ways using a script for the the PythonScript plugin. It seemed more than you could understand at the time, but maybe it’s important enough to you to try again.

    If you have questions about the old discussion, you can continue the conversation there, to maintain context. Since this is a duplicate of your previous discussion, it is being locked – so you can reply there, not here.

  • Using Notepad++ for Script Review in Large-Scale Automation

    3
    1 Votes
    3 Posts
    134 Views
    Thomas KnoefelT

    @NebulaPulseX
    MultiReplace covers the complexity you’re dealing with quite well. While it doesn’t support syntax checking, it handles regex, variables, and multiline edits. Bulk replacements work across all open files in Notepad++. Folder-based processing is on the roadmap.

  • 1 Votes
    6 Posts
    485 Views
    PeterJonesP

    @deleelee said in The 'shortcuts.xml' file is NOT re-created if you delete it, on purpose or by mistake !:

    Perhaps I’m misunderstanding your meaning but, if the “exe” directory is the one containing notepad++.exe, the portable version does have shortcuts.xml there.

    You ignored the context of the discussion: the specific question @guy038 asked was,

    Is is normal that a default shortcuts.xml file is NOT created if absent in current folder ( for a portable version )

    Or, phrases a different way: “if you delete the shortcuts.xml and start Notepad++, why doesn’t it re-create it with default shortcuts”

    So, definitionally, if you’ve deleted the shortcuts.xml from the portable directory, there is no shortcuts.xml from which NPP can read the defaults, since NPP doesn’t have a .model for shortcuts.xml and it has no where else to look. (I was contrasting that to the normal installation, where if you delete the App data shortcuts.xml, NPP can recreate it using the shortcuts.xml in the exe directory)

  • How to remove a language from a srt file?

    3
    0 Votes
    3 Posts
    414 Views
    Md. Mobashir HasanM

    @rinku-singh it’s been long & i forgot for what exact reason I asked. Thanks, anyway.

  • How to set "zoom" level of menu, toolbar and footbar ?

    3
    0 Votes
    3 Posts
    158 Views
    mpheathM

    @Bernard-Schleich-0

    I currently use

    https://github.com/Tatsu-syo/noMeiryoUI

    in Windows > 7 removed settings to adjust fonts in Notepad++ and other programs . In Preferences, General -> Reduce may need to be unchecked for OS settings to be used.

    Size of fonts changed should be modest as larger sizes may not fit in the area allocated in the GUI.

    Microsoft appears to want users to use Scaling instead of the legacy of WindowMetrics.

  • Question(s)

    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).

  • Note++ file location

    3
    0 Votes
    3 Posts
    153 Views
    JE RamirezJ

    @PeterJones, thanks. Of course, it’s Notepad++, a little too fast with the typing and posting of the question.

    Thanks for the paths.

  • How to highlight text?

    12
    0 Votes
    12 Posts
    148k Views
    PeterJonesP

    @Farhan-Yazid said in How to highlight text?:

    Hi, any shotcut button to assign the highlight funtion?

    By default, the Style One Token / Style All Occurrences of Token commands do not have keyboard shortcuts.

    But if you use Settings > Shortcut Mapper, set Filter = style, you can choose any of them and use Modify to set a keyboard shortcut for that token-highlight style.
    1ccdb944-484d-4a28-9bc6-c301a59b0478-image.png

    (In case it’s not clear: Style all using Nth style in that dialog corresponds to Search > Style All Occurrences of Token > Using Nth Style [or the right-click context menu equivalent]; Style one using Nth style corresponds to Search > Style One Token > Using Nth Style [or the right-click context menu equivalent]. And for further clarification: the Search > Mark All that @Alan-Kilborn mentioned 6 years ago is the same as what’s now known as Search > Style All Occurrences of Token)

  • Notepad++ funciona en linux?

    5
    0 Votes
    5 Posts
    671 Views
    EkopalypseE

    @ANDRES-MARIANO-MARTINEZ-PEÑA

    Yo sólo utilizo versiones portables, es decir, versiones que no necesitan ser instaladas, sino que simplemente se copian en un directorio.
    Para instalar un paquete de instalación sin entrada, hay que pasar el parámetro /S a setup.exe. https://npp-user-manual.org/docs/command-prompt/#installer-options.

    I only use portable versions, i.e. versions that do not need to be installed, but simply copied to a directory.
    To install an installation package without input, you have to pass the /S parameter to setup.exe. https://npp-user-manual.org/docs/command-prompt/#installer-options.

  • TranslateID (FolderName) in UserDefinedCommands (shortcuts.xml)

    3
    0 Votes
    3 Posts
    273 Views
    João MacJ

    @PeterJones said in TranslateID (FolderName) in UserDefinedCommands (shortcuts.xml):

    If you look again at the reference you linked, the TranslateID attribute is defined for the contextMenu.xml; however, the <Command> tags in the shortcuts.xml do not have that attribute listed as being available.

    Thus, I do not believe what you are looking for is currently possible. Thus, I think you would have to follow the instructions in our FAQ to put in a feature request to ask the developer to add TranslateID to the shortcuts.xml <Command> tag.

    Hello, @PeterJones.

    I truly appreciate your quick response and such a clear explanation!

    Indeed, upon rereading the documentation I referenced, I realized I misunderstood the use of the TranslateID attribute. It applies to contextMenu.xml, not shortcuts.xml, as I had mistakenly assumed. That was an oversight on my part, and I appreciate you pointing it out so objectively.

    In my case, this was just curiosity based on that mistaken understanding. It’s not something essential for daily use of the application. I’m glad to have learned the actual scope of this functionality.

    Thanks again for your kindness and clarification.