• RegEx and Replace..

    5
    0 Votes
    5 Posts
    385 Views
    Alan KilbornA

    @Eddie-Adolfsson

    Just informationally, you can remove lines NOT containing a specific bit of text via finding it with the following method:

    Say you want to match lines that DON’T contain abc. Then your search expression might be ^(?-s)(?!.*abc).*\R. If you replace with nothing when you run a replacement you effectively remove those lines.

    Obviously you can replace abc with whatever you need. It doesn’t have to be constant text, it can be a regular expression of course.

  • CR/LF is appearing Notepad++ when reading Excel PRN file.

    2
    0 Votes
    2 Posts
    432 Views
    Alan KilbornA

    You aren’t “importing”, you are simply opening a file. Notepad++ isn’t doing anything to your file; whatever you are seeing is whatever is there already. Suggest you understand your data/process better…

  • What's the command to Open a Folder as Workspace?

    4
    1 Votes
    4 Posts
    2k Views
    Marios T.M

    @Alan-Kilborn said in What's the command to Open a Folder as Workspace?:

    @Marios-T

    Gurkibal could have narrowed it down better for you:

    notepad++ -openFoldersAsWorkspace c:\src\myProj01 c:\src\myProj02

    Haha!
    No it’s ok!
    Thanks both of you for your answers :)
    Problem solved!

  • Block paste?

    4
    0 Votes
    4 Posts
    2k Views
    Alan KilbornA

    @Stein-Garnes said in Block paste?:

    if I paste in npp (below or in another window) and then do a block copy/paste it works

    It would be nice to have a single-step way to do this. Perhaps a paste-special type thing where you can “Paste as rectangular block” (as long as what is in the clipboard is appropriate for that type of pasting).

  • Hang on MenuIcons + Hide menu bar + Right click

    2
    0 Votes
    2 Posts
    310 Views
    rinku singhR

    this can be fix via another plugin uninstall
    if there another plugin has culprit. ex.

    Notepad++ v7.8 (32-bit)
    Build time : Oct 5 2019 - 22:30:37
    Path : C:\Program Files\Notepad++\notepad++.exe
    Admin mode : OFF
    Local Conf mode : OFF
    OS Name : Windows 7 Ultimate (32-bit)
    OS Build : 7601.24289
    Plugins : 3P.dll BetterMultiSelection.dll Console_output.dll CustomFileMerge.dll MenuIcons.dll mimeTools.dll NppConverter.dll NppExport.dll NPPJSONViewer.dll nppRegEx.dll NppTextFX.dll Remove_dup_lines.dll

  • 0 Votes
    7 Posts
    707 Views
    EkopalypseE

    @Láng-Attila-D

    strictily speaking, UDL does not remain too but get automatically reapplied.
    One further thing you can do is to record a macro, save the action and assign
    a shortcut then you have to just press that shortcut and the regex marks get reapplied as well.

  • New UserDefinedLang - colorizing keywords but not params

    6
    0 Votes
    6 Posts
    306 Views
    EkopalypseE

    LOL :-D

  • Need Help

    2
    0 Votes
    2 Posts
    184 Views
    rinku singhR

    find what :items=".*"
    replace with :items=“0,0,0”
    mode : regular expression

  • RegEX in Notepad++ removing different text with \ in it

    4
    0 Votes
    4 Posts
    314 Views
    dinkumoilD

    @Magnum-Opus

    Your search term *\\EngramEntry_ doesn’t work because you used the quantifier * without a preceeding character to define the character(s) the quantifier should operate on.

    Because you want to match any characters before \EngramEntry_ you have to insert . which means an arbitrary character. This results in the search term:

    .*\\EngramEntry_.

    BUT your replacement string OverrideNamedEngramEntries=(EngramClassName="EngramEntry_ isn’t error-free as well. You need to escape the ( character because it’s a meta character in regular expressions. Thus your replacement string should be:

    OverrideNamedEngramEntries=\(EngramClassName="EngramEntry_

    If you would like to read a really good regular expression manual visit this site. At some points in the manual you have to know the exact flavour of regular expressions used at your site. Notepad++ uses the boost lib regex flavour.

  • spaces tabs

    6
    0 Votes
    6 Posts
    2k Views
    Alan KilbornA

    @James-Dunn said in spaces tabs:

    Space to Tab (leading) took care almost all of them. Space to tab (all) works as well.

    If it works then it must be that you have a setting of 3 spaces for each tab in your Preferences.

  • 0 Votes
    4 Posts
    245 Views
    Alan KilbornA

    Oops, embedded special characters (e.g $) would need to be “escaped” in the search expression; example \$. Note: NOT needed or desired in the “replace” part.

    Sorry for the omission.

  • -2 Votes
    2 Posts
    315 Views
    PeterJonesP

    There are so many things wrong with this…

    This is a forum about Notepad++, which is not the same thing as Windows notepad.exe. Your script is referencing the Microsoft product, not the open-source Notepad++ project that this forum is dedicated to. You seem to be asking how to code something. This is not a coding forum. You seem to be asking how to make a email attachment that automatically runs on someone else’s computer without their desire to have it run, and to have it do malicious or at least rude things. DON’T DO THIS

    This is tantamount to creating malware / virus / trojan / worm / etc.

    No, we are not going to help you “improve” this script to make malicious software.

  • new site rss?

    14
    0 Votes
    14 Posts
    1k Views
    PeterJonesP

    @Ekopalypse said in new site rss?:

    thought you were talking about this community/forum site

    If you read back through the conversation, I thought the same thing. It wasn’t until @patrickdrd 's penultimate post that I realized he meant the main site. :-)

  • RegEx to remove a part of numbers

    3
    0 Votes
    3 Posts
    198 Views
    rddimR

    @Alan-Kilborn
    Great, thank you very very much :)

  • 0 Votes
    4 Posts
    318 Views
    Alan KilbornA

    @Zsolt-Kántor said in There is no other way to associate files from NP++ Preferences only if you start the app with Admin rights?:

    I hope it will in the future version.

    Well, it doesn’t look good as (a) that pull request is from 2018 and (b) it is a closed pull request.

  • Write access forbidden

    12
    0 Votes
    12 Posts
    565 Views
    pnedevP

    I don’t know but I don’t think so.
    You can file a feature request here if you like:
    https://github.com/notepad-plus-plus/notepad-plus-plus/issues

    BR

  • Notepad++ 7.6 autoupdate disable

    17
    0 Votes
    17 Posts
    16k Views
    mtnrunner2M

    @Meta-Chuh said in Notepad++ 7.6 autoupdate disable:

    change the nextUpdateDate value in config.xml to the next millennium. nextUpdateDate=“30000101” for example

    Thanks for the workaround! It worked for me 🙂

  • Long time struggle with opening search results

    8
    0 Votes
    8 Posts
    419 Views
    Jean NobleJ

    @PeterJones Again many thanks for your effort and patience. I will try to work out your line of thought, but that will not be today, perhaps not even tomorrow. Busy as hell and in the mean time I work as I have done two years or so, which is rather a nuisance.
    But again I appreciate your helpful thinking.
    I will be back as soon as I can.
    Cheers.

  • NP process still active when closed

    4
    1 Votes
    4 Posts
    350 Views
    MeMyselfAnd_IM

    DSpellCheck is at v1.4.13, and I haven’t got jN installed, so I checked the other one.

    MenuSearch is the culprit. When I close NP, it disappears from the process tree as well. Sorted :)

  • Remove Spaces if match with keywords

    10
    0 Votes
    10 Posts
    363 Views
    Rajesh TR

    Thank you @gurikbal-singh .
    The information you provided matches few conditions.