• Goto Matching Brace for HTML/XML

    18
    2 Votes
    18 Posts
    2k Views
    Michael VincentM

    @rdipardo said in Goto Matching Brace for HTML/XML:

    After sending SCI_ADDSELECTION, if you press the up or down arrow key (not left or right), both carets will remain until you press some other key or cancel the additional selection.

    I’ve tried it out and it behaves exactly how I anticipated. This is great - bravo!

    Cheers.

  • Cannot paste into replace field

    15
    0 Votes
    15 Posts
    2k Views
    Alan KilbornA

    @Richard-Kopeikin

    Multiline search and replace was a big issue when this thread was originally created; now it isn’t such a large problem, because of the advent of the “swap” widget/control:

    74b18883-a9ac-4243-b548-5f9bbbcb6c3a-image.png

    It’s ALWAYS been possible to get multiline data into Find what if you select it and press Ctrl+h (or Ctrl+f), so if you need multiline data in Replace with you can select it (the replacement text) first, do Ctrl+h on it, then Copy from Find to Replace, then select your true Find what text and invoke Ctrl+h again.

    Kinda klunky, but it works.

  • edit with notepad++

    2
    0 Votes
    2 Posts
    354 Views
    PeterJonesP

    @theCENK ,

    It’s a known issue since at least v8.5.2. The developers are working on it, but it’s proved more elusive than they hoped.

  • Find and Replace

    8
    0 Votes
    8 Posts
    827 Views
    toto753T

    Thank you all for your responses.

    I also find it more logical, with my experience on computer technologies, to use ${1} rather than \1.

  • How to start a search automatically

    41
    1 Votes
    41 Posts
    6k Views
    Victorel PetrovichV

    @Lycan-Thrope
    You also learn to be a bit more polite.

  • Notepad++ Datein nach Farben sortieren

    3
    0 Votes
    3 Posts
    524 Views
    Simon LS

    Vielen Dank. Das sieht sehr gut aus.

  • Paramètres ne s'enregistrent pas

    3
    0 Votes
    3 Posts
    227 Views
    PeterJonesP

    @Michel-AUBINEAU ,

    Are these settings specific to the application or are they related to the document I’m working on?

    The “Theme” (Settings > Style Configurator > Select Theme) and “icon” settings (Settings > Preferences > General, in the Toolbar section) are remembered in the Notepad++ settings, and are global to Notepad++, not specific to individual files – so all files opened in Notepad++ will use the same theme and icon choices.

    Notepad++ saves your choice when you exit Notepad++ after setting the Theme or Icon, and the next time you run Notepad++ it will use those same Theme and Icon settings.

    If you believe that it is not remembering the Theme and Icon settings correctly when you restart Notepad++, then either you do not have write permission on your configuration files (check permissions on files in %AppData%\Notepad++\ for a normal installation); or you had multiple instances of Notepad++ open, and the last one to save its settings was still using the old Theme or Icon settings so that’s what got saved; or you have multiple copies of Notepad++ installed , and you are changing the settings on one copy of Notepad++ and then are surprised that another copy has different settings (like maybe one in C:\Program Files\Notepad++ which uses %AppData%\Notepad++ for its settings, and another portable copy unzipped in D:\myPortable\Notepad++ which stores its settings in the installation directory).

    addition:

    To verify the last idea: set your theme and icons as you want, and copy the info from ?-menu’s Debug Info and paste into your reply; then exit Notepad++ and restart the application: if the Theme and Icons went back to the original settings, then copy ? > Debug Info again. Paste both versions of Debug Info into your reply, and we can see if we see anything that tells us what’s wrong; otherwise, it will at least confirm which directory you should be looking in for the permissions

    Also, a fourth idea is that you are sometimes running in Administrator mode (the Title bar for Notepad++ will say “Administrator” and the Debug Info will say “Admin Mode: ON”) and sometimes as your normal user. It may be that the Admin Mode version is using a different set of preferences than the normal-user version.

  • New Update Hijacks My Tilde Key?

    12
    0 Votes
    12 Posts
    2k Views
    Victorel PetrovichV

    @Terry-R Ok, thank you for the information.

  • I ACCIDENTALLY DELETED

    2
    0 Votes
    2 Posts
    381 Views
    Terry RT

    @Juliana-Neves said in I ACCIDENTALLY DELETED:

    I had more than 200 notebooks written, how can I recover these notebooks?

    Well, depending on what your backup settings were in Notepad++, if you actually saved those 200+ tabs/files and what remains of the Notepad++ folder structure, you have a slim chance.

    I suggest reading the FAQ post here which outlines some of the possible locations of files should you have any chance.

    Good luck
    Terry

  • Automatic clipboard paste

    9
    0 Votes
    9 Posts
    7k Views
  • sorting in folder as workspace

    14
    0 Votes
    14 Posts
    3k Views
    PeterJonesP

    @Alan-Kilborn said in sorting in folder as workspace:

    issue should be created to recommend that Notepad++ do the sorting and unify behavior.

    Indeed. And make it like the Document List, where it will either present it unsorted (the default order based on the filesystem) or sorted ascending or sorted descending. (Maybe even with the extra Ext column that Document List optionally provides, so that a user could sort by extension within a given subfolder in the FaW view.)

  • Wanting to extract specific info from several text documents

    9
    0 Votes
    9 Posts
    2k Views
    matto.whM

    @PeterJones
    Fantastic! That is exactly what I have been wanting! Thank you very much!

  • No Save-dialog when exiting

    5
    0 Votes
    5 Posts
    271 Views
    rogerbratsethR

    @mkupper Thanks for experimenting. I have done the same here at my end, as I did yesterday, and I’m not able to reproduce what I experienced yesterday. I suspect it can be related to us using virtual desktops at the office, and the user-folder needs to be copied from somewhere everytime you create a new session. The backup might have been overwritten from central storage when syncing?

  • I found the place in the code where space is inserted in the comments

    11
    0 Votes
    11 Posts
    680 Views
    ScienceDS

    @Alan-Kilborn said in I found the place in the code where space is inserted in the comments:

    Or, you could script some behavior (which is less effort than a plugin)

    Well, I got fed up by the temporal and quick solutions and decided I will go full on onto this problem. It is kind of funny to think that I dumped much larger amount of effort and time into this than anybody in the World would ever do. It took about 6 days of non-stop development to create and polish this plug-in, but, I think, I made the most advanced automatic comment toggler in the world. It was very tricky to make it work right, especially considering that its my first plug-in for Notepad++ and, in fact, any program.

    It’s probably even better than Visual Studio one, because it still uses 2 buttons, while mine just 1 (and I also fixed some Visual Studio bugs too, so its better).

    Github: https://github.com/ScienceDiscoverer/CommentToggler

    The best demonstration is to show this most advanced feature of it:

    multi_select_block_line_single_combo.gif

    I hope this will have the people with similar commenting problem in the future…

  • Notepad++ doesn't delete text at the end of a document

    3
    0 Votes
    3 Posts
    385 Views
    Mark OlsonM

    @Richard-Engelschall
    This sounds like a plugin might be responsible, but nobody can be more specific than that unless you give more information about your installation. Go to ?->Debug Info... from the main menu, copy your debug info, and paste it here.

    While you’re at it, you might test if there are circumstances where you don’t have this problem; the more specific the problem, the easier troubleshooting is.

  • Missing from recent updates?

    4
    0 Votes
    4 Posts
    297 Views
    Tom StephensT

    @Alan-Kilborn Thank-you! Appreciate the response. Now if I can get the encoding correct, but that is for another post.

  • User Defined Language doesn't exclude sign in front of numbers

    2
    0 Votes
    2 Posts
    224 Views
    PeterJonesP

    @Michael-Goldsworth ,

    UDL has its limitations. + or - prefixing a number with no intervening space will always be treated as part of the number.

    If you add the EnhanceAnyLexer plugin using Plugins Admin, you can use that plugin to have a regular expression apply foreground coloring:

    0xFFFF00 = [+-](?=\d) ; for UDL, need to remove 3 from excluded styles if you want ; this new color to override the number styling excluded_styles = 1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,20,21,22,23

    I used cyan in my example (0xGGBBRR=0xFFFF00) to make it obvious:

    with EnhanceAnyLexer:
    9b1912d0-f936-49fa-90b3-0f5ef693657c-image.png

    without EnhanceAnyLexer (or with the definition commented out):
    d7d7e7a5-634b-492c-843a-dabdcc130da8-image.png

    The 24 style numbers are defined in the Notepad++ UDL source code (a similar link is present in the default EnhanceAnyLexerConfig.ini, if anyone reads the comments there…)

  • Help with search and replace code

    11
    0 Votes
    11 Posts
    514 Views
    guy038G

    Hello, @jessica-bruno, @mkupper and All,

    @mkupper, you’re right but these negative look-arounds are not intended to be used on their own but rather with a part outside the look-around(s !

    Refer to the two tables below.

    Copy the text of the first column in a new tab

    Use the Mark dialog to get the text matched by each of these 9 regexes, in a red/orange color ( tick the Purge for each search option ) !

    The results should be as below :

    •---------------------•------------------------•----------------------•----------------------•-----------------------•-----------------------• | | 12345 | 12345(?=aaaaa) | 12345(?!bbbbb) | (?<=ccccc)12345 | (?<!ddddd)12345 | •---------------------•------------------------•----------------------•----------------------•-----------------------•-----------------------• | 12345aaaaa | X | x | X | | X | | 12345bbbbb | X | | | | X | | 12345zzzzz | X | | X | | X | | ccccc12345 | X | | X | X | X | | ddddd12345 | X | | X | | | | zzzzz12345 | X | | X | | X | | ccccc12345aaaaa | X | X | X | X | X | | ccccc12345bbbbb | X | | | X | X | | ccccc12345kkkkk | X | | X | X | X | | ddddd12345aaaaa | X | X | X | | | | ddddd12345bbbbb | X | | | | | | ddddd12345zzzzz | X | | X | | | | zzzzz12345aaaaa | X | X | X | | X | | zzzzz12345bbbbb | X | | | | X | | zzzzz12345zzzzz | X | | X | | X | •---------------------•------------------------•----------------------•----------------------•-----------------------•-----------------------• •---------------------•------------------------------•--------------------------------•--------------------------------•--------------------------------• | | (?<=ccccc)12345(?=aaaaa) | (?<=ccccc)12345(?!bbbbb) | (?<!ddddd)12345(?=aaaaa) | (?<!ddddd)12345(?!bbbbb) | •---------------------•------------------------------•--------------------------------•--------------------------------•--------------------------------• | 12345aaaaa | | | X | X | | 12345bbbbb | | | | | | 12345zzzzz | | | | X | | ccccc12345 | | X | | X | | ddddd12345 | | | | | | zzzzz12345 | | | | X | | ccccc12345aaaaa | X | X | X | X | | ccccc12345bbbbb | | | | | | ccccc12345kkkkk | | X | | X | | ddddd12345aaaaa | | | | | | ddddd12345bbbbb | | | | | | ddddd12345zzzzz | | | | | | zzzzz12345aaaaa | | | X | X | | zzzzz12345bbbbb | | | | | | zzzzz12345zzzzz | | | | X | •---------------------•------------------------------•--------------------------------•--------------------------------•--------------------------------•

    Best Regards,

    guy038

  • Tiny fonts problems, menues & settings

    5
    0 Votes
    5 Posts
    1k Views
    CoisesC

    @Sofia-Engvall said in Tiny fonts problems, menues & settings:

    I have 1080 monitors so I don’t have scaling activated normally but I did activate it for this test. That’s what I meant with “sized up my windows font” for this screenshot. All other text in all other programs gets too big then and the settings text is not affected anyway.
    […]
    I know other application have these problems too. My 15 yo used mcreator to make minecraft mods. It has the same problem. All other programs I have installed have the right proportions.

    Not a high-DPI problem then. I wish I had any other guesses, but I can’t think of what it would be. Since it does happen in at least one other program, though, and most of us have never seen it, there must be something uncommon in these programs that interacts with something unusual about your system.

    I don’t mean to complain. Just to know if this problem is being looked into. If not I’ll probably give up and use another tool <3 Or make my own since I only need the functionality of notepad but with dark mode.

    Up to you, of course, but if you have the skill to make your own — and since you have the problem on your system, so you can readily reproduce the problem — perhaps you would consider looking at the code on Github and trying to find the fix? That would solve it for you and (assuming the developer accepts your pull request) others as well.

    I’m sorry I have no easier ideas, though perhaps someone else will.

  • Add line of code in entire project

    8
    0 Votes
    8 Posts
    1k Views
    Alan KilbornA

    @wonkawilly

    When you make such a post, you should also add that “this really isn’t a topic for this site (this site is only for Notepad++ discussion); to pursue these ideas you should find a more appropriate place”.