• Open file safely in Notepad++

    2
    0 Votes
    2 Posts
    533 Views
    PeterJonesP

    @Bob-Haikou said in Open file safely in Notepad++:

    Notepad++ tried to execute the code in the text file!

    I am highly confident that it was PowerShell or START, not Notepad++, that tried to execute that text – Notepad++ does not “run” it’s command-line arguments.

    You might want to read up on the documentation of START, and make sure that it’s PowerShell compatible (since it’s really a cmd.exe command)

    You can see that it’s not Notepad++'s fault by not using the START prefix, and by running "C:\Program Files\Notepad++\notepad++.exe" "G:\codesamples.txt" from the cmd.exe prompt to run the application from the command line: it properly reads the file in Notepad++, it doesn’t try to run codesamples.txt as an executable.

    My experiments show that start-process "C:\Program Files\Notepad++\notepad++.exe" "G:\codesamples.txt" should work for you from the PowerShell command line. But that’s really a PowerShell question, not a Notepad++ question, so any further followup should be in a forum that answers PowerShell questions (ie, not here in a Notepad++ forum)

  • How to Backup notepad++ files from mac to external drive?

    Locked
    8
    -1 Votes
    8 Posts
    792 Views
    PeterJonesP

    This topic is obviously just a trap for repetitive copy/paste replies or generated content, and has nothing to do with Notepad++ itself, so has been locked to prevent further meaningless replies.

  • Disable reopening large files

    3
    0 Votes
    3 Posts
    406 Views
    Mark OlsonM

    FWIW it sounds like regular Notepad++ contributor xomx has indicated interest in the more general problem of lazy loading of files in Notepad++. If they succeeded in implementing lazy loading, such a setting would (probably) be unnecessary.

  • <NeedToBeUpdated> is always "yes"

    17
    2 Votes
    17 Posts
    2k Views
    T

    @donho Thanks a lot. This is much appreciated.

    You’ve broken one other feature along the way: the guide says:

    if you just paste https://notepad-plus-plus.org/update/getDownloadUrl.php into your browser’s address bar, you will only get a generic answer that currently contains this http download url:
    http://notepad-plus-plus.org/repository/7.x/7.5.9/npp.7.5.9.Installer.exe

    This is no longer the case. Omitting the version parameter just returns this:

    <GUP><NeedToBeUpdated>no</NeedToBeUpdated></GUP>

    instead of the latest version number and download link. Tbh it doesn’t affect me, but maybe someone else cares?

  • Displaying error in codes

    3
    0 Votes
    3 Posts
    260 Views
    rdipardoR

    P.S.

    Make sure to paste the following into your issue comment:

    `Accessor::ColourTo` is called on the high order byte of `】` as if it were a local variable: https://github.com/ScintillaOrg/lexilla/blob/4c5e7a0ef5410ed26bf99203cf27227413865f4d/lexers/LexBatch.cxx#L485-L497 The offset calculation should take multi-byte character boundaries into account.
  • Are there any plans to make Notepad++ a restartable Windows 10 application?

    10
    0 Votes
    10 Posts
    1k Views
    xomxX

    @jcrmatos

    Implemented, it will be in the next N++ (v8.5.8).

    Or there are the commit binaries for a preview (click there on an appropriate build - most probably MSC-x64-Release and look for Artifacts).

  • Shift + alt to paste issue

    5
    0 Votes
    5 Posts
    3k Views
    PeterJonesP

    @bwisely ,

    I cannot replicate your results when using the exact sequence that I showed, or using a sequence that looks like what you did – I always get behavior like from my screenshot.

    Maybe you have a plugin that’s interfering (you haven’t shared your Debug Info – if you had, I could have looked through the names of the plugins and seen if maybe one of them was a likely culprit). Or maybe you’ve got something weird in your Settings > Preferences > Editing or one of the other settings pages (though I haven’t yet found anything that prevents column-paste from working).

    However, if I change the sequence, I can replicate your results: If I do the column selection, then paste it somewhere else (in an empty tab, for example), then copy it again not in column-selection mode, then when I paste it in the original location, it pastes it multiple times like you showed, rather than doing a column-paste like I showed. (So again, maybe you have a plugin that is changing a column-selection copy into a normal-mode copy, so it’s stored in the clipboard as a normal-selection instead of a column-selection; I don’t know of any plugins that do that, but I know BetterMultiSelection does some fancy stuff with the multi-select-vs-column-select, so it might be interfering in this case… but that’s just a guess; I don’t use that plugin, and haven’t tried)

    -----
    update: Nope, I installed BetterMultiSelection into a portable 857, and I still couldn’t get it to mess up; as long as I haven’t done anything else with the clipboard since I did the column-copy, the paste correctly works as a column-paste for me, no matter what I do. Sorry, I am running out of ideas as to why it’s not working for you.

  • Change Value in specific column...

    4
    0 Votes
    4 Posts
    3k Views
    CoisesC

    @Mike-NYC said in Change Value in specific column...:

    I have a lot of csv files

    I missed that part.

    At present, Columns++ only works on one open file at a time. So it probably won’t help you.

    The method @PeterJones described in the Update section of his post is, at the moment, the only method of which I’m aware that could be applied to many files at once (using Search | Find in Files…).

  • New Python script to add up huge numbers

    3
    1 Votes
    3 Posts
    345 Views
    AlloyCoderA

    @PeterJones OK, I’ve added the ability to digest scientific notation, and increased the default accuracy to 200 digits.
    Version 1.08 is up on github: https://github.com/AlloyCoder/AddUpSelected

  • Click link and paste new link

    11
    0 Votes
    11 Posts
    5k Views
    Alan KilbornA

    This behavior is easy to write a script for, and as scripts can be configured to run from the editor’s right-click menu, a script solution seems to “check all the boxes”.

    Here’s UrlLinkSelectOrPasteover.py:

    # -*- coding: utf-8 -*- from __future__ import print_function ######################################### # # UrlLinkSelectOrPasteover (ULSOP) # ######################################### # references: # https://community.notepad-plus-plus.org/topic/24893/click-link-and-paste-new-link # https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14114 # for newbie info on PythonScripts, see https://community.notepad-plus-plus.org/topic/23039/faq-desk-how-to-install-and-run-a-script-in-pythonscript #------------------------------------------------------------------------------- from Npp import * #------------------------------------------------------------------------------- class ULSOP(object): def __init__(self): URL_INDIC = 8 curr_pos = editor.getCurrentPos() pasting = False if editor.indicatorValueAt(URL_INDIC, curr_pos): editor.setSel(editor.indicatorStart(URL_INDIC, curr_pos), editor.indicatorEnd(URL_INDIC, curr_pos)) if pasting: editor.paste() #------------------------------------------------------------------------------- if __name__ == '__main__': ULSOP()

    If you want pasting behavior rather than selection behavior, change pasting = False to pasting = True. If you want both behaviors (in, say, two context menu entries), then you’ll need a second script (virtually a copy of the first).

  • Request Feature Convert Case snake_case camelCase

    7
    0 Votes
    7 Posts
    1k Views
    Mark OlsonM

    @Fenimoreson-Alvaro
    It sounds like you’re using generative AI to create responses to topics in the forum. That can be a useful utility for developers and anyone working with code. Unfortunately, use of generative AI to respond to posts on this forum is banned.

    If that’s not what’s happening, and your post just happened to have the style of a ChatGPT response, then I apologize.

  • Double View Save and Reload Conflict

    2
    0 Votes
    2 Posts
    281 Views
    Alan KilbornA

    @Fern99

    If you have a look at the 8.5.7 release notes HERE, you’ll see number 7:

    Fix cloned document disassociated issue after Notepad++ being relaunched

    It sounds to me from your problem description that you should try this new (week-old) release.

  • 0 Votes
    9 Posts
    797 Views
    mkupperM

    It looks like the icon within the tabs and the font used got larger between v8.5.3 and v8.5.4

    The 8.5.4 release notes are silent on this unless it’s item 14 “Several GUI Enhancements”
    https://notepad-plus-plus.org/downloads/v8.5.4/

  • Sort search results window.

    1
    0 Votes
    1 Posts
    157 Views
    No one has replied
  • New Forum Interface. I hate it.

    21
    1 Votes
    21 Posts
    2k Views
    PeterJonesP

    @mkupper said in New Forum Interface. I hate it.:

    Can the normal light background default skin be put back?

    I think I fixed it.

  • CVEs in Notepad++ V8.5.6 and Prior

    2
    -3 Votes
    2 Posts
    579 Views
    PeterJonesP

    @Murray-Sobol-1 said in CVEs in Notepad++ V8.5.6 and Prior:

    The following CVEs have been reported in Notepad++ V8.5.6 and Prior

    Already addressed:
    https://community.notepad-plus-plus.org/topic/24889/notepad-v8-5-7-release-candidate

    For all of the above CVEs, As of time of publication, no known patches are available in existing versions of Notepad++.

    Notepad++ does not do “patch” releases. It just releases new versions. And the new version implementing the fixes is available in release-candidate, and will be switched to full release soon,

  • 0 Votes
    4 Posts
    292 Views
    PeterJonesP

    I also saw that I could remove the useless “groups” button, since we don’t use the “groups” feature of the forum software. So that’s removed extra clutter now.

  • Using Find All results

    15
    0 Votes
    15 Posts
    1k Views
    PeterJonesP

    @Larry-Schwartz said in Using Find All results:

    licking on result’s 1 and 2 in the resultant “Line 1” or “Line 2” highlighted the string TV in BOTH lines in the file.

    Ah, you are confusing the search’s selection and active line with the “smart highlighting” feature of Notepad++.

    Go into the editor; double-click on tv. If you are using default colors, you will see 3 colors involved:
    e2ea2811-edd8-4dc4-857b-342f8ce45cf3-image.png

    Line 1 has the “Current Line Background” (the bluish-gray) Line 1’s tv is highlighted with both the “Selected Text Colour” background (darker gray) and the “Smart Highlighting” (bright green) background, which combine to make a darker greeen background Line 2’s tv is highlighted with just the “Smart Highlighting” (bright green) background

    When you use Find All’s Search Results window, double-clicking on the result line will (1) set that line active (give it “Current Line Background”) and 2) select the match (tv) with the active editor selection (“Selected Text Colour”), and 3) if you have Smart Highlighting enabled (it is by default; see Settings > Preferences > Highlighting > Smart Highlighting)

    It is both selecting the active match and doing the Smart Highlighting. If you don’t like Smart Highlighting, turn it off – if you do, then it will look more like this new screenshot, and will no longer have the green Smart Highlighting, so you can better tell which match is being selected:
    0f7e4e70-26e6-4194-8bb8-b4f34db50aed-image.png

    Please note that by default, Smart Highlight only works on complete words… so if you had searched for ntr from the entry, or done a regular expression search [nt] tv (which matches n tv from verizon tv and t tv from comcast tv), then it would not have shown the Smart Highlighting (unless you, like I, un-checked the ☐ Match whole word only setting, in which case it would show smart highlighting for just the ones that are exact matches with the active selection, regardless of whether the regular expression would have selected more)
    b120d613-1932-4fce-b8df-e0fc8daf0e7f-image.png

    References

    User Manual: Style Configurator > Global Styles: describes the “Current Line Background”, “Selected Text Colour”, and “Smart Highlighting” style definitions User Manual: Settings > Preferences > Highlighting: describes Smart Highlighting
  • Bookmark for saved files

    14
    1 Votes
    14 Posts
    2k Views
    Karlo-FK

    Wait…
    What about Project Panels?
    https://npp-user-manual.org/docs/session/#project-panels

    The Project Panels are similar to the Folder as Workspace panel, but allow you to organize the tree view to your liking, rather than being forced to follow the Windows filesystem hiearchy.

    Double-clicking on a file from the tree-view will open it as a new tab in the Notepad++ editor (or will activate that tab if it’s already open). Closing the tab for a file from the Project will not remove it from the Project panel, so it’s easy to re-open that file.

    I have a list of often used files sorted by folders (according to my needs, not by Windows filesystem hierarchy) and it works fine for me. And works fine with spaces in file names.

  • Автоматический перенос строки

    29
    0 Votes
    29 Posts
    9k Views
    PeterJonesP

    @Vio-Ru ,

    Yes, your wider screenshot shows that you started a comment before the <Macro name="aa" and never closed it. Close your comment, and save and restart, and things should work.

    edit: sorry, I was typing my reply when you posted your “I found my mistake” message