• Notepad++ release 8.9

    Pinned Announcements
    10
    4 Votes
    10 Posts
    916 Views
    donhoD

    @wimasoft
    I guess it was you who deleted your post, because there’s no issue.
    Do you confirm?

  • Add current file to Workspace?

    General Discussion
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • 9 Votes
    50 Posts
    18k Views
    Lycan ThropeL

    @PeterJones said in Config Files Need Updating, Too:

    But, unfortunately, there were a few growing pains in transferring from the plugin to the builtin that I was really hoping wouldn’t happen, because I had ironed out so many problems in the plugin version already.

    That IS why it’s called ‘developing’. and maintainers are ‘developers’. :-)

    If I ever saw a first version of anything that worked unscathed on the first try, I’d be digging through the code looking for the bomb that went undetected. :-)

  • 0 Votes
    2 Posts
    69 Views
    PeterJonesP

    @Robert-Or-Janet-Diebel said in Compare plugin, output a list of line numbers that do not match:

    I wish to be able to run a compare and output a list of line numbers that do not match. This, whether with Notepad++, the Compare plugin, or some other utility.

    “some other utility”: GNU’s diff command (which there are various ports to windows) could make a diff file or patch report similar to what’s described below. But anything that’s outside of Notepad++ and its plugins is OFF TOPIC here, so you’d have to look elsewhere for details of how to do that. Please don’t ask for off-topic (non-Notepad++) suggestions until it’s 100% certain that it can’t/shouldn’t be done in in Notepad++, and don’t expect more than hints if that’s the only way, because this isn’t a generic “transoform my text for me” forum.

    Never use Compare plugin; it is out of date and no longer supported, and has known dark-mode bugs. ComparePlus is the updated version of the Compare Plugin, and is the plugin you should use for comparing files.

    ComparePlus has had Generate Patch action since v2.0.0. That comes close to what you want, in that it generates a new file that has all the differences in an industry-standard “patch” file, which does list the line numbers that are different, but also includes the changes needed to convert from old to new version, so it might be more than what you want. But you could extract the info you wanted from that patch file.

    For example, if you had a patch file that looked like

    --- new 2 +++ new 3 @@ -1,6 +1,7 @@ one -two +two2 three +four has more alpha beta gamma @@ -16,4 +17,4 @@ nu xi omicron -pi +pie

    the lines in the @@ would indicate the lines that had changes (sometimes with context lines around them.

    -1,6 +1,7 says that “in the LEFT file, starting at line 1 for a total 6 lines, it is changed to the RIGHT file starting at line 1 and for a total of 7 lines” -16,4 +17,4 says “in the LEFT file, starting at line 16 with 4 lines, it is changed to the RIGHT file starting at line 17 for 4 lines.”

    So if you did a MARK for ^@@.*$ in regex mode and then Copy Marked Text, it would put all those line-number indicators in the clipboard, and you could paste those into a new tab that would just have the indications of which lines are changed.

  • 0 Votes
    3 Posts
    84 Views
    PeterJonesP

    @shodanx2 ,

    Alternately, install the Customize Toolbar plugin, enable Plugins > Customize Toolbar > Custom Buttons, then edit ...\plugins\Config\CustomizeToolbar.btn to include something like the following:

    File,Open Containing Folder,cmd,,onion.bmp,onion.ico,onion.ico File,Open Containing Folder,Explorer,,*R:Ex,*G:Ex,*B:Ex

    The first line uses a pair of BMP (16x16, 256 color) and ICO files I had readily available to do the open-containing-folder-in-cmd, and the second line does the explorer version: it uses a RED-background Ex if using Standard Icons, a GREEN-background Ex if using Fluent icons in Light Mode, and a BLUE-background Ex if using Fluent icons in Dark Mode:

    d8b62c68-ba9c-4138-a0e8-6025055143fa-image.png
    a9742ca9-9ef4-4440-acd5-8ef82c33aa10-image.png
    d14c69f5-60ab-489f-8237-5546e6a8aeb3-image.png

    As mentioned here, the extra spaces around the buttons are due to an unfixed bug in the CustomizeToolbar plugin. The workaround is to also define a replacement icon for the Show Symbol default toolbar entry using

    View,Show Symbol,Show All Characters,,Icons\allChars.bmp,Icons\allChars_off.ico,Icons\allChars_off_dark.ico

    That issue-comment has links to where you can get the BMP and two ICO files for that button.
    But using that in addition to the commands I showed earlier will make the button toolbar more compact:
    edd28df4-f9e6-42b1-9bfd-979527514a54-image.png

  • 1 Votes
    2 Posts
    107 Views
    EkopalypseE

    @xMRi

    As far as I know, no. Npp explicitly checks this and throws an exception if no function is defined. So I would say, use an “About” menu item.

  • 0 Votes
    5 Posts
    187 Views
    PeterJonesP

    @PeterJones said in Perl keywords "class" and "method" not recognised by Function List:

    Please note: the bad highlighting on the $) on lines 325 and 326 compared to 316-317 is caused by the underlying lexer from the Lexilla library project. I have already created an issue there to get that resolved; it cannot be fixed in Notepad++ until it’s fixed in Lexilla.

    (This is separate from the Function List behavior, but since I thought you might notice something like that if you used prototypes, I decided to point it out.)

  • Notepad++ 8.9 RC is available

    Announcements
    8
    4 Votes
    8 Posts
    741 Views
    donhoD

    FYI
    For the security reason, the https://download.notepad-plus-plus.org/ will be shutdown for some days.
    It might be back online next year.

  • Praise Notepad++

    Praise Notepad++
    1
    3 Votes
    1 Posts
    77 Views
    No one has replied
  • Notepad++ 8.8.8 release

    Announcements
    25
    1 Votes
    25 Posts
    9k Views
    DustyMarieD

    @Andrea-Gaviraghi More results from allowing updates on MSI package. The 8.8.8 MSI pulls the update from Notepad++ and it then installs the 8.8.9 executable. So again, the computer shows 2 installs, when only the newest is really installed. This process should be a lot cleaner…

  • Notepad++ 8.8.8: 2 issues detected

    General Discussion
    7
    0 Votes
    7 Posts
    619 Views
    deleeleeD

    @xomx said in Notepad++ 8.8.8: 2 issues detected:

    or the 3rd option - as I said, create new MenuIcons plugin GitHub issue and its author most likely fixes it and publishes a new compatible version

    Oh yes, of course, sorry. The third option is to create a GitHub issue which I’ve done. Here’s the link if anyone else should mention experiencing similar behaviour:

    https://github.com/francostellari/NppPlugins/issues/73

  • Renumber lines?

    Help wanted · · · – – – · · ·
    3
    0 Votes
    3 Posts
    154 Views
    S

    @PeterJones

    Thank you.

  • You've a lot of reasons to hate Notepad++

    Pinned Boycott Notepad++
    90
    5 Votes
    90 Posts
    146k Views
    Артем МитичкинА

    I hate this editor for his political position. Gone forever.

  • 0 Votes
    6 Posts
    128 Views
    Daniel B. 0D

    Thank you for your explanation! I’m glad I wasn’t alone with this problem. It’s very well written and easy for me to understand. Thank you!

  • 0 Votes
    12 Posts
    767 Views
    PeterJonesP

    @networkproblemsolver said in Style Configurations Reset After Update:

    @PeterJones

    But what if I want (need) to run in “Admin Mode” ??? Is Notepad++ unable to run in “Admin Mode” and still save Style Configurations? That seems silly.

    Security experts would tell you that constantly running any app in admin/root mode is a lot worse than silly.

    And since Notepad++ v8.6.6, there is no reason to run Notepad++ in Admin mode to edit/save UAC-protected files, because Notepad++ can ask for UAC Elevation for the individual save actions . So the only activity that you might still need to run Notepad++ in Admin mode for is when installing a new plugin, and you don’t need to be constantly running in Admin mode for that. That is: you most likely don’t “need” to run in Admin mode anymore.

    That said, the reason why Notepad++ often has problem with Admin mode and settings is because of cross-contamination of permissions: running an app in Elevated privileges makes WINDOWS treat that app differently. It may be that with your current setup, the Elevated/Admin-mode won’t allow writing to AppData (since that’s a per-user, and for some system configurations, WINDOWS won’t allow admin to write to %AppData%). Or it might be that because you often ran N++ as Admin that the AppData-based settings might have been created/saved with Admin-privileges, so when you run N++ as normal user it cannot read or save the settings. Without being able to look at your file permissions for you, I cannot say exactly what caused it – you would need to verify where Notepad++ is trying to do the settings, and look at the directory and the stylers.xml in that directory, looking at Windows’ SECURITY settings for both; and then maybe try running experiments to see whether changing a setting/style-configurator in Notepad++ is saved when you exit Notepad++ when running normally and/or when running as Admin.

  • Vertical White Bar Appeared

    Help wanted · · · – – – · · ·
    4
    0 Votes
    4 Posts
    133 Views
    Terry RT

    @networkproblemsolver
    Your images show you seem to be running NPP as administrator. That could be the source of your problem.

    Read this thread, there might be the solution.

    Terry

  • 2 Votes
    3 Posts
    5k Views
    ThosRTannerT

    Updated linter++ to v1.0.2

    This has mostly been concerned with changes to the dockable window with the results:

    You can click on a column header to sort by that column You can drag the column headers to reorder the columns You can configure the font used for display

    There’ve also been a few other minor improvements/fixes - see the Changes.md file

    Downloadable from https://github.com/ThosRTanner/notepad-pp-linter/releases if you can’t wait for the plugin list to be updated.

  • 0 Votes
    10 Posts
    330 Views
    Ryan CartmillR

    @xomx After restarting our Samba instance, the issues appear to be resolved. Apologies for the false alarm, but thank you for the responses!

  • 0 Votes
    2 Posts
    122 Views
    PeterJonesP

    @Wolfgang-Grafeneder ,

    Read Find Text Copied From Excel Cell and the issue(s) it links to, as there was an entire recent discussion on this.