• 1 Votes
    3 Posts
    73 Views
    Jonathan JohansenJ

    @Mark-Olson Thanks! I have been migrating your code in-place, and I do get the ElementHost’s handle and pass it to Npp.notepad.AddModelessDialog(handle);. I will read through thoroughly - I’m also thinking to check something diagnostic like Spy++?

  • 0 Votes
    11 Posts
    745 Views
    Claudia SvensonC

    @Coises

    Thank you for your suggestion.
    This seems to be the only way of solving the problem.

    Sad to say that a feature-rich editor like NP++ has no separate option for that.

    To achieve this, the user has to fiddle around unintuitively outside of NP++. Not very elegant

    Thanks anyway

  • 8.8.2 - coming soon??

    General Discussion
    1
    0 Votes
    1 Posts
    61 Views
    No one has replied
  • Fighting Malicious Ads on Download Pages

    Pinned Security
    16
    3 Votes
    16 Posts
    1k Views
    PeterJonesP

    @donho,

    I don’t know how much you can customize your stylesheets, or add <style> tags to individual pages. But if I use my browser’s “Inspect” tool, and add the following <style> to either the <head> or near the top of the <body>:

    <style> ins { background: linear-gradient(to bottom right, white, white 48%, red 48%, red 52%, white 52%, white); border: 3px solid red; } </style>

    Then I can make the page render like this:
    e66eb613-8b60-4486-a325-47d37e620a94-image.png

    <style> ins { /* Set a transparent border to allow the background gradient to show through */ border: 4px solid transparent; /* Apply your gradient as the background */ background: linear-gradient(white, #f77) padding-box, linear-gradient(to right, #f00, #3020ff) border-box; /* The gradient for the border */ /* Ensure the background covers the border area */ background-origin: border-box; /* Clip the background to the padding box and border box to create the effect */ background-clip: content-box, border-box; /* Apply border-radius for rounded corners */ border-radius: 30px; } </style>

    5c1bb69e-b311-4c06-a689-69f59d737a7e-image.png

    with an ins::before, you could even add an “AD:” prefix to any advertising content:

    <style> ins::before { content: "AD:"; /* You can add other styling properties here */ font-weight: bold; } ins { /* Set a transparent border to allow the background gradient to show through */ border: 4px solid transparent; /* Apply your gradient as the background */ background: linear-gradient(white, #f77) padding-box, linear-gradient(to right, #f00, #3020ff) border-box; /* The gradient for the border */ /* Ensure the background covers the border area */ background-origin: border-box; /* Clip the background to the padding box and border box to create the effect */ background-clip: content-box, border-box; /* Apply border-radius for rounded corners */ border-radius: 30px; } </style>

    e99e1142-27f4-466f-9dea-ec3d42f467da-image.png

    I don’t know if doing any of these would violate the terms of service for your hosting… But if not, and if you can insert your own style to change borders and background of the ins tag using something similar to one of the examples I’ve done (even if not exactly what I’ve done), then you could at least make it more obvious to users that those are ad links rather than real download links.

  • 0 Votes
    1 Posts
    50 Views
    No one has replied
  • 0 Votes
    4 Posts
    126 Views
    CoisesC

    There is an issue about this:

    Search function impracticality #10438

  • [bug] Space not inserted for tabs

    General Discussion
    4
    0 Votes
    4 Posts
    137 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

  • 3 Votes
    11 Posts
    776 Views
    CoisesC

    @Vitalii-Dovgan said in Announcement: NPPM_GETOPENFILENAMES and related are being deprecated in v8.8.2:

    What about the backward compatibility?
    Let’s imagine:

    One makes these changes to a plugin. Right after that, this updated version of the plugin requires at least Notepad++ 8.8.2 and will not work with previous versions of Notepad++.
    Alternatively, each plugin developer must still keep NPPM_GETOPENFILENAMES for earlier versions of Notepad++ and also add the new code for Notepad++ 8.8.2 and above.

    A valid concern, but it doesn’t apply in this case. The reason for that lies in the details:

    Existing plugins will continue to work as the message is only being deprecated, not removed; binary compatibility is not affected.

    New plugins will still work with older versions of Notepad++, as the recommended replacement for this message is a code sequence using messages that were already available; no new functions are being added. The NPPM_GETOPENFILENAMES* messages were a way to get open file names with less code, and that’s what’s being deprecated. The “long way” hasn’t changed; it’s just been decided that the increased risk of error when using the “short way” isn’t justified to save a few lines of plugin code, so new development should not use it.

    What will be affected is the backward compatibility of source when updating to the new header files. If you have a working plugin that uses NPPM_GETOPENFILENAMES, NPPM_GETOPENFILENAMESPRIMARY and/or NPPM_GETOPENFILENAMESSECOND and you update the Notepad_plus_msgs.h header, the constants for those message identifiers will no longer be defined. (They are, instead, defined for the same identifiers with the suffix _DEPRECATED.)

    So only plugin authors who need to update the list of messages (which would be only if they are using a new feature, which of course would not be backward compatible) will be affected at all; and they can either work around it by adding the _DEPRECATED suffix or by replacing the code that uses those messages with the recommended alternative.

  • 0 Votes
    2 Posts
    90 Views
    PeterJonesP

    @Brian-Edgeley ,

    Surely someone has mentioned this before?

    If it didn’t work for anyone, then yes, obviously, someone would have mentioned it before. The fact that no one has mentioned it (or very few) indicates that, in reality, it works for the vast majority of people who use it.

    I use it on a daily basis, and have for years, and it’s always worked for me, both on my old Win10 setups I used to use and my new Win11 machine.

    If you want help debugging why it’s not working for you, please go into your ?-menu and choose Debug Info, then copy that information and paste it here – that will give us specific version-info about your N++, as well as other useful information that helps us understand your setup. Once we know a little more about your setup, we might be able to start giving insight or hazarding guesses.

    The biggest and most obvious culprit – so frequent that it actually has a paragraph in the Online User Manual – is that if you’re running Notepad++ “as Admin” (it would have “Administrator” in the title bar, and the Debug Info would tell us if you were, even if you didn’t know), then the shell extension’s Edit with Notepad++ action might not be able to open the file into Notepad++.

    Beyond that, I would probably suggest trying to un-register the shell extension then re-register it (both those steps are here in the User Manual)… but before I could give specifics to help you through that process, I would need to know what version you were using and where your Notepad++ was installed (again, through the Debug Info)

    So, other than “check to make sure Notepad++ is not in Administrator mode”, I cannot give any solid advice until you share your Debug Info.

  • 0 Votes
    23 Posts
    3k Views
    fml2F

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

  • Lock file

    Security
    7
  • Import AutoHotKey.XML into NotePad++

    General Discussion
    3
    0 Votes
    3 Posts
    146 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.

  • 0 Votes
    32 Posts
    15k Views
    PeterJonesP

    @Hashir-Maher ,

    I didn’t understand it two years ago when @sky-247 suggested it, and I still don’t understand it now that you reply saying it was a good idea: how does changing font size or zoom level change whether the “jump to next/prev bookmark” takes you to the middle or the top of the screen?

    I mean, I can understand that when zoomed fully in, that there are so few lines that the “middle” and the “top” are close to each other.
    2280b82f-16c2-477a-85f2-c24580232355-image.png

    But when you zoom back to normal, it’s still a few lines from the top, rather being at the top, like was requested. And I don’t see how you can make “jumping to bookmarks feel a lot smoother” using zooming in.

    And if you zoom out, it’s the exact opposite of what the original poster requested in 2020, in that the middle, where it jumps to, is even farther from being at the top of the screen. I mean, if it’s a short enough file, then all the bookmarks will be “near” the top, but it will be unreadable:
    13efed98-64fb-412b-bd31-abc1a3fc8074-image.png
    , and when you return to normal zoom, the window might not be anywhere near the bookmark you just jumped to, so it makes the zoom-out version even more useless than the zoom-in version.

    Can you explain why you think that @sky-247’s suggestion is at all helpful for the original question of how to show the jumped line at the top of the screen?

  • 0 Votes
    8 Posts
    284 Views
    PeterJonesP

    @Alan-Kilborn said in Some functions not shown in function list:

    There’s also a sample macro called “Trim Trailing Whitespace and Save” or something close to that, that conveniently does the action every time you save (well, every time you run the macro, which, if assigned to your favorite save-keycombo, e.g. Ctrl+s, will do it).

    I used Ctrl+S remapped to Macros > Trim Trailing and Save for years before starting to use editorconfig – and actually I still use that mapping, because I don’t have a .editorconfig file at the root directory of all my drives, so there are still times when the editorconfig plugin doesn’t know to trim trailing for me. Since I almost exclusively use the keystroke vs the toolbar or menu command for my Save, I (almost) always get the trailing removed when I save.

  • How to create a C# plugin?

    Notepad++ & Plugin Development
    29
    0 Votes
    29 Posts
    3k Views
    EkopalypseE

    @scampsd

    Although the registry is actually the Windows standard, I would personally avoid it and rather use the plugin config directory. Can be determined via NPPM_GETPLUGINSCONFIGDIR.
    However, I would create a subdirectory with the plugin name and add a json, xml, toml … file there.

  • 0 Votes
    3 Posts
    117 Views
    DISA InformatiqueD

    @Terry-R

    Thank you…
    it was disable… Why? i don’t know but it’s ok now…
    ;-)

  • Love the term “some random person”!

    Humour
    2
    3 Votes
    2 Posts
    202 Views
    ThosRTannerT

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

  • 2 Votes
    16 Posts
    1k Views
    Alan KilbornA

    @guy038 said:

    If I choose the zero value, as auto-checking is disabled, if I select an important amount of text and immediately invoke the Find dialog, it should fill up the Find what field up to 2,046 characters !

    I’d say that that sounds reasonable.

  • 0 Votes
    27 Posts
    5k Views
    Ildefonso ZanetteI

    @xomx said in Unable to see Data in the Notepad++:

    I’d like to ask the affected users here, for which switching the DirectWrite OFF helped - what OS, graphics card and version of its drivers are they using?

    E.g. post: Windows 10, Nvidia GeForce xyz, 2/24/2023 30.0.14.7430

    (you can find such info e.g. by WinKey+R, type there devmgmt.msc -> OK, and check the Display Adapters > doubleclick on an adapter > Driver tab)

    I have a NVidia RTX driver and also an odd one: "Parsec Virtual Display Adapter"Driver. I’m suspecting that the parsec display might be the guilty one…

  • 0 Votes
    5 Posts
    448 Views
    Berend EngelbrechtB

    @Alfonso-Muñoz
    Just to confirm: I use Notepad++ daily and the same started happening for me after a recent Windows update. What was installed on my PC just before the issue started was this major update of Windows 11: Windows 11 version 24H2. Although this is a 2024 version of Windows 11, they did not roll it out over all Windows 11 PCs yet (source).

    On my PC this update was installed on May 30th, 2025 through Windows Update. After updating Windows, I noticed several changes in display behavior, so the update definitely changed something in that area. This was also when I noticed Notepad++ malfunctioning.

    To resolve the display issue, I also tried uninstalling Notepad++ and install the latest, to no avail.
    What helped (probably same as for you):

    In Notepad++, go to Settings > Preferences > MISC. Change the rendering mode from “Direct write (default)” to “GDI (most compatible)” Close and restart Notepad++

    Thanks for starting this topic, I think I could not have solved my issue otherwise.

    Berend