• UDL issue with fold in code one items

    1
    0 Votes
    1 Posts
    335 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
    2k 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
    583 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
    352 Views
    No one has replied
  • Why is N++ opening in C:\Windows\System32

    3
    0 Votes
    3 Posts
    784 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
    303 Views
    No one has replied
  • Non-Standard Behavior of Save-As Dialog

    6
    1 Votes
    6 Posts
    900 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
    311 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
    939 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
    705 Views
    Adam YikA

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

  • Bug? Default code-page forgotten

    Locked
    3
    0 Votes
    3 Posts
    699 Views
    andrecool-68A

    @Michał-Łętowski
    Test the revised temporary version:
    https://notepad-plus-plus.org/temp/cyrillacPb/
    Release soon)))

  • 1 Votes
    17 Posts
    4k Views
    niente0N

    Same here, my ASP scripts aren’t highlighted anymore since v7.7.
    I can confirm it works with Notepad++ 7.6.6, I downgraded until bug is fixed.

  • When changing encodings . . .

    Locked
    7
    0 Votes
    7 Posts
    943 Views
    Brigham NarinsB

    @Meta-Chuh said:

    @Brigham-Narins

    yes, you are absolutely correct.

    i retested this with files with longer lines, and can reproduce this now, if word wrap is enabled, but not always.
    and it seems to depend on where the cursor is placed within the document, as well as the position where it scrolls to, seems to depend on the current size of the editor window.

    Exactly

    i’ve also tested the same on the scintilla demo editor scite 4.1.5 and it behaves the same, when using word wrap, a similar viewing size and the same document.

    Interesting

    i didn’t have time though, to look if anyone has already posted this behaviour at the scintilla feature request or issue tracker, and i don’t know if this is something that would be worked on if filed.

    many thanks and best regards.

    Well, thanks for your help. I really appreciate it.

  • File>Open always presents an unchangeable full screen

    3
    1 Votes
    3 Posts
    1k Views
    aaeneasA

    That seems to have fixed it. It looks like the only problem may have been my need for a lesson on how to use Windows. Many thanks!!!

  • Type German umlauts easily

    4
    0 Votes
    4 Posts
    2k Views
    Memo RandomM

    If you need a variety of accented characters, you could insert an ASCII chart in a new file, then copy/paste the needed characters.

    To do this, install the TextFX Character plugin. Then, from the TextFX menu heading, go to Tools -> Insert ASCII Chart or Character. You may need to change the encoding (via “Encoding” menu) to ANSI to have the characters display correctly.

  • 4 Votes
    12 Posts
    9k Views
    PeterJonesP

    @ArTruong said:

    Please help me how to open folder as Workspace when use folder path as parameter in command line?

    As of right now, AFAICT, that feature doesn’t exist yet. Sorry. (Notice the phrasing on the option you picked: “… on folder dropping” – since the command line is not “folder dropping”, the option doesn’t influence command-line opening.)

    Issue #4253 was submitted last year, and someone even made pull request #5100 to add a command-line option, but that hasn’t been incorporated into the main codebase. You might want to go add upvotes to those. (I just upvoted those.)