• Trying to remove Line XXXXXX text in new document

    4
    1 Votes
    4 Posts
    32k Views
    Alan KilbornA

    @Mark-Olson

    I don’t know from the OP’s OP that his problem was related to the size of files he works with; I mean, he did hint at working with large files but the problem experienced itself didn’t seem related.

    Anyways, good to know about your plugin…

  • Problems with Math FAQ's Columns++ entry

    9
    0 Votes
    9 Posts
    664 Views
    CoisesC

    I said in Problems with Math FAQ's Columns++ entry:

    Beware of using a capture group like $1 immediately followed by a (?=…) substitution; at present, this does not work as expected. Instead, write the capture group as ${1} to avoid unintended results.

    This is fixed in version 0.7.3-alpha, so there is no further need for this warning.

  • Export settings?

    3
    0 Votes
    3 Posts
    4k Views
    m rM

    I moved contextMenu.xml, shortcuts.xml, langs.xml, stylers.xml, and config.xml to the current installation folder.

    Seems ok. Anything else?

  • Hearts Should Be Shown In Color

    5
    0 Votes
    5 Posts
    368 Views
    Alan KilbornA

    @mkupper

    I was hinting that as the Find what box data is tightly related to data in the editing window of Notepad++, perhaps the Find what box should also be a Scintilla control.

  • CSS comments should be in GREEN

    8
    1 Votes
    8 Posts
    2k Views
    rdipardoR

    @Gulshan-Negi-0 said in CSS comments should be in GREEN:

    Well, in my opinion and knowledge, the comment color of CSS is customizable, which means you can change the color of CSS comments.

    This topic is about inline CSS between <style>...</style> tags in HTML documents. You are talking about standalone style sheets with the *.css extension.

    To demonstrate that you cannot set the style of inline CSS in HTML files, you can try the following:

    Save this markup as index.html: <html> <style type="text/css"> /* comment */ </style> </html> Open index.html in any published version of Notepad++ Go to Settings > Style Configurator Select “Language: CSS” Select “Style: Comment” Change the style and save Observe that nothing happens

    html-with-inline-style-npp.8.5.7-002.png

    Now select CSS from the language menu at Language > C > CSS, and observe that CSS comments are styled as specified in Style Configurator:

    style-sheet-npp.8.5.7-002.png

  • Draconian ShellExecute Error Code 2

    2
    0 Votes
    2 Posts
    300 Views
    PeterJonesP

    @Brad-F said in Draconian ShellExecute Error Code 2:

    And am looking at this within my shortcuts.xml file.
    Could someone tell if it looks right? Does Shift=“no” matter? Otherwise I see nothing.

    The Shift="no" means that the keycode 71 (G) is not shifted. So Ctrl="yes" Alt="yes" Shift="no" Key="71" means Ctrl+Alt+G whereas Ctrl="yes" Alt="yes" Shift="yes" Key="71" would have meant Ctrl+Alt+Shift+G.

    <Command name="Chrome" Ctrl="yes" Alt="yes" Shift="no" Key="71">&quot;C:\Program Files\Google\Chrome\Application\chrome.exe&quot;&quot; $(FULL_CURRENT_PATH)&quot;</Command> <Command name="FF" Ctrl="yes" Alt="yes" Shift="no" Key="70">&quot;C:\Program Files\Mozilla Firefox\firefox.exe&quot;&quot; $(FULL_CURRENT_PATH)&quot;</Command>

    The &quot's seem to be on the wrong side of the space. When running the command, you want the equivalent of "path\chrome.exe" "$(FULL_CURRENT_PATH)" (quote space quote), but you have the equivalent of "path\chrome.exe"" $(FULL_CURRENT_PATH)" (quote quote space) – so there is no space between the executable and the name of the file, and the file’s path is being interpreted as starting with a space. My guess is that if you fix it to the following, it will work:

    <Command name="Chrome" Ctrl="yes" Alt="yes" Shift="no" Key="71">&quot;C:\Program Files\Google\Chrome\Application\chrome.exe&quot; &quot;$(FULL_CURRENT_PATH)&quot;</Command> <Command name="FF" Ctrl="yes" Alt="yes" Shift="no" Key="70">&quot;C:\Program Files\Mozilla Firefox\firefox.exe&quot; &quot;$(FULL_CURRENT_PATH)&quot;</Command>

    Unsolicited Advice #1: the View > View Current File In… menu has existed for years now for running the installed versions of Chrome, Firefox, and Edge (and even the horrendous IE). No need to duplicate the functionality in the Run menu, as long as you are not doing something weird (like installed Firefox/Chrome in non-standard locations, or with command-line options, neither of which you are doing, based on your pasted commands.)

    Unsolicited Advice #2:

    C:\Program Files (x86)\Notepad++

    Why are you using 32-bit Notepad++ on a 64-bit system? There’s virtually no good reason for doing that in 2023. (Any plugin worth having, that I know about, has been transferred to 64bit years ago.) Unless you know why you need 32-bit, you should install the 64-bit Notepad++. (Future versions of Windows OS are unlikely to support 32-bit applications, so you need to transition apps sooner rather than later to make the transition to the updated OS seamless.)

  • Can low reputation users be prevented from necroposting?

    10
    1 Votes
    10 Posts
    699 Views
    Lycan ThropeL

    @PeterJones
    Yeah, I guess it would be kind of difficult to automate that kind of abuse out, being committed by people that have no real skill sets other than to imitate being trained monkeys. :-)

  • Links with spaces in folder name...

    2
    0 Votes
    2 Posts
    365 Views
    PeterJonesP

    @Bob-Haikou ,

    URIs with spaces in them are supposed to be URL-encoded. Try file:///G:/travel%20in%202023/TRIP%20TO%20BLACK%20STOOL.NPS

    See the Wikipedia article on File URI Scheme .

    Notepad++ correctly recognizes the following standards-compliant file-URI as a link:

    file:///c:/program%20files/notepad++/change.log

    d3ddb420-fd3f-4d21-bdd8-817b6575191f-image.png

    Once again, this is actually a URI question, not anything that’s Notepad++ specific.

  • Open file safely in Notepad++

    2
    0 Votes
    2 Posts
    541 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
    813 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
    410 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
    265 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
    350 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
    284 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.