• Function List not working

    6
    0 Votes
    6 Posts
    786 Views
    artie-finkelsteinA

    @PeterJones - Thank you for the correction and historical links. I pretty much ignored UDLs and FunctionList until @dinkumoil published UDL and FunctionList XMLs for NppExec, and I have not pursued the intricacies much further.

    It looks like I can also use the updated manual for timeline resolution. Cool. I’ll go RTFM some more now.

  • How to restore previous Ctrl+W behavior?

    2
    0 Votes
    2 Posts
    348 Views
    PeterJonesP

    @Artem-Romanko ,

    Can you tell us what version “several versions ago” was?

    I just tried v8.1.1 (most recent), v7.9.5 (3 versions ago), and v7.9 (5 versions before that) – and all of those have the behavior you describe: if I had a session with several files open (say 5), and had last activated tab3 then tab5, then closed with tab5 active; if I reopen Notepad++ with that session (so that tab5 is open), if I Ctrl+W, it switches back to tab1.

    So I cannot replicate the behavior you seem to be expecting from an old copy; and without that, I cannot look into the “why” of the change (and I doubt there will be a workaround to activation order from one session to the next … but I have been proven wrong on such things before).

  • 0 Votes
    2 Posts
    260 Views
    PeterJonesP

    @athenatheta

    A way to jump between marks would do as well.

    If in the Mark dialog you toggle on the ☑ Bookmark Line checkmark then do the Marking of the text, then it will Bookmark as well as Mark, and then you can use the Search > Bookmark menu entries, including the Next Bookmark and Previous Bookmark to allow you to jump between bookmarks (F2 and Shift+F2 are the default keyboard shortcuts for those, though Shortcut Mapper can change those shortcuts).

  • Multi-level data sorting

    5
    0 Votes
    5 Posts
    3k Views
    guy038G

    Hello, @elise-baribault,

    Could you provide us with a sample of your Excel table ? I mean : a block of 15-30 rows to get a general idea of your data ?

    Please, copy your text as raw text. When replying :

    Click on the option, mentioned in the image below

    20f5d2f4-8071-4233-b6f6-c661e2393159-image.png

    Delete the single line code_text

    Paste your data

    Thanks for your cooperation ! See you later,

    Best Regards,

    guy038

  • Auto-completion of brackets only works when text is isolated?

    2
    1 Votes
    2 Posts
    285 Views
    guy038G

    Hello, @marianogedisman and All,

    I did some tests, regarding the auto-completion feature and here are the present main rules of this mechanism :

    If the box " or ' is ticked then, when pressing the " or ' key, the auto-completion occurs :

    If the character before the caret belongs to class [\t\r\n\x20] and the character after the caret belongs to class [\t\r\n\x20)\\]}]

    If the character before the caret belongs to class [(\\[{] and the character after the caret belongs to class [\t\r\n\x20]

    If the caret is within the () or [] or {} string

    If the box { or [ or { is ticked then, when pressing the ( or [ or { key, the auto-completion occurs :

    Whatever the character before the caret

    If the character after the caret belongs to the class [\t\r\n\x20)\\]}]

    If a matched pair is ticked, then the auto-completion occurs :

    Whatever the character before the caret

    If the character after the caret belongs to the class [\t\r\n\x20]

    Note that the opening and closing user boundaries, of any matched pair, must belong to the range [\x1E-\x7F] !

    Now, it seems reasonable to allow the auto-completion feature regardless of the characters before and after the caret position ! If the present behavior bothers you, I advice you to create a new issue, following these recommendations

    Best Regards

    guy038

  • html comments preventing code from executing

    3
    0 Votes
    3 Posts
    220 Views
    Ritesh kumarR

    Harry
    riteshdotnetinstitue@gmial.com
    You have added the value into your stuff, Awesome work! I am just reaching out because I recently published a content that might be a good fit. Either way keep up the good work.

  • Code folding and UDL

    3
    0 Votes
    3 Posts
    733 Views
    Isaac Brown 0I

    Did you look into the grouping operator (( ))? There is a UDL example where they “Alpha Bravo” then “((Charlie1 Charlie2)) Delta” for comment syntax middle and it worked as you described for defining what lines are comments and what characters allowed continuation of the comment onto a new line. Perhas simply using the grouping operator on one of the end conditions will limit matching?

  • Emtpy boxes showing around document

    8
    0 Votes
    8 Posts
    335 Views
    Terry RT

    @Andy-Merrill said in Emtpy boxes showing around document:

    My Nvidea drivers for the video card have not been updated in at least 2 weeks.

    Has the PC been restarted lately. If you read the entire other post, the OP stated his issue resolved itself after a restart. He concluded the OS had been running for too long and might have been stressed (not exactly IT talk I know). But I think we all realise that Windows is like a 4WD on tarmac, eventually the drivetrain gets too wound up and getting off road for a bit solves that (rebooting).

    Terry

  • change session backup path without changing cloud sync

    3
    0 Votes
    3 Posts
    2k Views
    PeterJonesP

    @Jürgen-Kortt ,

    BTW: this seems to be similar to issue#10086 from “WhiteChairFromIkea”, who asks that the developers make the periodic-backup unsaved-files backup separately configurable (by making the Backup > .Session Snapshot and Periodic Backup > Backup path: editable instead of read-only)

    I added my 2¢ to that issue, including your use-case and a similar use-case where `%AppData% is on a small c:-drive SSD but the user wants large periodic-backup files to go on the larger d:-drive HDD which has more room for 100Mb files.

  • Open two files side by side from command line

    7
    0 Votes
    7 Posts
    1k Views
    EkopalypseE

    @MMMZZZZ said in Open two files side by side from command line:

    ü

    not 100% sure what the issue is. The generation of the session file or opening the sessions with npp?

    What I did is the following:

    a) created a file D:\über.txt
    b) created a file D:\temp\ökonmische betrachtung\ärger.txt
    c) moved the second file to the second view
    d) used File->SaveSession and saved it as D:\test_session.xml
    e) open a cmd and started D:\Tests\npp\810\x64\notepad++.exe -openSession D:\test_session.xml

    resulted in

    613d2d9c-ef38-44cc-b59f-2f38573a23e7-image.png

    To reuse this mechanism, I would modify the session.xml file and replace the two filename tags with something unique like %%FILE1%% and %%FILE2%% and then have my script replace them with the real name of the file, making sure they are xml encoded.
    As a template, of course. The script would create the real session file.

  • Styles not working anymore

    3
    0 Votes
    3 Posts
    853 Views
    Alan KilbornA

    In my reply, I made a presumption. That was, that OP is affected by recent changes in how the feature works.

    @christian-faisstnauer said:

    But if I select several lines and try to do the same, it does not work anymore; I can’t mark the text.

    But upon rereading, I’m not sure now that this is the OP’s problem.

    But…without OP providing more details than “it does not work”, I don’t think this problem can be solved.

    So, @christian-faisstnauer , can you show some data and be more explicit about the problem?

  • I need to add some code at the end of some lines :

    4
    0 Votes
    4 Posts
    208 Views
    Alan KilbornA

    @oumal-bana

    You still aren’t being very clear.

    If you want to transform this:

    <p><strong>Loremipsum1 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. <p><strong>Loremipsum2 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

    into this:

    <p><strong>Loremipsum1</strong><br /> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. <p><strong>Loremipsum2</strong><br /> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

    You could search for (?-s)^<p><strong>.* and replace with ${0}</strong><br />

  • Dark Mode title bar still white in Windows 11

    8
    0 Votes
    8 Posts
    7k Views
    mere-humanM

    @MilkManEX said in Dark Mode title bar still white in Windows 11:

    Takes the color if you force it, but stays white when not in focus. I assume Notepad++ is, for whatever reason, being treated by Windows the same way.

    Yes, it seems Win32 apps (like Task Manager or Notepad++) are treated differently than latest UWP or similar apps (like Windows Settings window). The latter can also have transparency on the title bar.

  • Restore txt files in the Doc Switcher?

    5
    0 Votes
    5 Posts
    313 Views
    PeterJonesP

    @Cletos said in Restore txt files in the Doc Switcher?:

    I have those settings:

    The first “Backup path” says unsaved files get snapshots into J:\Programme\Notepad++\backup, until such point as they are saved or closed, at which point the backup goes away.

    The second “Custom Backup Directory” setting means that manually saved files get backed up (with a verbose blah.txt.timestamp.bak into the same folder.

    So the unsaved files respectively their back ups are lost forever. Cannot be restored.

    You might be able to use file recovery software like Recuva or similar, but there is no guarantee that will work for you.

    Saving files, and using external backup software / version control software / cloud storage are your best bet against data loss.

  • Help: N++ crashes when "run as admin"

    9
    0 Votes
    9 Posts
    470 Views
    PeterJonesP

    @L-Smxxx said in Help: N++ crashes when "run as admin":

    Can you kindly explain what is, and how to acquire, “portable version” of N++?

    Sorry, I thought I did explain. I mean, I said, " That is effectively what my advice in the other thread is telling you how to do.". And I linked to the other post. And in that other post, I directed you to https://notepad-plus-plus.org/downloads/ .

    Admittedly, the clues ran dry there, probably because I assumed you could figure out the rest: you would have to pick one of the releases (like “Notepad++ 8.1.1 release”, and once on that page, you would see the various download options, including the section like Download 64-bit x64 which contains a link to “Portable (zip)”, and once you saw that link, you would be able to see how to download the portable version.

    de9002bf-08ba-4d5f-8c0a-fbd1438f57c1-image.png

    After downloading the portable zip file, you would have to unzip it to a known location – for example, into Desktop\npp.8.1.1.portable.x64\ – and then run the portable version from there

    And what is the difference between that, and a “regular” version?

    A regular version comes in a bundled installer, and usually goes into your standard Program Files. A portable version runs from whatever folder you unzip it into. The other benefit of the portable is that the portable version by default uses the config files from the same folder you unzipped, rather than using your config files in AppData – this allows you to have multiple copies of Notepad++ with different configurations… which is often the point of running the portable edition (and in your case, to see whether you can get Run As Admin to work for a different copy of Notepad++.

  • Help: Safely have several N++ versions on PC; how to access each?

    7
    0 Votes
    7 Posts
    899 Views
    L SmxxxL

    Thank you very much, Peter! — Appreciate your patient(!) assistance!

  • Bug: "Rename" Opens to Default Directory, Can End Up Moving File

    5
    0 Votes
    5 Posts
    265 Views
    mere-humanM

    By the way, here is the related issue on GitHub:
    https://github.com/notepad-plus-plus/notepad-plus-plus/issues/10095

  • Dashes not supported in link names

    4
    0 Votes
    4 Posts
    180 Views
    tho-gruT

    @PeterJones thanks for finding the related issue.

  • 4 Votes
    37 Posts
    3k Views
    mario ahnerM

    I’m just glad, it is fixed. :-)

    Next time I will cry louder and earlier.

  • How to do a simple sort of lines in a text file?

    2
    0 Votes
    2 Posts
    154 Views
    PeterJonesP

    @bob_diebel ,

    Edit menu > Line Operations > Sort…

    https://npp-user-manual.org/docs/editing/#edit-menu