• How to quickly add all the URLs in notepad++ to bookmarks?

    2
    0 Votes
    2 Posts
    160 Views
    Terry RT

    @Bruno-Martinha said in How to quickly add all the URLs in notepad++ to bookmarks?:

    I have more than 500 urls in a notepad

    Firstly, welcome to the NPP forum.

    Unfortunately your question is VERY short on substance. An example of the type of data would be very helpful. Like are the URLs each on a line, or mixed in with other text. To insert example data it is preferable to use the </> option just above the window you type in. This will then contain the data within a black box and the characters within will not be affected by the interpreter you are typing in.

    NPP can “bookmark” a line containing specific text. Then you could use the bookmark feature to copy (or cut) those lines and insert into an empty file to continue work on them.

    So if you can provide more information then someone is sure to be able to help.

    Terry

  • RegEx, error?

    12
    0 Votes
    12 Posts
    775 Views
    Alan KilbornA

    @Pan-Jan

    Yes, but that’s not what you said before.
    But, you have demonstrated in the past an unclearness about “straight” double quotes and “curled” double quotes, so I suppose you consider \` and \’ to be the same thing.

    Aside from your inaccuracy about the equivalency for \A (let’s put that behind us), you also said “but it works”, so can you demonstrate to us how you think it works?

    I don’t think you can, because your posts don’t make a lot of sense.
    I’m sure you will hide behind not being a native English speaker, but others have tried to point out to you that language-translators can make non-English speakers sound truly like English speakers – if one is willing to use them, correctly.

  • Clean up the backup folder

    1
    0 Votes
    1 Posts
    309 Views
    No one has replied
  • Regex - What once worked now does not. I think.

    5
    0 Votes
    5 Posts
    164 Views
    Thomas 2020T

    Maybe that’s it?
    [A-Z]\.[A-Z]

  • Automatically copy selected text?

    9
    0 Votes
    9 Posts
    6k Views
    PeterJonesP

    @Alan-Kilborn said in Automatically copy selected text?:

    there’s no reason that functionality even needs to mess with the clipboard to do what it does

    Indeed. That was the point I was trying to make that made your head hurt. :-)

  • [7.8.6] Closing tabs order.

    9
    1 Votes
    9 Posts
    2k Views
    Alan KilbornA

    @Donatas-Mačiūnas said in [7.8.6] Closing tabs order.:

    the settings section explicitly notes in the title/label that this behavior applies to Ctrl+TAB

    Isn’t hardcoding “Ctrl+Tab” on the user interface a “bad thing”??
    I mean, I can assign any (unrelated) function I want to “Ctrl+Tab”…and now that verbage on that setting in the Preferences doesn’t make any sense, because now my Ctrl+Tab combo opens up an Explorer window (for example).

    This seems odd. If a program is going to take over Ctrl+Tab for a specific purpose, that’s fine, but it should be disallowed to use that combination for other things in Shortcut Mapper then…

  • How to delete text after the 2nd specific character in each row

    16
    0 Votes
    16 Posts
    808 Views
    Thomas 2020T

    Schowek04.jpg

    ^((\w+ \| ){2})(.+)

    can be replaced individually

  • 0 Votes
    7 Posts
    456 Views
    Alan KilbornA

    @Camillia-Wee said in How to extract data from a table in excel using javascript?:

    because im using notepad++ to create the webpage

    COOKIES!

  • Is there a way to add an "enter" as part of a replace command?

    5
    0 Votes
    5 Posts
    412 Views
    Thomas 2020T

    or: Extended
    |-
    |-\r\n

  • written txt file in english, saved it. It changed to gibberish

    8
    0 Votes
    8 Posts
    2k Views
    EkopalypseE

    @Ekopalypse

    In addition you can check if your %appdata%\notepad++\backup directory contains something usable.

  • How to remove middle text?

    22
    0 Votes
    22 Posts
    3k Views
    Thomas 2020T

    it can also be so

    ^([^:\n]+)(:)((?1))
    \1

  • Style token disappears after close notepad and reopen file

    2
    0 Votes
    2 Posts
    578 Views
    EkopalypseE

    @Donald-Milotte

    That is normal. Npp is not MS Word where style information is stored in the file.
    Npp is a pure text editor. The reason why for example python code is
    always displayed in color is that there is a so-called lexer which scans the
    file according to previously created rules and colors it accordingly.
    For files that can not be assigned to a builtin lexer you can create UDLs, user defined lexers.
    Whether this is useful in your case or not, I can not say from the given information.

  • creating your own "language" ...

    4
    0 Votes
    4 Posts
    224 Views
    EkopalypseE

    @Sebastjan

    without knowing what the second half should be it is hard to tell what can be done in addition.

  • Find specific string in file 1 and replace in specific lines in file 2

    2
    0 Votes
    2 Posts
    258 Views
    Terry RT

    @Denis-Sta said in Find specific string in file 1 and replace in specific lines in file 2:

    Does anyone can give me some hints from where to start?

    Well I’d say you are going to have to merge the 2 files if you want regex (regular expression) to do the work. That’s not as bad as it sounds. There have been several discussions in the past on this forum regarding similar needs to yours. I think most have had solutions found using just regexes.

    The alternative would be a scripting language, Python is one amongst many that Notepad++ supports. But the issue here will be to have someone create a program for you in that language or will you need to learn it yourself.

    In broad terms I’d:

    Make the several lines in each file become one for each “record” Sequence up an ascending number at the start of each line, sort of a line number, odds for 1 file, evens for the other. The lines in file 1 may not be required to have an ascending number at the front but I’ve included it for the time being. Have at the front of each line in both files the appropriate sequences of text you will be using to find the lines. Sort the lines (once both files merged) in ascending order. This will “pair” records together. Use a regex to update the record in the line from file 2 from it’s “pair”. Use a regex to remove the lines from file 1 and to also remove the “sort text” at the front of line. Sort the lines again with the “line number” from step 2. This will put them back in “original order”. Pull apart the lines so they look as they did originally, but now with the additional information you wanted added.

    I replied to someone else recently that often a “BIG” problem like yours looks insurmountable. That is until we break it down into little steps, each then becomes fairly simple to code.

    Terry

  • How to insert text at the end of every url (via a macro)?

    7
    0 Votes
    7 Posts
    681 Views
    khk khkK

    Dear Peter,

    this was the information I needed; now the macro works fine.

    Lots of thanks to all who (tried) to help me.

    Kr

    Kurt

  • RegEx text search

    2
    0 Votes
    2 Posts
    128 Views
    No one has replied
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Unable to Allow regex backward search

    2
    0 Votes
    2 Posts
    157 Views
    EkopalypseE

    @Matthieu-gabrielli

    I don’t think you’re using the regex backwards search.
    At least the screenshot doesn’t show that you do as you have to tick
    the little checkbox next to Find Next button to see the forward and backward search buttons.

    c7923036-3820-4eac-8060-8b291fef7c49-image.png

    But I don’t think it is needed in your case.
    Strange that this basic regex is not working in your case, are you sure
    you haven’t, by accident, added an additional space to find what?
    Or maybe this document is using linux eol instead of windows eol?

  • "Find Previous" custom keyboard shortcut not working in v7.8.9

    5
    0 Votes
    5 Posts
    295 Views
    I

    That fixed it! Thank you so much @Ekopalypse!

  • Settings Preferences issue

    3
    0 Votes
    3 Posts
    187 Views
    Tim MartinT

    @PeterJones
    Holy cow, I am incredibly embarrassed. I have my screen setup with notepad++ in the upper left corner and when I go to preferences, what I pasted into my post was all I was seeing. After I saw your post I did it again and scooted the window over and – well, thanks for helping me find what was there all along…