• Why doesn't the spell check work in a macro?

    4
    0 Votes
    4 Posts
    1k Views
    andrecool-68A

    @Peter-Åkerström Have a nice swim))

  • -1 Votes
    1 Posts
    355 Views
    No one has replied
  • css property scrollbar-width not highlighted

    4
    0 Votes
    4 Posts
    1k Views
    Stelios KaraviasS

    Thank you adrecool-68. Good to know.

  • find opened textfile by search for a name

    4
    0 Votes
    4 Posts
    544 Views
    Alan KilbornA

    Or maybe try what I’ve come to remember as the “ninja” plugin; see here.

  • VHDL quotation (") character matching - syntax highlighting malfunction

    2
    0 Votes
    2 Posts
    570 Views
    PeterJonesP

    @tech_newb: Welcome to the Notepad++ Community.

    Is this in fact a bug or can someone see something I am doing incorrectly

    I cannot replicate your described behavior:

    The highlighting continues beyond that row for me in v7.7 64-bit.

    There might be something with your particular version.

    If you go to ? > Debug Info, you can click on the “Copy debug info into clipboard” shown in my image, and directly paste the debug-info text into your reply. Or you can do a screenshot, upload to a service like imgur, and use syntax ![](https://i.imgur.com/01hOo1m.gif) to embed the image (making sure to have the direct img URL, not the imgur “display page” which includes html to display the image with all their formatting and internal/external links).

  • How difference in uppercase || lowercase in UDL docs?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • UDL issue with fold in code one items

    1
    0 Votes
    1 Posts
    339 Views
    No one has replied
  • 3 Votes
    2 Posts
    2k Views
    Meta ChuhM

    welcome to the notepad++ community, @Ertan-Küçükoglu

    yes, unfortunately windows 10 does not trigger a file modification on those files, so without a cyclic re-read of the file update, which happens when you e.g. switch tabs or notepad++ focus, we will not see any changes.

    if you like to see something funny:

    monitor your log file in notepad++.
    (or open cmd and run ping -t 8.8.8.8 > ping.log and monitor it, see issue #5586) now open an explorer window with the path to that file. click on the file name in windows explorer, then click on any other file, and click again on this file. you will notice that, although explorer is running completely independent from notepad++, your file will update the monitoring at the non focused notepad++ window, every time you click on the file name at the explorer window.

    best regards.

  • Notepad++ won't save window size/position

    7
    0 Votes
    7 Posts
    3k Views
    Johnny CarsenJ

    I unzipped it in my downloads folder & ran it with no luck. Then I moved it to the C:\Program Files\ folder and ran it again. Same thing.

    Notepad++ v7.7 (64-bit)
    Build time : May 19 2019 - 13:05:35
    Path : C:\Program Files\Notepad++\notepad++.exe
    Admin mode : OFF
    Local Conf mode : OFF
    OS : Windows 10 (64-bit)
    Plugins : mimeTools.dll NppConverter.dll

  • Notepad+= Uninstaller is not digitally signed

    2
    0 Votes
    2 Posts
    585 Views
    Meta ChuhM

    welcome to the notepad++ community, @wrolisonaflac

    the nsis installer’s helper file uninstall.exe will not trigger alerts, once it has been installed by the signed installer.

    as your concern at issue #5806 was a possible malware detection, there is no need to be alarmed, as long as you have downloaded the installer from our official resources.
    uninstall.exe will not be detected as malicious by any of the top ~70 antivirus/antimalware engines.

    please see the current virustotal.com results:

    uninstall.exe (7.7)
    https://www.virustotal.com/gui/file/a9e7777005905f608973696b4d83b8013ebfa82fc5dcad327390acba6ff3ce52/detection

    uninstall.exe (7.7.1)
    https://www.virustotal.com/gui/file/5ff7a866c0cce74680b01142bb9613388fef23b5cd68215c02dfe9baccc88487/detection

    npp.7.7.1.Installer.exe
    https://www.virustotal.com/gui/file/6787c524b0ac30a698237ffb035f932d7132343671b8fe8f0388ed380d19a51c/detection

    please also make sure you only download notepad++ from our official resources at https://notepad-plus-plus.org/download/

    many thanks and best regards.

  • 0 Votes
    1 Posts
    354 Views
    No one has replied
  • Why is N++ opening in C:\Windows\System32

    3
    0 Votes
    3 Posts
    795 Views
    aaeneasA

    Debug Info follows:

    **Notepad++ v7.7 (64-bit)
    Build time : May 19 2019 - 13:05:35
    Path : C:\Program Files\Notepad++\notepad++.exe
    Admin mode : OFF
    Local Conf mode : OFF
    OS : Windows 10 (64-bit)
    Plugins : ComparePlugin.dll DSpellCheck.dll mimeTools.dll NppConverter.dll **

    I think I may have found a work around that relieves a good bit of the pain. This phenomenon seems to only occur when N++ is originally launched by right-click on Windows Explorer. If I launch N++ first, for example without any file specified, then when I subsequently right-click a file name this doesn’t happen.

  • Javascript levlels bug: reproduction with workaround

    1
    0 Votes
    1 Posts
    305 Views
    No one has replied
  • Non-Standard Behavior of Save-As Dialog

    6
    1 Votes
    6 Posts
    904 Views
    EkopalypseE

    @HillbillyDNA

    :-) LOL and you are responsible making me laugh - so we both are lucky :-)
    Btw. Fat, is that this what my wife calls rescue rings and looking at me? :-D

  • add a prefix to a each string in a column

    4
    0 Votes
    4 Posts
    3k Views
    guy038G

    Hi, @yascha-badenhop, and All,

    OK, I get the problem ! I’ll try to describe my different steps in order to reach the right solution. If you’re in a hurry, just skip this section ;-))

    Firstly, I tried to imagine the way to access to the 15th column, with the | separator

    A column is composed of some standard characters, different from |, followed with the | separator which can be regex-translated as [^|\r\n]+\|. Indeed [^|\r\n] represents any char different from | and from any EOL character, repeated many times ( + ) and followed with a literal pipe character \| ( must be escaped because it’s a meta-regex character )

    To get the 15th column we need to count the first 14 columns, from beginning of line, so the regex ^(?:[^|\r\n]+\|){14}. Note that I’m using a non-capturing group (?:........) group as we do not care about the contents of these different columns and we don’t need to store them, for further recall !

    Then we place the \K regex feature which resets the regex engine search and locate the working position right after the | separator of the 14th column

    Secondly, I considered the contents of the 15th column :

    Seemingly, it contents several words, each of them preceded with a space char ( from your second post, we learn that these may be either R10 , C10, vdr10 or xtal10 ) However, I preferred to suppose that the first word of the 15th column could directly follow the | separator.

    So, for the moment, the search regex is ^(?:[^|\r\n]+\|){14}\K\x20*\w+, as \x20* stands for any range of space chars, even none and \w+ a non-null list of word characters. But, as we must insert the A_ string between the possible blank character(s) and the subsequent word, I enclosed them between parentheses, which define two groups 1 and 2 ( as, you remember, the very first group is a non-capturing one ) giving the regex ^(?:[^|\r\n]+\|){14}\K(\x20*)(\w+)

    Thirdly, I thought about the way of matching the second and subsequent words of the 15th column :

    I first thought about to add an alternative ( | ) to the search regex and search for an other word, preceded with space character(s), also enclosed for parentheses as we need the contents for replacement => the regex ^(?:[^|\r\n]+\|){14}\K(\x20*)(\w+)|(\x20+)(\w+). However, this does not work as, when the present working location, of the regex engine, is after the 15th column, and that your text contains other columns, the second alternative, of the search regex, would match any subsequent words ! Not what we want, obviously !

    The solution is to use the \G feature which needs that the next regex match begins at the exact location where the previous match ends. So, when all the blocks “space(s) + word” ( \x20+\w+ ) of the 15th column will be matched, the process will stop. Indeed, the first word of the 16th column is not closed to the last word of the 15th column because of the | separator and breaks the \G condition !

    Finally a solution for the search regex could be :

    SEARCH ^(?:[^|\r\n]+\|){14}\K(\x20*)(\w+)|\G(\x20+)(\w+)

    Fourthly, I built the replacement regex :

    Note that groups 1 and 2 store the first space character(s) and word characters of the 15th column

    Groups 3 and 4 store the second and subsequent space character(s) and word characters of the 15th column

    So, the use conditional replacement (?#........) is needed and gives the replacement regex (?2\1A_\2)(?4\3A_\4). This means that :

    If group 2 exists, we rewrite the space(s) characters first ( \1), followed with the string A_, and, finally, the word characters ( \2 )

    If group 4 exists, we rewrite the space(s) characters first ( \3), followed with the string A_, and, finally, the word characters ( \4 )

    After a while I realized that these two cases are mutually exclusive. And, as a non defined group n, noted \n in replacement, is supposed to be an empty group, with the Boost regex engine, I finally got the final replacement regex : \1\3A_\2\4

    So, @yascha-badenhop, the final regex S/R, to solve your problem, is :

    SEARCH ^(?:[^|\r\n]+\|){14}\K(\x20*)(\w+)|\G(\x20+)(\w+)

    REPLACE \1\3A_\2\4

    To test it, I considered the 2 colums sample text,  R10 C10 vdr10 xtal10|xtal10 vdr10 C10 R10|, with various ranges of space chars before the words. this range is then repeated 9 times, giving 18 columns, in totality :

    R10 C10 vdr10 xtal10|xtal10 vdr10 C10 R10| R10 C10 vdr10 xtal10|xtal10 vdr10 C10 R10| R10 C10 vdr10 xtal10|xtal10 vdr10 C10 R10| R10 C10 vdr10 xtal10|xtal10 vdr10 C10 R10| R10 C10 vdr10 xtal10|xtal10 vdr10 C10 R10| R10 C10 vdr10 xtal10|xtal10 vdr10 C10 R10| R10 C10 vdr10 xtal10|xtal10 vdr10 C10 R10| R10 C10 vdr10 xtal10|xtal10 vdr10 C10 R10| R10 C10 vdr10 xtal10|xtal10 vdr10 C10 R10|

    Now :

    Open the Replace dialog ( Ctrl + H )

    Type in the regex ^(?:[^|\r\n]+\|){14}\K(\x20*)(\w+)|\G(\x20+)(\w+), in the Find what: zone

    Type in the regex \1\3A_\2\4 in the Replace with: zone

    Preferably, tick the Wrap around option

    Choose the Regular expression search mode

    Click once on the Replace All button, exclusively ( Because of the \K syntax, you must not use the Replace button ! )

    You should get your expected text :

    R10 C10 vdr10 xtal10|xtal10 vdr10 C10 R10| R10 C10 vdr10 xtal10|xtal10 vdr10 C10 R10| R10 C10 vdr10 xtal10|xtal10 vdr10 C10 R10| R10 C10 vdr10 xtal10|xtal10 vdr10 C10 R10| R10 C10 vdr10 xtal10|xtal10 vdr10 C10 R10| R10 C10 vdr10 xtal10|xtal10 vdr10 C10 R10| R10 C10 vdr10 xtal10|xtal10 vdr10 C10 R10| A_R10 A_C10 A_vdr10 A_xtal10|xtal10 vdr10 C10 R10| R10 C10 vdr10 xtal10|xtal10 vdr10 C10 R10|

    If you want to be more restrictive and match the exact words, that you spoke of in your second post, we just have to change the regex \w+ into the non-capturing group,followed with 10, so (?:xtal|vdr|R|C)10, giving the final regex S/R :

    SEARCH ^(?:[^|\r\n]+\|){14}\K(\x20*)((?:xtal|vdr|R|C)10)|\G(\x20+)((?:xtal|vdr|R|C)10)

    REPLACE \1\3A_\2\4

    This second solution is even better, as it prevents a second unwanted execution of the regex S/R, leading, for instance, to a 15th column like | A_A_IC10 A_A_IC9

    Best Regards,

    guy038

  • 0 Votes
    1 Posts
    313 Views
    No one has replied
  • 1 Votes
    5 Posts
    2k Views
    Scott WilksS

    That is much better, wish I had known that sooner! Thank you for the examples!

  • Block-Commands:

    5
    2 Votes
    5 Posts
    8k Views
    Nic H. MuellerN

    Thanks for your help.

  • can't use thinkpad keyboard trackpoint

    5
    0 Votes
    5 Posts
    946 Views
    damian XUD

    @Ekopalypse Actually I had a laptop ThinkPad R61 which run well with n++, win7 pro, so …
    but it’s very kind of you, considering.

  • How do I replace characters in the middle of a string?

    Locked
    2
    0 Votes
    2 Posts
    707 Views
    Adam YikA

    Solved, realized how the brackets work, the solution is this: [_].*?[.]. Sorry!