• Please Read This Before Posting

    Pinned Locked
    1
    7 Votes
    1 Posts
    6k Views
    No one has replied
  • v8.7 Search Results Missing

    Pinned
    15
    0 Votes
    15 Posts
    3k Views
    xomxX

    This v8.6.9-v8.7.2 issue has been fixed (GitHub commit).
    The fix will be included in the next Notepad++ version (probably v8.7.3).

    @PeterJones
    I would leave this topic pinned for a while longer until the fix reaches most N++ users.

  • HELP: Having trouble with Macros in v8.5.3 or later

    Pinned
    28
    2 Votes
    28 Posts
    14k Views
    Mike NewmanM

    Moderator Note: The contents of this post were moved to a separate topic, Macro works normally, but fails when shortcut is Ctrl+Shift+C, because it’s actually separate from the >=v8.5.3 issue for this Topic.

  • Macro does not record my Run action

    8
    0 Votes
    8 Posts
    147 Views
    Victorel PetrovichV

    @PeterJones
    Great walk-through.
    You knew how the menu IDs are assigned, so you were able to design the proper experiment.

    I have just performed an equivalent one where I created 2 Run-menu actions, then manually included the second one in a macro; tested fine; then deleted the first Run-menu action and restarted N++.
    When calling my macro, it, predictably, failed for the reasons you mentioned (in fact, it crashed N++).

    A question in your step 3 above:

    <Macro name="Do BC" Ctrl="no" Alt="no" Shift="no" Key="0"> <Action type="2" message="0" wParam="20002" lParam="0" sParam="0" /> <Action type="2" message="0" wParam="20003" lParam="0" sParam="0" /> </Macro>

    shouldn’t sParam be "" ? based on https://npp-user-manual.org/docs/config-files/#attributes-for-the-action-tag
    Same in your example in https://community.notepad-plus-plus.org/topic/25400/faq-automating-notepad/2?_=1756438181968

    Now to the main part:

    It is 100% repeatable: it renumbered the macros every time one was inserted or deleted from the sequence, invalidating the wParam value used.

    Same happens when Run-menu items are inserted/removed from that menu; I guess similar thing happens with plugin menu.

    This pinpoints the core issue and also a possible solution/ fix to N++ code that deals with menu ID (re)assignments:
    The menu ID for a command should be kept constant.

    (Up until that command is removed by the user.)

  • How to replace two separate lines.

    Moved
    7
    0 Votes
    7 Posts
    103 Views
    Victorel PetrovichV

    :) you are not lucky, eh?

    It looks like the reason it works for me is that I’m using the LF EOL, not CR LF as typical in Windows.

    Cheers

    P.S. @Brent-Ficker if you’re not familiar at all with regex, the “Extended” mode setting would work for this particular problem too, to gently introduce you to such things.

  • Disable menu activation for a shortcut not working for english.xml

    5
    0 Votes
    5 Posts
    93 Views
    jabcreationsJ

    @PeterJones

    I had to reinstall to get the English Customizable file installed (C:\Notepad++\localization\english_customizable.xml). I made some recommended changes (name="Exit&amp;°"), changed to English and then back to English Customizable and tested it and it did not exit as desired; thanks!

  • Search characters if exist in any order with no spaces?

    Locked
    5
    0 Votes
    5 Posts
    82 Views
    PeterJonesP

    Moderator Note: Please do not delete posts after the conversation has happened. It removes context.

    (Moderator restored deleted posts; topic being locked, because it appears the original poster is no longer interested, since the posts were deleted)

  • EV GLOBAL SIGN BROCKEN

    2
    0 Votes
    2 Posts
    64 Views
    PeterJonesP

    @ilya-zabelin ,

    The certificate / signature is not broken – it is signed using a CA (Certificate Authority) Certificate that you don’t have. You just need to follow the instructions linked to as the self-signed-certificate link in the Release Announcement, which links to the official website instructions: https://notepad-plus-plus.org/news/v883-self-signed-certificate/ . Or the online user manual has an entire section on how to install the CA cert on your machine.

    (GlobalSign refused to let the developer get a certificate issued in the “Notepad++” name, so he made this new CA cert to “bridge the gap” until he is able to get some paperwork filed with his local government to register “Notepad++” as an organization, so that hopefully GlobalSign will be willing to use the “Notepad++” name on the certificate; government beaurocracy can be slow, so it might be a while, which is why the CA cert needs to be installed in the interim.)

  • 0 Votes
    19 Posts
    2k Views
    Bob BridgesB

    @Patrick-909

    And keyboard shortcuts can be assigned to menu commands by choosing run > modify shortcut and switch to the Main Menu tab on the Shortcut Mapper.

    It would be good to have the Open in Default Browser be located in either the View or Run Menus, but creating a shortcut works for me.

  • Unable to see Data in the Notepad++

    28
    0 Votes
    28 Posts
    10k Views
    NebojshaN

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

    Win 11, VMware SVGA 3D, 4/28/2023, 9.17.6.3
    Win 11, Microsoft Remote Display Adapter, 6/21/2006 10.0.26100.4484

    Accessing a VMware virtual machine via Remote Desktop Connection (RDP)

  • More information regarding initial post: Spaces instead of Tabs

    Locked
    3
    0 Votes
    3 Posts
    97 Views
    PeterJonesP

    moderator fixed image in the original conversation; continue discussion there

    LOCKED THIS SECOND DISCUSSION
  • 0 Votes
    6 Posts
    120 Views
    PeterJonesP

    @Danie-Bosman,

    I used moderator powers to fix your embedded image.

    Are the arrows indicatiing Tab characters, or merely indicating where the indents are?

    Your drawn red arrows are the View > Show Symbol > Show Indent Guide indicators. They show up whether you are set to spaces or tabs, so it won’t help you determine which you are set to.

    OTOH, the related View > Show Symbol > Show Space and Tab do show spaces vs tabs:

    126dc4bb-05c5-4be7-aa93-20a8ffd5e33a-image.png

    As @Alan-Kilborn said, the long right arrows are tab characters, the mid-dots are space characters.

    Unfortunately, your screenshot did not include enough information to tell what language your code is in. Like I said, the screenshot needs to include the status bar to show us that, and you cut it off before the status bar. Your language looks vaguely VisualBasic-like, but that’s just a guess. (Though it’s confusing to me that your tab name claims *.txt, but it’s syntax highlighted like code; have you associated .txt with something other than normal text?)

    Anyway, whatever language it’s set to, whether you are willing to show the status bar or not, assuming you can read the status bar yourself, or can look in the Language menu to determine what language is active for syntax highlighting your .txt file with code, you need to click on that language’s entry in the Indent Settings box that lists all the languages, and see what the Indent Using is set to for that language: see whether it’s set to Use default value, in which case it will follow the [Default] settings you show in you screenshot; or it might not have that set, and instead have its own, like Makefile does:

    Examples comparing my settings for Visual Basic with Use default value vs Makefile with its own set to use tabs:

    Visual Basic 1e2784be-9137-4be5-9b25-e49554bfbb19-image.png Makefile 2ec29bcd-b77d-4519-9876-c610152b64fa-image.png

    update: But given your indication that you seemed to think the guidelines were tab characters (which they aren’t, necessarily), then my guess is that you were just misinterpreting what you were seeing, and this whole time, you really do have spaces where you thought it was still inserting tabs. Again, View > Show Symbol > Show Space and Tab will show you definitively and unambiguously whether the characters are spaces or tabs.

  • Delete an entire line if a specific word is found inside that line

    9
    0 Votes
    9 Posts
    36k Views
    Antheds KennelA

    @Mark-Olson Thanks for the help, I’ll try it when I get back from vacation. Kind regards Thore

  • Disable line-switching keyboard shortcut?

    3
    0 Votes
    3 Posts
    50 Views
    jabcreationsJ

    @PeterJones Thank you Peter, that seems about right. I was able to find and clear the keyboard shortcuts (Settings --> Shortcut Mapper for others who don’t know offhand).

  • Ability to turn off indent guideline?

    2
    0 Votes
    2 Posts
    47 Views
    PeterJonesP

    @Timwi said in Ability to turn off indent guideline?:

    Is it possible to turn the indent guideline off?

    View > Show Symbol > Show Indent Guide

  • npp v8.6 reverses the order of lines on column copy/paste

    25
    1 Votes
    25 Posts
    7k Views
    CoisesC

    @PeterJones said in npp v8.6 reverses the order of lines on column copy/paste:

    Unlike @Coises , I don’t consider it a “feature” (ie, a bug masquerading as a feature), I think it’s a reasonable compromise between all the different opinions on what the “right” behavior should be when mixing between column and multi-select mode.

    I agree — perhaps the scare quotes were a bit excessive. For certain, it’s intended behavior; it was never a bug that was presented as a feature to avoid dealing with it.

    I think that for users like me, who use rectangular selections frequently and multiple selections rarely, the improvements to multiple selection in the early 8.x releases felt like a degradation in user experience. Some of that has been mitigated by the Multi-Editing options (though, for example, turning off the ability to create multiple selections when you do want them is an unfortunate trade-off for not breaking normal drag-copy conventions… but if I recall correctly, that binary choice is baked into Scintilla, so it would be fragile at best for Notepad++ to attempt something different).

    I imagine it appears exactly reversed to people who use multiple selections often and rarely want rectangular selections: they probably wish the distinction could be eliminated so they didn’t have to keep track of different behaviors when a rectangular selection hasn’t been changed to a multiple selection.

  • 0 Votes
    3 Posts
    84 Views
    PeterJonesP

    @David-Fox said in How do I pass a parameter to a locally store webpage from the context (right click) menu?:

    I’m trying to get a locally stored html file to run from the context menu.

    Commands that are in the run menu also need to be runnable from the cmd.exe window (except with the full value pasted in – and, in the case of URLs, also must prefix the command with START).

    If you try to execute your command with the START prefix, in cmd.exe, you will see it does the same thing:

    START file:///E:/dwgs/Json/OSM_Tag_History/index.html?node/6135938647

    that is, it drops the query parameters. It’s a “feature” of Windows (and the shell execute or similar syntax), and not something that’s Notepad++'s fault.

    Pasting this into the browser’s URL bar the data is received & loaded

    You might then try sending the file:///E:/dwgs/Json/OSM_tag_history/index.html?$(CURRENT_WORD) as a command-line parameter to your browser’s executable (using correct syntax), insead of relying on Windows cmd interpreter. Maybe something like

    mybrowser.exe file:///E:/dwgs/Json/OSM_tag_history/index.html?$(CURRENT_WORD)
  • Advice for Backup settings with AutoSave installed

    3
    0 Votes
    3 Posts
    117 Views
    Mark D Worthen PsyDM

    @PeterJones Thank you for explaining everything so well. I really appreciate it. All the best - Mark

  • Add iNVERT cASE in the Right Click Menu

    2
    0 Votes
    2 Posts
    72 Views
    Alan KilbornA

    @Michel-Merlin

    You can customize the right-click context menu for your own use; consult the user manual (found via the ? menu in Notepad++) for details on how.

  • 1 Votes
    4 Posts
    147 Views
    Terry RT

    @Prelle said in Window loses focus a few seconds into typing after update to v8.8.3 - Windows 11:

    i don’t know that any specific window gets focus

    I did a quick check (and test). If the status bar in Windows doesn’t indicate which window is active by colouring the icon for it differently, then use the Alt + tab key once and hold the alt key down. The window which appears should show open windows. The one highlighted is now the new one, and possibly the one to the left is what was the active window before hitting the alt + tab key.

    I’ve never had the “always on top” option in use, so I don’t know what the ramifications are for it in operation.

    Terry