• Notepad++ Restart Shortcut Key

    17
    5 Votes
    17 Posts
    6k Views
    PeterJonesP

    For anyone who has a taskkill-based solution – either the Run command or a fancier PythonScript – you might want to add /F to make it a “stronger” kill. I have run across some circumstances (for example, for here where a normal kill wasn’t sufficient).

    Edit: one downfall of the /F is that it will cause an “emergency exit”, so Notepad++ is not given a chance to save any settings (including recently-closed files). So only use the /F if you really need the extra power

  • Search for accented words.

    7
    0 Votes
    7 Posts
    4k Views
    PeterJonesP

    @socu ,

    It would make sense if there were an “accent-insensitive” flag in the standard regex engines, just like there’s “case-insensitive” flag. But no regex engine that I’ve ever used has had such a flag… Given that some of those engines have decades of development (for example, the Boost regex engine used by Notepad++ was derived from the PCRE engine, which had its roots in late-90s Perl regular expression), most of which has included knowing about Unicode, and the number of times I’ve seen “is there an accent-insensitive flag for regex-flavor-X” questions answered in the negative in programming forums, I would assume that if it were technically reasonable to be included, it would have been developed and included in the major ones by now. Given that it hasn’t been developed, I am assuming that’s because there’s a huge technical roadblock that’s beyond my pay grade to understand.

  • Open containing folder in cmd by the way of commands

    5
    0 Votes
    5 Posts
    341 Views
    ZhongPing ZhaoZ

    @peterjones
    I checked the user manual and learned about the Notepad++'s specific environment variables, thank you for the reminder!

  • Command Line Arguments Help should be copyable

    4
    0 Votes
    4 Posts
    1k Views
    PeterJonesP

    @markus-gaugg

    It’s also in the source code, or in the User Manual’s “Usage via the command prompt”. With that, and the ability to copy the whole text directly, there is already a plethora of ways to get the text you want.

    For a piece of text that almost never changes (as opposed to the Debug Info, which has dynamic info), I think that’s plenty of access (IMO, of course).

  • 0 Votes
    2 Posts
    330 Views
    PeterJonesP

    @dave-wilks ,

    Install the PythonScript plugin, and search the forum for add_1 for examples of doing math on found numbers

  • 0 Votes
    4 Posts
    52k Views
    sannt8S

    @ralphw Just delete the Nativelang.xml file and restart the n++…

  • Notepad++ crashes when using auto copy selection plugin

    3
    0 Votes
    3 Posts
    311 Views
    Rog SonR

    @rdipardo That worked!!! Thanks very much.

  • 0 Votes
    3 Posts
    520 Views
    guy038G

    Hello, @dejoota, @terry-r and All,

    @dejoota, I suppose that you just want to remove the messages in the last group of double quotes, don’t you ?

    So, here are three regex S/R which achieve this goal. Now, whatever your choice :

    Open the Replace dialog ( Ctrl + H )

    Untick all options

    Tick the Wrap around option

    Click once on the Replace All button ( Do not use the Replace button if the regex contains a \K syntax )

    Then :

    If you want to remove, both, the portuguese and the english versions :

    SEARCH (?-i)[^"]+(?="$)

    REPLACE Leave EMPTY

    So, from this INPUT text :

    "npc_citizen.question00" "isto é um teste" "[english]npc_citizen.question00" "This is a test"

    you’ll get this first OUTPUT text :

    "npc_citizen.question00" "" "[english]npc_citizen.question00" ""

    If you want to remove the portuguese version, only :

    SEARCH (?-si)^(?="npc_citizen).+"\K[^"]+(?="$)

    REPLACE Leave EMPTY

    you’ll get this second OUTPUT text :

    "npc_citizen.question00" "" "[english]npc_citizen.question00" "This is a test"

    If you want to remove the english version, only :

    SEARCH (?-si)^(?="\Q[english]\E).+"\K[^"]+(?="$)

    REPLACE Leave EMPTY

    you’ll get this third OUTPUT text :

    "npc_citizen.question00" "isto é um teste" "[english]npc_citizen.question00" ""

    Best Regards,

    guy038

  • pls, delete the trojan

    2
    0 Votes
    2 Posts
    238 Views
    EkopalypseE

    @dulce-gd

    Without knowing where you downloaded which file, no one can check whether this is actually the case, which I doubt is the case anyway.

  • Bug with annotations relating to z-order

    3
    1 Votes
    3 Posts
    281 Views
    Alan KilbornA

    @michael-vincent said in Bug with annotations relating to z-order:

    that actually isn’t an “annotation” in the sense of a Scintilla annotation

    I was actually working on some script code that deals with annotations at the time I noticed that, so I guess that was on my mind. :-)

  • CTRL-N bookmark feature please

    7
    0 Votes
    7 Posts
    724 Views
    Alan KilbornA

    There also might be some nuggets HERE for someone with ambition and skills enough to “roll their own”.

  • Find In Files should in a separate thread

    3
    0 Votes
    3 Posts
    319 Views
    pnedevP

    @lavanyadeepak ,

    What I can think of is that if Find in Files was running in another thread then the user could modify/delete files in parallel which would mess-up the ongoing search operation.

  • MIB file (SNMP) syntax highlighting [User Defined Language]

    9
    4 Votes
    9 Posts
    4k Views
    gstaviG

    @rdipardo said in MIB file (SNMP) syntax highlighting [User Defined Language]:

    This definitely won’t work:

    That is why I said “test the lexing quality with old NPP version”.
    if there is interest, I may invest the time. Or since the source code is available then maybe someone else will take over.

    If everyone is happy with UDL, great.

  • 0 Votes
    1 Posts
    5k Views
    No one has replied
  • Adding the Extension of PRG in the Tab Settings list

    24
    0 Votes
    24 Posts
    4k Views
    Lycan ThropeL

    Yes, I get it, it’s not an indentation bug, I must have done something wrong. :-)

    So I’ll have to mess with it to see what I did wrong. I will try creating a user startup.py and put it where ever it goes (reading the instructions on file locations I have here somewhere), and remove it from the machine startup.py. This is kind of the thing, I know I’ve screwed it up somehow and I don’t understand the indentation rules for Python…I’m am only learning and dabbling at the moment, and indentation was never a critical part of any programming I’ve ever done, so it’s new to me. I’ll get it. Thanks for the pointers and the tests.

  • Different encoding determined based on the file extension

    2
    0 Votes
    2 Posts
    442 Views
    EkopalypseE

    @joe-schmitz

    No, this is not an error. Some files like xml or html sometimes provide a tag that Npp uses to identify the encoding. If this is not present or Npp does not know that it is an XML or HTML file, it tries to guess the encoding using the chardet module.
    So it works as intended. By the way, in this particular case, ISO-8859-1 and your ANSI version (1252) are identical.

  • Finding strings that start in a specific column

    5
    0 Votes
    5 Posts
    3k Views
    e5584071E

    @alan-kilborn , thanks very much. This is exactly what I needed. Have a great day!

  • Function List plugin - how to debug

    3
    1 Votes
    3 Posts
    393 Views
    S

    Need to have a closing php tag in the file for the function list to work…

    ?>

    Minor thing that caused a lot of pain…

  • Find - Replace

    13
    0 Votes
    13 Posts
    11k Views
    PeterJonesP

    The phrasing I am considering for the user manual:

    issue #349 => PR #350

    It should be in the next release of the user manual

  • Document does not scroll when holding F3

    4
    0 Votes
    4 Posts
    279 Views
    Antoni RoszakA

    Hi,

    I have uninstalled the Horizontal Ruler, and updated XMLTools to 3.1.1.13, and it’s still incorrect. This is a large XML file, 57 MB, 1.7 million lines. With a smaller file (87k lines) it works fine.

    I have narrowed it down a bit; apparently, the problem occurs when the number of lines between occurrences is large. I cannot share the original file itself for privacy reasons, but I got the path:

    take file “C:\Windows\Microsoft.NET\DirectX for Managed Code\1.0.2911.0\Microsoft.DirectX.Direct3DX.xml” copy everything between second and penultimate line, 20 times (I got 270k lines) search for “Microsoft.DirectX.PrivateImplementationDetails.”, normal mode hold F3