• Notepad++ lags for a second

    8
    0 Votes
    8 Posts
    1k Views
    PeterJonesP

    @Lycan-Thrope said in Notepad++ lags for a second:

    This is the response from chatgpt for just the first few lines of the question above of the OP:

    Thanks for the confirmation. Situation has been resolved (as you can tell from the missing post)

    Sorry about the junk.

  • add "X" "Y" "Z" before coordinates

    2
    0 Votes
    2 Posts
    235 Views
    Michael VincentM

    @Karel-Plíva said in add "X" "Y" "Z" before coordinates:

    -19.560 20.000 0.905

    Find what: ^(-?\d+.\d+)\s(\d+.\d+)\s(\d+.\d+)
    Replace with: X\1 Y\2 Z\3
    Regular expression

    Cheers.

  • all of the 8.6.xx versions have a trojan on them

    3
    -1 Votes
    3 Posts
    508 Views
    Jumo MumoJ

    Tell us the name of the antivirus/anti-malware product you’re using so we can report it as a false positive.

    You can also upload your notepad++.exe to virustotal and paste the result link here.

  • Poll: Find in Files Hits Position

    12
    3 Votes
    12 Posts
    2k Views
    Jumo MumoJ

    A is 1000% better! As the original bug whisperer, I hereby invoke my “First Reporter Privilege” and decree that my vote should count as 10! 🎉✨

  • spam in github

    5
    1 Votes
    5 Posts
    359 Views
    donhoD

    Sorry for the problem caused by the political edition, again.

  • Getting "Invalid Regular Expression" for an extremely simple expression

    51
    0 Votes
    51 Posts
    11k Views
    CoisesC

    @guy038 said in Getting "Invalid Regular Expression" for an extremely simple expression:

    At this point, I tried to select all the zones around these 11 matches in a small new file, that I named Matches.txt. Then, using the Mark dialog with (?:[^,]*,){13}[\u\l], against this small file, it does return 10 matches ( not 11 as explained in the next post ! )

    However, it is distressing to note that the equivalent regex (?:.*?,){13}[\u\l] still fails against this tiny Matches.txt file, of only 16,138 bytes :-((

    Unfortunately, it’s quite certain that cases, like that one, may arise when using most of the available regex engines !

    There are two ways an implementation can look at a regex:

    A regex is a definition of matching character strings. A regex is a procedure for matching character strings.

    From the first perspective, your two expressions are equivalent: they specify the same strings as matches. From the second perspective, they are not: they specify different procedures for finding strings that match.

    No one has found a way to implement back references using method 1. Once your regular expression syntax includes the ability to use back references, you are stuck with the procedural interpretation.

    There are other features of PERL-compatible regular expressions that present problems, but back references are the killer.

    I’m speculating here, but I think once you include any back reference in an expression, it breaks the ability to process any part of the expression that occurs before the back reference as a definition rather than a procedure. (I’m not certain of that. I have no doubt someone does know the answer to that… but that someone isn’t me.)

    So I think you’ll find all those more efficient regular expression engines implement a severely restricted syntax for regular expressions which omits features none of us would like to do without (particularly, back references).

    What I’ve also speculated is that perhaps a regular expression engine could include two engines: one which processes using the ”definition” approach for expressions to which it is applicable, and one which uses the “procedural” approach for the remaining expressions. I don’t know if any do that now.

  • Lost my R style settings with 8.6.7 update.

    6
    0 Votes
    6 Posts
    993 Views
    PeterJonesP

    @Mark-Johnson said in Lost my R style settings with 8.6.7 update.:

    Select Theme: DarkModeDefault

    Then saving stylers.xml will not be enough for you. As I said, each theme stores its style-configurator settings separately. If you want to save customizations to DarkModeDefault, then you would have to backup %AppData%\Notepad++\themes\DarkModeDefault.xml (or, for other users who aren’t using AppData, in the appropriate Config File Location, as linked above)

  • Use of Mathematical equations between two highlighted amounts.

    3
    0 Votes
    3 Posts
    228 Views
    Alan KilbornA

    As a few lines of PythonScript, it could be a simple as:

    num1 = int(editor.getTextRange(editor.getSelectionNStart(0), editor.getSelectionNEnd(0)).strip()) num2 = int(editor.getTextRange(editor.getSelectionNStart(1), editor.getSelectionNEnd(1)).strip()) print(num1 - num2)

    But of course there are always concerns about error checking (what if there aren’t two selections…what if selected text isn’t numeric…etc) and then also is integer math sufficient, or is floating point wanted…

  • Absolute text editor newbie with a question

    3
    0 Votes
    3 Posts
    459 Views
    Kevin KorotevK

    @Coises
    I can’t Thank-You enough for that “hold my hand” response. It kind of worked the first time. I made an alteration based on your descriptions and it worked perfectly the second time.
    Now I fine tune!
    Wow, I opened a can of worms with this project!
    Thanks so much,
    Kevin Korotev

  • Unable to change font size in dark mode

    2
    0 Votes
    2 Posts
    249 Views
    PeterJonesP

    @Arthur-Schwarez ,

    Settings > Style Configurator > Language: Global Styles > Style: Default Style > Font Style > Font Size does change the font size:

    before after 5315cda3-ac6e-43ab-9d32-868069c62d85-image.png 2977b621-28aa-455c-9876-9dc19f5952a6-image.png

    Since your breadcrumb trail was missing the Style: column entry, I have to assume you were trying to change the Style: Global override without having the checkbox marked; but don’t ever change Global Override (<jediMindTrick>This is not the setting you are looking for</jediMindTrick>). As I showed, it’s the Style: Default Style that you want to change in order to get it to be properly inherited throughout your theme.

    See the User Manual’s Global Styles section for more on the difference between Style: Global override and Style: Default Style

  • See if notepad++ meets some of my needs

    7
    0 Votes
    7 Posts
    923 Views
    wonkawillyW

    @Alan-Kilborn said in See if notepad++ meets some of my needs:

    @wonkawilly
    probably not worth discussing further…

    I also agree

  • Unnecessary Pop-Up after manual file reload.

    8
    0 Votes
    8 Posts
    1k Views
    Alan KilbornA

    @mkupper

    Sure…but that’s why I said “reasonably”.
    It’s certainly easy to just talk about it and not try to implement it.

  • How can I migrate/backup my Notepad++ in its entirety?

    3
    0 Votes
    3 Posts
    2k Views
    R

    @mkupper
    Thank you. The solution I found for me was basically installing identical ver. of Notepad++ on Computer 1 and Computer 2.
    Then regularly uploading all my .txt files that are opened in Notepad++ to a cloud FTP.
    And also uploading session.xml from %appdata%/Notepad++.
    Before using Notepad++ on my Computer 2, I would just use a simple .bat file to download all those .txt files and .xml

  • Template creation

    3
    0 Votes
    3 Posts
    511 Views
    Alan KilbornA

    Let’s see what OP says about it, but I’d assume that a “template” means: When you create a new document (e.g., Ctrl+n), it doesn’t appear as an empty document, but with some boilerplate text of your choosing.

  • Mach 3 not opening the notepad corectly

    3
    0 Votes
    3 Posts
    375 Views
    mkupperM

    @sal_gomez91 - It looks like you are not providing the full path to the file when you try to open it.

    In your first photo the path looks like 0.0.1.214\cnc$\PROGRAMS - MASTER\Mintech 4 - Engraver\01 - In Process\CHAIN - HOTCH POTCH_203600 - Engraving Fixture_Setup_1.nc The very left edge is cut off in the photo and so I don’t know what it’s supposed to start with.

    In the second photo it looks you entered the path in the second photo as MASTER\MASTER\Mintech. As you did not have the ...0.0.1.214\cnc$\PROGRAMS - prefix Notepad++ took a guess that the file was in C:\Program Files\Notepad++ and showed you the not-found error.

  • How to make cursor larger ?

    9
    0 Votes
    9 Posts
    4k Views
    PeterJonesP

    @julianop said in How to make cursor larger ?:

    @Victorel-Petrovich: I, for one, would very much like the option of a more “significant” cursor
    … : my eyes aren’t what they used to be, and even with a three pixel vertical line and a fast flash it sometimes takes a moment or two to find the cursor.

    Settings > Preferences > Editing 1 > Caret Settings allows up to 3 pixels wide for the “vertical line” version… if that’s not enough on its own, then Settings > Style Configurator > Language: Global Styles > Style: Caret colour and … > Style: Multi-edit carets color allows you to change the color for the caret (for normal or multi-edit mode) to make it even more obvious to your eyes. And if that’s still not enough, the Caret Settings allow Block or Block after options, which make it a full character wide, rather than being limited to 3 pixels.

    I don’t know why it’s called a “caret” in NP++: that’s the name given to the little top hat accessed by shift-6 on the US keyboard

    81bccd47-b0a6-4fd7-817c-43cf44180e06-image.png

    Notepad++ uses this alternate term “caret” to indicate the text insertion point, to disambiguate it from the “cursor” which almost always refers to the “mouse cursor” in modern GUIs when used without a disambiguation prefix. Calling it “caret” is easier than saying “text cursor” throughout the GUI and User Manual, and follows computing terminology that’s been around for decades.

  • Show only lines that contain a given search argument

    9
    0 Votes
    9 Posts
    821 Views
    Petra HandwergP

    @Alan-Kilborn said in Show only lines that contain a given search argument:

    And more of what you maybe didn’t know: If you right-click in the Search results window, the popup menu will have a Copy choice and a Copy Lines choice – Copy will get the “Line nn:” info with the line data, whereas Copy Lines will get ONLY the line data.

    Oh, great tip, thank you! I wasn’t aware that the result section has its own context menu.

    Good to know!

  • Run .bat from Notepad++

    10
    0 Votes
    10 Posts
    8k Views
    Alan KilbornA

    Can I use any of the menus in Notepad++ like Run … just to execute the .bat file. If you ask me to open Run command, then I can just go the back to the desktop to run the file which is more easy.

    If you create a Run menu item for this and then pick a keycombo that will execute this item, how much more easy can it get than to press the chosen keycombo when you want to run it? Certainly this is much easier than mousing over to the desktop and double-clicking something.

  • Notepad++ for Android

    Locked
    18
    0 Votes
    18 Posts
    130k Views
    PeterJonesP

    @Alan-Kilborn ,

    Indeed. This discussion played out all pertinent information years ago. I am locking it, as it seems to be attracting AI-generated recommendations for other software, or attracting posts by people who write essentially the same stuff.

  • Add option to "switch"

    3
    5 Votes
    3 Posts
    260 Views
    Alan KilbornA

    If Rotate to right and Rotate to left were made into commands in the N++ menu system (instead of just things on a popup menu for the view splitter control), then it would already be possible to make a macro that would execute one of them twice, thus providing the requested functionality.

    So maybe an equally good new feature request would be for such new menu command items.