• How to delete lines without String

    Locked
    4
    1 Votes
    4 Posts
    1k Views
    Alan KilbornA

    @Sammy-Bresel

    Since you are “script willing”, I might suggest Pythonscript (which is super if you already know Python) and a script to get you going with search/replace that could be adapted to what you want might be found here: https://notepad-plus-plus.org/community/topic/16942/pythonscript-any-ready-pyscript-to-replace-one-huge-set-of-regex-phrases-with-others/

  • Notepad++ hangs when clicked on Styler when defining your language.

    4
    0 Votes
    4 Posts
    928 Views
    Meta ChuhM

    @zaki-khan

    that is a good thing.

    if you want you can now compare the differences (plugins, etc) between your new portable version 7.6.3 x86 and your old installed 7.5.6 x86 to find the problem within your old install.

    or you can keep using the portable version, as it is fully featured, and has the advantage that everything is contained inside this folder, making it possible to duplicate at will, or run a duplicate from a usb drive on any other machine.

  • Search and select lines containing all keywords in notepad++

    Locked
    4
    1 Votes
    4 Posts
    3k Views
    guy038G

    Hello, @alan-kilborn, @maria-nita and All,

    Alan, the first answer of this stackoverflow’s topic is really the best one ;-))

    Indeed ! At first sight, although that, in OP text , word CAT always precedes the word DOG, I thought about the search regex, below :

    ^.*(CAT).*(DOG).*|^.*(?2).*(?1).*

    However, the syntax ^(?=.*CAT)(?=.*DOG).* is really more elegant !

    We can generalize to any number of words and, also, add conditions which should not occur ;-)) . For instance, the following regex would match all lines, with their line-breaks, which :

    Contain the 3 expressions WORD_1 AND WORD_2 AND WORD_5

    Does NOT contain the 2 expressions WORD_4 OR WORD_6

    (?-s)^(?=.*WORD_1)(?=.*WORD_2)(?=.*WORD_5)(?!.*WORD_4)(?!.*WORD_6).*\R

    So, it matches the lines 5, 12 and 14, only, in the text :

    This line 1 contains WORD_1 WORD_2 This line 2 contains WORD_1 WORD_3 WORD_5 This line 3 contains WORD_3 WORD_5 WORD_4 This line 4 contains WORD_1 WORD_5 This line 5 contains WORD_5 WORD_2 WORD_1 This line 6 contains WORD_2 WORD_1 WORD_6 WORD_5 This line 7 contains WORD_4 WORD_1 WORD_5 This line 8 contains WORD_2 This line 9 contains WORD_5 WORD_2 WORD_4 WORD_7 WORD_1 This line 10 contains WORD_1 WORD_6 WORD_2 This line 11 contains WORD_4 WORD_2 WORD_1, WORD_5 WORD_6 This line 12 contains WORD_7 WORD_2 WORD_5 WORD_1 This line 13 contains WORD_6 WORD_2 WORD_1 WORD_5 This line 14 contains WORD_1 WORD_5 WORD_8 WORD_2 WORD_3

    Best Regards,

    guy038

  • How to remove "dots"?

    3
    0 Votes
    3 Posts
    3k Views
    BelzemosB

    That’s it. Thank you!

  • Q: How to duplicate text with adding line between two certain words?

    Locked
    8
    1 Votes
    8 Posts
    2k Views
    Ziad AboramiZ

    @Ekopalypse Thanks for help
    It works now,
    I have made a mistake

  • 0 Votes
    3 Posts
    2k Views
    Cowboy BobC

    Thanks, At first I thought since this has only happened this once, for now I’ll just push the [ok] button. But your answer also prompted me to look at what I’ve pasted in and see if anything stands out.

    Some background: The “crtl+u” source is from a bank debit card site list of transactions, a register, normal stuff. What’s interesting is the generated source has everything on the page except for the register. Like, a transaction for Dominos appears on screen, but search the code and no Dominos.

    Y’know, turning off the spell check might be the ticket! If I settle this I’ll re-post with a brief account of the status.

  • Resolution issue in Notepad++

    Locked
    10
    1 Votes
    10 Posts
    7k Views
    RAMA KRISHNAR

    Hi @andrecool-68 ,

    May I know the steps to configure the display settings , because default recommendation settings and resolutions I am using in my setup . I remember that previously, might be last august it worked well after that it is not getting adjusted to the screen settings .Now i thought to fix that issue when i found same is happening for others also

  • Abbreviaiton Plugin or Alternative to Emmet?

    12
    0 Votes
    12 Posts
    3k Views
    Meta ChuhM

    @pnedev

    fortunately there’s a list of allowed advertisements for notepad++.

    for example this official hoodie:

    or the official, limited edition, ultra-vip, notepad++ thong 😂😂😂:

  • UDL: /* block comment in one line, error */

    33
    1 Votes
    33 Posts
    7k Views
    PeterJonesP

    Regarding @Gerald-Kirchner’s 2019-02-16T22:54:10.388 post above,

    I go to NPP -> ? -> Get More Plugins -> http://docs.notepad-plus-plus.org/index.php/Plugin_Central

    It seems to me that the ? > Get More Plugins menu item is more dangerous than helpful, in Notepad++ v7.6.3 and beyond. I have thus submitted issue #5325 to either get the behavior of ? > Get More Plugins changed, or get that menu item removed.

  • Remove lines

    7
    0 Votes
    7 Posts
    1k Views
    Alan KilbornA

    @Meta-Chuh

    You tell people to do something, then they do something completely different? Hmmm, I think I would quit trying. I’ve already got my own little children to raise up!

  • Two simple commands for text editing (beginner)

    9
    0 Votes
    9 Posts
    2k Views
    coconut79C

    @guy038 Thank you again for taking the time to explain all of that in an accessible way :)
    I will try to get a better understanding of the expressions and hopefully wrap my head around all of it. Thanks.

  • 0 Votes
    3 Posts
    2k Views
    New UserN

    This is working! Thanks a lot for this solution!

    Still not the “perfect” solution, but I’ll remember that.

    I would really love to hear an original developer comment on why they decided to add a second CTRL-A function exactly at the place where it should “naturally” be a multiple line select function!

  • My Run Macro for Python Doesn't Keep Created Windows Open

    7
    0 Votes
    7 Posts
    1k Views
    Eko palypseE

    Now the question would be, what is the default one.
    Afaik, Tkinter as well as ctypes comes with python and maybe
    packages like anaconda bundle something in addition.

  • Notepad++ Leaves screen artifacts with multiple win10 virtual desktops

    Locked
    4
    1 Votes
    4 Posts
    720 Views
    Eko palypseE

    Afaik no

  • How can I add numbers to the standard ini styler?

    Locked
    5
    0 Votes
    5 Posts
    934 Views
    bege10B

    @Meta-Chuh

    Now I have comments and the section headers, operator “=”, numbers and a few keywords.
    Only the comments are foldable, still missing is that the header and the contents of a section is foldable together. They are not connected yet as they are in the original lexer.

  • Plugin Like Window Manager with filter function

    Locked
    1
    0 Votes
    1 Posts
    401 Views
    No one has replied
  • Làm sao để cho notepad++ có thể?

    Locked
    3
    0 Votes
    3 Posts
    842 Views
    Lucky QuýL

    oh, thank you, bạn thật sự tuyệt vời, tôi đã có thể làm nhanh hơn công việc của mình, mãi yêu notepa++

  • Bug in contextMenu.xml

    Locked
    4
    0 Votes
    4 Posts
    739 Views
    Meta ChuhM

    @bege10

    If that procedure leaves an unchanged old contextMenu.xml the installation is not correct at this point.

    yes, you are correct.
    the reason is, that the notepad++ installer/updater will not replace your existing contextMenu.xml.

    this is by design and works correctly, as it would otherwise remove any customised context menu settings, every time a user makes an update.

    note: you will always find two different copies of contextMenu.xml on an installed version of notepad++.
    one at %AppData%\Notepad++\contextMenu.xml which contains user customisations, and one template at %ProgramFiles%\Notepad++\contextMenu.xml which contains all new changes of the latest update/install, allowing you to compare it to your personal contextMenu.xml.

  • New to Notepad++

    Locked
    4
    0 Votes
    4 Posts
    723 Views
    Meta ChuhM

    @triplel55569

    if @Alan-Kilborn is correct, then you will have to edit your shortcuts.xml file:

    on installed versions of notepad++ (not portable versions) the correct location of your shortcuts.xml is: %AppData%\Notepad++\shortcuts.xml
    (this alias will lead you to C:\Users\YourUserName\AppData\Roaming\Notepad++\shortcuts.xml)

    choose file > open at the notepad++ menu.

    paste %AppData%\Notepad++\shortcuts.xml into the file name input field and hit open to open your shortcuts xml.

    paste/insert one or more of the following lines in the black area, anywhere into your <UserDefinedCommands> area:

    <Command name="Launch in Firefox" Ctrl="yes" Alt="yes" Shift="yes" Key="88">firefox "$(FULL_CURRENT_PATH)"</Command> <Command name="Launch in IE" Ctrl="yes" Alt="yes" Shift="yes" Key="73">iexplore "$(FULL_CURRENT_PATH)"</Command> <Command name="Launch in Chrome" Ctrl="yes" Alt="yes" Shift="yes" Key="82">chrome "$(FULL_CURRENT_PATH)"</Command> save shortcuts.xml and restart notepad++

    now your run menu and your shortcuts.xml should look similar or equal to this screenshot:

    Imgur

    please report back if it works for you.

  • Refresh search in files result

    Locked
    3
    1 Votes
    3 Posts
    1k Views
    Alan KilbornA

    But it would be nice, IMO, to have a couple of choices:

    “Quick refresh” - run the exact search again only on files that were originally hit “Full refresh” - run the exact search again on all files currently meeting the filter criteria