• notepad++ flagged as malicious, should i worry?

    Security
    4
    0 Votes
    4 Posts
    6k Views
    Zhane HernandezZ

    @xomx Thanks for your input, the analysis does seem to be a bit on the… overly cautious or paranoid side.
    maybe it’s time to find a new resource for risk analysis!

  • 0 Votes
    5 Posts
    457 Views
    NicholasN

    Here is my post about changing file type icons in the registry. It also changes the file type descriptions.

  • 0 Votes
    8 Posts
    442 Views
    Neko_KaiohN

    @pbarney Finally, some actual assistance on this forum. Thank you!

    The code I mentioned that was spat out included the <pre>, just in a different format. So I guess my fiddling was on the right path. I appreciate you taking the time to reply though, it gives me more info on what that code is/does.

  • Handling Ctrl+C in a c++ plugin dialog

    Notepad++ & Plugin Development
    7
    0 Votes
    7 Posts
    4k Views
    CoisesC

    @PeterJones said in Handling Ctrl+C in a c++ plugin dialog:

    I interpreted as wanting to have a keyboard shortcut specific to an action inside the dialog.
    […]
    It would very much surprise me if it weren’t possible for a plugin to do that (though I cannot think of any off the top of my head that do so). But whether “subclassing” or some other strategy is the right way to implement the shortcut capture is beyond me.

    (Following based on theory/understanding. I have not actually tried to do this.)

    Subclassing the NPP window would be horrific way to go about this (if it would even work at all). Making shortcuts work specifically in a plugin window is a bit of an awkward problem, because (as far as I can tell) there is only one accelerator table for an entire running program — and Notepad++ already “owns” that table.

    In a modal dialog or a non-modal window that was registered with NPPM_MODELESSDIALOG it wouldn’t work at all, because messages for those don’t go through TranslateAccelerator. The message would get sent to the window/dialog. This is actually the right way to go, but subclassing the main NPP window would be irrelevant, because the message would never get to that window; it would be dispatched to the plugin window or one of its controls.

    For a non-modal window without NPPM_MODELESSDIALOG, the shortcut key would still send whatever menu command was assigned to it. In that case, a subclass procedure could check whether the keyboard focus is in a window belonging to the plugin. If it is, process it; if it isn’t, pass it through normally. But note that you’d be catching the command, not the shortcut. Your command would always take over from the NPP command, regardless of whether it was by menu, by tool button, or by whatever shortcut key the user assigned to the NPP function.

    For modeless dialogs that don’t register, NPP now works around this for cut, copy and paste by sending WM_CUT, WM_COPY and WM_PASTE to the window/control with keyboard focus when one of those commands is invoked and focus is not in an NPP-managed window or control. Note that if you change the shortcut for one of those commands, the dialog will respond to the new shortcut. (It will respond to the “normal” shortcut as well if and only if that shortcut isn’t assigned to a Notepad++ command. Scintilla assignments don’t count; that’s why the problem didn’t show up until the shortcuts were moved from Scintilla to Notepad++.)

    So to get it right, you have to register the window if it is modeless, and you have to pick up the key combination in your plugin code. How to pick it up is a bit of a pain in the butt, because usually the main window (typically a dialog box) won’t have focus, so the keystrokes will go to whatever control does have focus — unless the dialog manager captures it and applies its own logic (such as it does for the tab key and for Alt+ accelerators).

    I still haven’t found a clear and complete description of what the dialog manager does when the message loop calls IsDialogMessage. Part of it is bound up with WM_GETDLGCODE, which is sent to controls — not the dialog procedure — which further complicates things. Subclassing every control which could have focus when you want your key combination to work would probably be necessary. I suspect some key combinations cannot be captured, but I don’t know that for a fact.

    It’s messy. Finding another way — like adding a button for your action and then underlining a letter so that Alt+letter will activate it — is likely to be a lot easier and less fragile. (If the action is control-based, rather than independent of which control in your plugin has focus, then of course the way you did it is correct.)

  • Column Mode Indent?

    General Discussion
    12
    0 Votes
    12 Posts
    5k Views
    Anonymous UserA

    @PeterJones That fixes everything! Thank you so much! Apparently I need to be better about updating N++ plugins.

  • Style typescript

    General Discussion
    2
    0 Votes
    2 Posts
    3k Views
    PeterJonesP

    @Augusto-Cesar-Santini ,

    Under normal circumstances, TypeScript is not “blank”:
    f4dfe6ae-b151-473c-bac9-4dbd1800cd34-image.png

    What Theme are you using? Default (stylers.xml) or one of the other Themes?

    Please note that themes and stylers.xml aren’t updated automatically when you update Notepad++, so your theme might be out of date, as described in the themes section of the user manual . But some themes, even fully up-to-date, are missing many of the Languages that stylers.xml or the DarkModeDefault theme provide. In that case, I recommend using Plugins > Plugins Admin to install the ConfigUpdater plugin, which can find any languages that are missing from your theme and put in dummy values; after a restart of the app, there will at least be entries, even if the colors aren’t the best or necessarily distinguished from each other.

  • 0 Votes
    2 Posts
    3k Views
    Alan KilbornA

    @jeddahcpu said :

    I can’t make text from right to left in new versions

  • Start NP++ with a blank document

    General Discussion
    3
    0 Votes
    3 Posts
    3k Views
    Charles BillowC

    @Coises Thanks

  • Can't print with notepad++

    General Discussion
    13
    0 Votes
    13 Posts
    13k Views
    PeterJonesP

    @Coises said in Can't print with notepad++:

    I’d say No Background as the default,

    Congratulations. That’s the default already.

    And, as you say, the warnings probably aren’t worth the effort.

    have a separate theme for printing which doesn’t change when you change the display theme

    Ick. As I said above, that breaks the expectation set up by literally every other application I can think of having printed from in the last decade or two. If the visual area has color inherent to the display, the general expectation, in my experience, is that it will print in that color… not some other set of colors which I have to pick or set somewhere other than my primary color choices.

    Printing of text files to dead trees should be rare enough that most people don’t care; printing to PDF, you want the color to match exactly. Since Notepad++ cannot tell which you are doing (it’s the OS, not the app, that knows what printer you send to), there’s another reason to not have a separate printing theme or other such workaround.

    People getting colors the same between screen and print should be the default; anything else breaks reasonable expectation. (Even “no background” being default breaks that expectation, IMO.)

  • Pinned Tabs: Now and Future

    General Discussion
    35
    2 Votes
    35 Posts
    12k Views
    Bruce JakewayB

    I’m interested in having sticky tabs, ie, tabs that will stay on screen, regardless of how right or left you scroll in your tab bar. I could use multi-line tabs, but that takes up vertical space. This is kind of like freezing columns in Excel.

  • -4 Votes
    8 Posts
    867 Views
    Helder MagalhãesH

    @webforpcnet seen similar issues before, also with other tools. Thing is accessing network drives (and even external plugged drives) triggers security and caching tools such as anti-virus, status utilities such as TortoiseGit, etc.

    A separate check needs to be done using another crawler, such as a simple script dumping the file contents. Paste something like the following in cmd.exe:

    @echo off rem Position in the target base directory pushd \\NAS\shared\code\ rem Iterate through all files in the subtree, assume all files, "*.*" for /R %i in (*.*) do ( echo Dumping '%i' rem Force reading file contents (but don't output them!), same as Notepad++ would type "%i" >nul ) popd

    (I’m assuming the \ special character sequence got escaped in the report.)
    If the speed is substantially better than Notepad++ then it might mean there’s a problem (this quick/dirty check cannot assess for any whitelisting or heuristics in the environment).

  • 0 Votes
    6 Posts
    4k Views
    Lycan ThropeL

    @PeterJones ,
    Good point. Luckily, it’s still one of a handful of functionList files…at least until you figure out how to mass produce those. :-)

  • 1 Votes
    4 Posts
    340 Views
    PeterJonesP

    @Rich said in XML - insert rows without nesting:

    I was missing a single “/”

    I hate being bit by something so small but dangerous. :-)

    If you don’t already have it, XML Tools plugin can help with XML syntax check: it can be automatic or on-demand. (If you are using XML>10Mb, you might not want to automatically do the syntax and validation checks; you can turn on/off those options in the XML Tools menu). But I think it might have helped you find that problem.

    Thanks for help!

    Glad to help.

  • 0 Votes
    2 Posts
    145 Views
    CoisesC

    @shodanx2:

    Take a look at the documentation for Columns++ and see if it will work for you.

    One of my goals when I wrote it was to never have to open a spreadsheet program again. (I hate them with a passion.)

    It won’t draw the table lines as in your examples; instead, it depends on using tabs to separate columns. The Elastic tabstops option makes tabs adjust to the width of the column content.

    You can do various column-oriented operations, such as sorting, searching, aligning left, right or numeric, and creating new columns based on calculations from other columns.

    You can install Columns++ from Plugins Admin.

  • 1 Votes
    3 Posts
    463 Views
    G

    @PeterJones said in How to open documents in different windows?:

    Settings > Preferences > Multi-Instance and Date > ☑ Always in multi-instance mode – every time you use Windows Explorer to double-click on a file (or similar) to open it with Notepad++, it will go in a new instance. (This will not change the behavior of File > Open inside Notepad++, which always opens in a new tab, not a new instance.)

    Thanks for the answer.
    Everything works.
    Issue resolved.
    Notepad++ is my favorite text editor.

    Special thanks to you for the clarification about the publication of posts and for additional information on the topic of the question.

  • Networking problem

    Help wanted · · · – – – · · ·
    4
    0 Votes
    4 Posts
    503 Views
    xomxX

    @TBugReporter

    Sounds like the bug I fixed for the v8.7.5, so try to update to any N++ v8.7.5+ (ideally to the latest, as of now v8.8.5)

  • Collapse/Extend switch/case

    General Discussion
    3
    0 Votes
    3 Posts
    4k Views
    francis BaudouxF

    Hello,

    Thanks a lot for your great and swift answer

  • 0 Votes
    2 Posts
    213 Views
    Mark OlsonM

    @kilson69
    Notepad++ does not normally need internet to function, so this is probably due to a plugin or an unusual installation.

    I would recommend that you share your debug info (?->Debug Info... from the main menu) and hopefully a forum regular will be able to use that information to give you more informed guidance.

  • [New Plugin] MultiReplace

    Notepad++ & Plugin Development
    76
    3 Votes
    76 Posts
    46k Views
    Thomas KnoefelT

    A new version of MultiReplace (v4.5.0.30) is ready and will be available with the next Notepad++ release. It can be dowloaded here.

    The focus of this release is on expanding the search functionality and giving you more flexibility.

    Implemented updates:

    Find All: This is a new feature that lets you find all matches and see them in the search results window. It’s not limited to the current file – you can also search across all open documents or in entire folders.

    GroupResults: To go with “Find All,” this new INI option lets you choose how your results are displayed. You can see them all mixed together in document order (the default), or neatly grouped by each list entry, which is great for getting a clear overview of complex searches.

    lcmd: A new command for the “Use Variables” feature. It allows you to load your own custom helper functions from external files, which opens up a lot of possibilities for complex and reusable logic.

    AllFromCursor: Another new INI setting that gives you more control. You can now choose to start “Find All”, “Replace All” and “Mark” operations from your current cursor position instead of from the top of the file.

    Here is a visual take on the changes:
    MultiReplace45.png

  • 0 Votes
    2 Posts
    266 Views
    PeterJonesP

    @Steven-Young_ivanti said in Unattended install not actually executing from a PowerShell script:

    The script line I’m using is fairly straight forward:

    But opens questions, for me.

    C:\Install\npp_setup.exe

    What is this npp_setup.exe? Where did you get it? Is it a renamed copy of the official installer, or some repackaged installer?

    /S ALLUSERS=TRUE

    /S is a valid installer option on the official installer, to enable silent installation; but from anything I’ve ever heard, and searching the repo for ALLUSERS, the option ALLUSERS=TRUE is not understood by the official installer, AFAICT.

    It’s going to be hard for anyone here to help you if you’re starting from some random unknown installer or trying to use options that don’t exist. You might need to give a bit more information.

    The developer doesn’t support unofficial installers, and unless one of the regulars has happened to have heard of / used it, it’s not likely any regulars will be able to help you in the forum, either.