• Can no longer paste onto a screen.

    3
    0 Votes
    3 Posts
    282 Views
    David FindlayD

    @peterjones
    Thank you.
    Will try that.

  • Find those html tags that contain only 3 words (with regex)

    4
    0 Votes
    4 Posts
    228 Views
    Neculai I. FantanaruN

    @neculai-i-fantanaru

    Try this:

    <p class="pintem">(?:\W*\w+){3}\W*</p>

  • 1 Votes
    5 Posts
    968 Views
    Redeye123R

    @mpheath said in how to run my python script using (pythonscript for npp) to multiple opened files:

    from Npp import *

    def forEachFile():
    for file in notepad.getFiles():
    notepad.activateBufferID(file[1])
    notepad.getCurrentFilename()
    editor.rereplace(‘unit_reward_per_km: ([0-9]+)’, times_2)
    notepad.save()

    def times_2(m):
    return 'unit_reward_per_km: ’ + str(int(m.group(1)) * 2)

    forEachFile()

    Yea i copied alot to help myself out and it worked in one so i had to be close the printname was just something that was in a piece of code :P and forgot to remove it when i posted it here . Thank you !

  • 0 Votes
    21 Posts
    3k Views
    Lycan ThropeL

    @peterjones ,

    Learning something every day. :)

  • How to install multi language DSpellCheck based on native Win lib

    7
    0 Votes
    7 Posts
    1k Views
    Niels_BiggerN

    @niels_bigger
    I am happy now after adding the languages via MS Office :-)
    43445af2-41af-446d-9c08-b7e35bd6a12c-image.png
    e8c71278-cae6-4038-8205-d0eeeeae313a-image.png

  • Add a new text

    8
    0 Votes
    8 Posts
    2k Views
    Alan KilbornA

    @alij2022 said in Add a new text:

    is there a way to indent the line as well like making it appear on the same line as the first one, with indentation?

    Sure, you can add in some spaces or tabs after the \r\n; for a tab character you can use \t.

  • Anything to add up selected numbers? (or plugin suggestion)

    8
    0 Votes
    8 Posts
    3k Views
    Alan KilbornA

    This was turned into a real issue HERE.

    I posted a PythonScript solution there.

  • Start Notepad++ with file name extension

    2
    0 Votes
    2 Posts
    219 Views
    Alan KilbornA

    @åke-göransson

    Yes, see the user manual HERE. You want to use the filepath part.

  • Flashing Box Whilst Typing

    4
    0 Votes
    4 Posts
    571 Views
    mpheathM

    @bernard

    This seems like the same issue reported with Notepad++ v7.9.2 (64-bit):

    #9433 Autocomplete makes notepad++ unable to keep up with typing.

    an empty (context menu?) box flash for a second

    I have submitted a Pull Request to fix:

    #11460 Fix autocomplete may show empty list.

  • Dark mode for user defined language

    7
    0 Votes
    7 Posts
    3k Views
    Gor AbgaryanG

    @peterjones Thanks,
    Yes, that helped, but in any case, I have 2 UDL-s loaded in the tool, and every time I change the npp theme, I need to run the keyboard shortcut in order to change the UDL. I thought the script will automatically change the UDL based on the Dark/Light mode of NPP. But in any case, your suggestions were very helpful. Thanks. I figured the PythonScript plugin out.

  • Changed tab (red icon) is hardly visible when in background

    3
    0 Votes
    3 Posts
    250 Views
    ollixx77O

    Great, this helps a lot. Thanks :-)

  • Recording: How can I change the regex operations in MACRO?

    11
    0 Votes
    11 Posts
    3k Views
    Alan KilbornA

    @neculai-i-fantanaru said in Recording: How can I change the regex operations in MACRO?:

    The location of shortcuts.xml is

    That isn’t an absolute. Maybe for you it is, but it depends upon your setup. If you look at your Debug Info… (on the ? main menu), example:

    Local Conf mode : OFF

    then yes it is in %APPDATA%\Notepad++.

    but if it says:

    Local Conf mode : ON

    then it is in the same folder as notepad++.exe.

    Also, there is more info on “appdata” HERE … I should have pointed that out before.

  • FunctionList issues

    3
    0 Votes
    3 Posts
    229 Views
    PeterJonesP

    @lycan-thrope said in FunctionList issues:

    removing the ^ allowed the two ‘Object’ lines to be found

    @Pat-Sinclair , with @Lycan-Thrope’s suggestion, it might match a line that says
    SomethingElse_OBJECT_Here that you don’t want it to match.

    if I were changing your expression to work with OBJECT_IndentedSomething, I would actually change it to mainExpr="^\h*OBJECT.*", which will still anchor to the beginning of line, but allows whitespace (spaces and tabs) between the beginning of the line and the OBJECT. This prevents anything but whitespace to be between the beginning of the line and the OBJECT,which I think is what you want.

  • Deleting all even-numbered lines an something more?

    20
    0 Votes
    20 Posts
    8k Views
    Alan KilbornA

    @juan-flavio-orozco said in Deleting all even-numbered lines an something more?:

    It would not complicate me so much, I would place myself at the beginning of the first line with the time, I would start recording a “macro”. Already recording the macro; holding the “shift” key you would press the “end” key and then (without releasing “shift”) once the “right” (→) key, release “shift” and press “Delete”.

    So just a note on this technique:

    It doesn’t “protect” your data. If you accidentally start the macro on the wrong line, you will operate (delete) the wrong data.

    With the replacement approach using regular expressions, only data that matches the proper pattern will be removed.

  • File name variable to replace text.

    9
    0 Votes
    9 Posts
    4k Views
    Terry RT

    @guy038 said in File name variable to replace text.:

    So, I don’t understand why you and @terry-r used, for instance, the %1 parameter, like in here.

    Well, I guess I’ve always done it that way and it’s always worked. See here:

    826e4449-7594-4dd8-bdb5-db98cc7395c0-image.png

    However, upon reflection (well some googling) I see Microsoft’s official documentation supports your statement. See here

    So I stand corrected, yet why does the %1 thru %9 work then if Microsoft say those variables aren’t to be used in this context but within the batch file as batch parameters.

    Terry

  • slow scrolling on RD

    2
    0 Votes
    2 Posts
    1k Views
    PeterJonesP

    @sergey-shelukhin ,

    For other readers, I believe that “RD” means “remote desktop”.

    (Not everyone uses remote desktop, and you cannot expect all Notepad++ users (which is what this community is made of) to understand such abbreviations – so your question was complicated to understand. And even though I use remote desktop nearly every day, I cannot say that I’ve ever referred to it as RD.)

    Also, in that daily remote desktop usage, I haven’t really noticed significant slowdown in Notepad++ scrolling. But I also don’t do files that are hundreds of MB large, so maybe I’m just editing files that are too small to affect the remote desktop connection. (My only complaint remotely is that the Alt key is highjacked when I’m on some systems, so I cannot do column edit remotely.)

    if Notepad++ just does an unnecessarily large number of updates

    Whether the refresh/screen-updates are “unnecessary” or not is probably a matter of opinion, and how smooth various users want scrolling to appear.

    There are a number of posts about this,

    It would have helped if you’d linked us to them, because I don’t remember those discussions off the top of my head. (My memory isn’t as good as … what was I talking about? 😉 )

    but no real resolution

    If it’s just been talk in the Forum (a community of users), then nothing will ever be done about it. The Forum is not the issue tracker for the project, as is well-defined in our feature request / bug report FAQ. If no one has ever made an official issue, nothing will ever be done about it.

  • can't find ASCII characters !

    12
    0 Votes
    12 Posts
    5k Views
    PeterJonesP

    @neculai-i-fantanaru said in can't find ASCII characters !:

    what is the formula in this case with iconv? Can anyone tell?

    Did you see the line I had in the exact post I linked – the one written by me?

    FOR %f in (*.srt) do @( iconv -f ISO-8859-2 -t utf-8 "%f" > "%~nf.utf8%~xf" )

    In your case, just switch from *.srt to *.txt – or if it’s all files in the folder, *.*. You need to make sure you’re at the command prompt; if you are in a .bat file, every % will need to be %% instead. The fancy stuff at the end just auto-generates the new name with .utf8 in the new filename, but otherwise uses the filename that it matched during the loop.

    (That is a command-line question, not a Notepad++ question. cmd.exe has a for loop syntax as shown above. if you use powershell, you will need to find powershell loop syntax help elsewhere, as it’s not on-topic for a Notepad++ forum)

  • Color Picker for 64bits doesn't work

    3
    0 Votes
    3 Posts
    672 Views
    Durand PaulD

    Thank you very much Michael for your answer, it work fine with this version https://github.com/vinsworldcom/nppQCP/releases/tag/2.1.2.1

  • How to select all the text in notepad without "lines of code"

    9
    0 Votes
    9 Posts
    1k Views
    PelagiusP

    @peterjones
    I understand. Thank you very mutch again!

  • my .txt is in blank

    10
    0 Votes
    10 Posts
    2k Views
    donhoD

    @yefrith-gil said in my .txt is in blank:

    hi! i need help, first my power off on my pc
    i open again notepad++ and in my .txt say all: “NULL NULL NULL NULL”

    Could you describe how was your PC power-off ?