• (?(backreference)true-regex|false-regex)

    14
    0 Votes
    14 Posts
    4k Views
    guy038G

    Hi, @wing-yang, @peterjones, @mapje71 and All,

    In the last part of my previous post, I proposed a regex which does not use any conditional statement :

    (?x) ^ [^(\r\n]* (?: \( (\d{3}) \) | (?1) - ) (?1) - \d{4}

    However, this regex can simply be improved by using the @peterjones’s look-behind structure, instead of the negative class character :

    (?x) (?<!\() (?: \( (\d{3}) \) | (?1) - ) (?1) - \d{4}

    which allows to get several occurences in a single line, as below :

    abc (123)456-7890 def 123-456-7890 ghi

    BR

    guy038

  • How find in selection by key alt? Hello.

    10
    0 Votes
    10 Posts
    1k Views
    Alan KilbornA

    @PeterJones said in How find in selection by key alt? Hello.:

    But trying to search across multiple rows in the rectangle

    I would think that anything the developers implemented for rectangular selection searching/replacing could have the caveat that each row (the selected part) is independent and you can’t search across rows with it.

    And that’s what my replace-all script assumes as well.

    IMO, that kind of thing (the possibility to search/replace across rows defined by the rectangular selection), is NOT what has prevented the developers from adding the feature to date.

  • Different password window than normal when using Nppcrypt plugin

    2
    0 Votes
    2 Posts
    375 Views
    PeterJonesP

    @Peter-Hellen ,

    Are you on the same computer, or different computers? Or did you re-install Notepad++ or update NppCrypt between uses?

    I seem to remember that NppCrypt did a major update at some point…

    … searching for NppCrypt posts … ahh, there, this post links to a FAQ by the NppCrypt author that might be of use to you.

  • Cannot Install LuaScript

    5
    0 Votes
    5 Posts
    675 Views
    LonghornLouL

    @Alan-Kilborn Thanks - that worked a treat. My problem was not that I couldn’t read but that I thought the two files had to replace others in the zip file I had downloaded and there were no .dll files to replace.
    Again, thanks for your help!

  • Replace timestamps notepad++

    7
    0 Votes
    7 Posts
    1k Views
    Paul MatteschkP

    @PeterJones the expression worked, i had to check “Reguläre Ausdrücke” instead of “Erweitert”. thanks Jones =)!

  • Will notepad be available for mac system?

    2
    0 Votes
    2 Posts
    300 Views
  • Predatory ads on download page.

    2
    1 Votes
    2 Posts
    507 Views
    Alan KilbornA

    Yes. I’ve pointed this out before, myself.
    I think the predatory ads key on the real word “download” on the site, and do their “dirty work” because of that.
    It is often a sad world we live in. :-)

  • 0 Votes
    6 Posts
    2k Views
    PeterJonesP

    @Steffan-Rhoads ,

    I created issue #12079 asking for a fix to allow temporarly-missing files to stay in the session.

  • Unable to use MatPlotLib in Python Files

    6
    0 Votes
    6 Posts
    1k Views
    bungoscrungusB

    @PeterJones I didn’t think of checking the command line, thanks! The error appeared there, too. This might be the first time I’ve been glad to see a module error – thank you!

    It turns out a program I had also had python.exe, and Notepad++ was using that Python instead. Uninstalled the program, MatPlotLib works perfectly! Thank you!

  • remove Space & Break line while Copying a line in notepad++

    14
    0 Votes
    14 Posts
    6k Views
    Alan KilbornA

    @Andi-Kiissel said i:

    With WordWrap=ON this script behaves differently than Scintilla End/Shift+End default, but that’s OK for me

    I considered this case, but I didn’t see an easy way to handle it.
    As line “breaks” caused by word-wrap are artificial, it would be extremely rare for me to want to move to one.
    So wrap consideration got defeatured from the spec for this problem. :-)

  • Plugin or UDL to color whole lines by regexp?

    3
    0 Votes
    3 Posts
    522 Views
    Yuval KfirY

    @PeterJones Thank you! That is exactly what I needed.

  • Notepad ++ install won't run on this computer

    4
    0 Votes
    4 Posts
    2k Views
    Terry RT

    @Martin-Mortensen said in Notepad ++ install won't run on this computer:

    I just got a new computer and tried to install Notepad++ I get the message “This app can’t run on your PC” I’m trying to run npp.8.4.4.Installer.x64.exe.

    And I was wondering if possibly (given it’s a new PC) that Windows is running in S mode. If so, only apps from the Microsoft Store will install. However the error message (if what you gave is accurate) doesn’t appear to match what I thought it would say.

    However to check, read this Microsoft page.

    Terry

  • How to mark partially duplicated lines

    15
    0 Votes
    15 Posts
    8k Views
    Faraz KetabiF

    @Faraz-Ketabi
    Thanks a lot.

  • scaling / math. operations with colums

    2
    0 Votes
    2 Posts
    527 Views
    PeterJonesP

    @qwertz_1234 ,

    Natively, no. Notepad++ is a text editor, not a spreadsheet. Open your text file in Excel or OpenOffice/LibreOffice Calc or some other spreadsheet application, do the math, and save it again.

    If you are willing to use a scripting plugin for Notepad++, it can be done, with more work. The Mathematical Replacement FAQ has all the details you need if you are willing to put in the effort yourself.

  • Jump to specific lines

    8
    1 Votes
    8 Posts
    43k Views
    Alan KilbornA

    When I said before:

    There is a method for organizing related scripts into subfolders, but it requires some additional code in startup.py to make that work.

    For more detail on that, see HERE.

  • Find and replace number incrementally

    2
    1 Votes
    2 Posts
    356 Views
    EkopalypseE

    @Cubilas

    I assume you want something like this.

  • 1 Votes
    5 Posts
    2k Views
    EkopalypseE

    @kolos-1212 said in Notepad++ took over my Win 10 Notepad w/o my permission "Please reinstall Notepad Starter":

    @Ekopalypse It did happen to me as well. I downloaded it from Admin Plugins so I guess it is official if I can directly access it from notepad++.

    Official was used in the context of “developed by the npp developer”, so, no, this plugin is/was developed by someone else.

    I surely didn’t want something like this to happen and I am wasn’t really reading what it does I just needed it for some function to test lol.

    I don’t understand, what other functionality does this plugin have? Hmm … sounds like you are the perfect candidate for scammers and the like. Be careful.

  • Enabling block caret for the OVR mode.

    7
    0 Votes
    7 Posts
    1k Views
    SalviaSageS

    Thanks to everyone for their replies.
    Again, we fixed this issue.

  • Plugin Snippets Render Error

    3
    0 Votes
    3 Posts
    583 Views
    Hasan Tahsin DAĞLIH

    @Terry-R
    Your explanation is very enough.
    By doing as you said, the plugin worked without any problems in the portable version.
    Thank you for this.

    Also, I couldn’t explain myself well because my English is not very good. I apologize for that too.
    Respects

  • Style Token errors

    3
    0 Votes
    3 Posts
    325 Views
    PeterJonesP

    @lcy10311 ,

    For example, it works just fine for me:
    d1778c58-aacb-4410-8c8b-3ad2acc17b88-image.png

    You might want to check that your current theme defines the styles reasonably:
    2ef8dd30-eb44-45f3-b7c0-26629dd71bcd-image.png