• 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
    3k 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
    245 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
    12k 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
    14k 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
    217 Views
    7 COME117

    @PeterJones
    Many thanks!
    Regards,
    RPrinceton

  • How to copy text file from Notepad++

    Locked
    4
    0 Votes
    4 Posts
    248 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
    219 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
    570 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
    466 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
    238 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
    5k 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).

  • How to highlight text?

    12
    0 Votes
    12 Posts
    151k 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
    743 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
    340 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.

  • 0 Votes
    4 Posts
    573 Views
    CoisesC

    There is an issue about this:

    Search function impracticality #10438

  • [bug] Space not inserted for tabs

    4
    0 Votes
    4 Posts
    409 Views
    Terry RT

    @Coises

    As I read it, it seems that the OP wants their Preference to be updated if they use the Edit, Blank Operations, TAB to Space (or Space to TAB).

    Of course, I too could be confused. The lack of detail does make the OP open to interpretation.

    I’m with @PeterJones on this.

    One is a “Preference”, the other a “one-shot function”. This function should not be making changes to a Preference. And at the moment it isn’t, which I believe to be the correct decision.

    Terry

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

    23
    0 Votes
    23 Posts
    6k Views
    fml2F

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

  • Import AutoHotKey.XML into NotePad++

    3
    0 Votes
    3 Posts
    462 Views
    PeterJonesP

    I see that a GitHub user @paulm31 is submitting a AutoHotKey_V2.udl.xml to the User Defined Languages Collection in PR #324 – I have to assume that’s related to this post, even if it’s not you, given the timing.

    That PR is merged, and CollectionInterface shows the AutoHotKey_V2.udl entry for me.

  • Advertising on the official download page?

    7