• Is it possible to record macro to enter current date?

    7
    0 Votes
    7 Posts
    1k Views
    Rufus SmithR

    @guy038 You reminded me why I didn’t need my python plugin recently! I have been using that edit/insert/date and forgot about it! A lot of cool plugins are now incorporated in notepad, like sort/compare/etc…

  • 1 Votes
    8 Posts
    2k Views
    Alan KilbornA

    @Seth-Bettwizilch said in TypeScript not highlighting syntax outside of default style:

    recreate Vibrant Ink to be more faithful and up-to-date

    Maybe give it a new fancy name as well, and submit it to the user-defined themes collection, where it will be maintained in the future (by you) and really shine! :-)

    My thinking is that the existing Vibrant Ink theme is just going to live on the way it currently is, under Notepad++, so something you improve/augment would benefit from a new name to avoid confusion.

  • XML Tools v8.4.4

    2
    0 Votes
    2 Posts
    2k Views
    PeterJonesP

    @user1026

    XML Tools v3.1.1.13 is avaiable for download through Notepad++ v8.4.4 Plugins Admin:
    1758a1a4-7798-416e-80bf-a4b654a51d34-image.png

    If you already have XML Tools installed, it may be listed on the Updates or Installed tab, instead.

  • Need Help For Remove a href Tag With out remove anchor Text

    2
    0 Votes
    2 Posts
    542 Views
    guy038G

    Hello, @smart-warriors and All,

    If we assume that the strings <a href= and </a> are, both, on one line, only, I suppose that the following regex does the job :

    Open the Mark dialog ( Ctrl + M )

    SEARCH (?s)<a href=.+?>\K.+?(?=</a>)

    Possibly, check the Wrap around option

    Select the Regular expression search mode

    Click on the Mark All button

    Then, click on the Copy Marked Text button

    Open a new tab ( Ctrl + N )

    Paste the clipboard’s contents ( Ctrl + V )

    If all your <a href=.....>........</a> definitions are contained in a single line, you may use the more restrictive regex :

    MARK (?-s)<a href=.+?>\K.+?(?=</a>)

    Best Regards,

    guy038

  • Deleting sections.

    8
    0 Votes
    8 Posts
    2k Views
    guy038G

    Hi, @stuart-benson, @terry-r, @alan-kilborn, @peterjones and All,

    OK, I see… So, the best option is to use the @terry-r method, as there are several zones [.........] : per line :

    Open the Mark dialog ( Ctrl + M )

    Uncheck all box options

    SEARCH (?-s)(?<=\x5B").*?(?="\x5D)     if you use regular quotes "

    OR

    SEARCH (?-s)(?<=\x5B“).*?(?=”\x5D)     if you use smart quotes and

    Check the Purge for each search and Wrap around options

    Select the Regular expression search mode

    Click on the Mark All button

    Click on the Copy Marked Text button

    Open a new tab ( Ctrl + N )

    Paste the clipboard’s contents ( Ctrl + V )

    Voila !

    You’ll get the expected text :

    Hi, team. We’re looking at”,“our rush defense. Today’s session is going to”,“look at our outside alignment, and why that’s important”,“for a rush defense. OK team, what is an”,“outside alignment? The way you come up like”,“in the defensive line? How does it relate”,“to an opposition? Stand up on the far shoulder”,“from where the ball is. Most teams that”,“do a rush defense start on that outside”,“shoulder, why do you reckon? I think it requires”,“a lot of skill from the player”,“catching the ball to know what’s”,“going on that side if the ball is coming this way. So probably that’s why”,“it’s important to step on the far shoulder. Yeah, I like that. it makes that attacker”,“have to use far more skill. OK, men. So let’s just presume”,“I’m the attacker. We’ve got defender”,“1 and defender 2. So who’s your man, here? Who’s your man, Jay?

    If your prefer join all these different lines into one line only :

    Select all these resulting lines ( Ctrl + A )

    Edit > Line Operations > Join Lines ( Ctrl + J )

    Cheers,

    guy038

  • Removing all texts prior to a character in a string

    5
    0 Votes
    5 Posts
    3k Views
    Alan KilbornA

    @jeffvb9 said in Removing all texts prior to a character in a string:

    This doesnt seem to be working.
    Also we could look for /v and remove everything before and /v if possible.

    That’s really just a restatement of the same problem statement from before, which you claim “isn’t working”.

  • The quotation mark expands the folded code

    4
    1 Votes
    4 Posts
    416 Views
    Alan KilbornA

    For the Powershell case, there’s a Notepad++ “issue”, see HERE.

  • Search positive + egative (in-/exclude)

    9
    0 Votes
    9 Posts
    2k Views
    Alan KilbornA

    @Uwe-Recknagel

    As an additional hint, the information found HERE seems directly applicable to an aspect of the problem you are trying to solve.

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

    14
    0 Votes
    14 Posts
    3k 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
    572 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
    239 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
    400 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
    640 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
    202 Views
  • Predatory ads on download page.

    2
    1 Votes
    2 Posts
    378 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
    705 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
    4k 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
    309 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
    1k 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