• Preview available methods when coding in ZenScript

    8
    0 Votes
    8 Posts
    397 Views
    EkopalypseE

    @MAPJe71

    you could be right, we’ll see.

  • 0 Votes
    3 Posts
    141 Views
    Márk BirtalanM

    Thx for the help, really appreciate it :D

  • help just black screen in google play app

    3
    0 Votes
    3 Posts
    353 Views
    Ron EdmondsR

    OH no, he he i feel such a fool now, i always knew it was, but i had a mental block, of course it is you just reminded me DOH!!! THANK YOU SO MUCH. Put it down to the stroke i have down the RH side. thanx again

  • Auto editor

    2
    0 Votes
    2 Posts
    152 Views
    EkopalypseE

    @AlleXuSS-Gr

    No, this is nothing what editors normally do and I haven’t seen
    such a feature in other editors but who knows … maybe there is
    one out there which has this ability.

  • Delete all

    10
    0 Votes
    10 Posts
    2k Views
    guy038G

    Hi, @alan-kilborn and All,

    So, in order to take in account possible translations of the first line of a Find result search, I change my previous regex from :

    SEARCH (?-is)^(Search)\x20"|^(?!\x20\x20\u:\\).+\R|\x20\x20(.+)\x20\(\d+\x20hits?\)$

    To :

    SEARCH (?-is)^(\H.+)|^(?!\x20\x20\u:\\).+\R|^\x20\x20(.+)\x20\(\d+\x20.+\)$

    And I updated my previous post, of course !

    BR

    guy038

  • Help me find text from <div class HTML thank you all

    2
    0 Votes
    2 Posts
    243 Views
    EkopalypseE

    @Minh-Rau

    I’m not sure I understand what you try to achieve.
    What means take all text in this case?
    Can you explain in more detail what exactly you want to do?

  • Cannot delete Notepad++

    2
    0 Votes
    2 Posts
    455 Views
    EkopalypseE

    @Hennie-Marais

    normally files under c:\Progam files\ are installed applications,
    so the normal way would be to uninstall those instead of trying
    to delete them.
    By the way, did you install the official npp or the one provided
    by the windows store?

  • Why is np++ accessing counters.dat?

    6
    0 Votes
    6 Posts
    300 Views
    R

    @PeterJones Thanks for the suggestions: I didn’t realize the bit about -noPlugin. I ended up installing the newest version of np++ first, and then realizing the reason I hadn’t been using the x64 is because there are still plugins that don’t work with it, so installed latest x86 and went through each plugin.

    Not sure what to make about the file paths information, since I’m only interested in why notepad++ was opening this specific file, in IE’s temporary directory…

    Anyway, for anyone else who is (unreasonably?) paranoid, the culprit is “JSTool”. And, rather marvelously, it’s actually got an option that seems to control this, “Disable new version checking” (which, of course, makes sense why it’s accessing some temp internet dir file).

    I really appreciate the help (and pointers; plugins completed skipped my mind here). This is a trivial thing, but I’m actually pretty skittish about files being open I didn’t explicitly expect. (And as an aside, tend not to let things write to my SSD; on windows, everything’s reparse pointed elsewhere).

    tl;dr np++ is well behaved and lovely, JSTools hits counters.dat for its updates and has facility to disable the behavior. ;) TGIF!

    Edit: Is it possible to change this thread topic to “SOLVED” or the like? Feeling like such a newb…

  • CTLR+SHIFT+STAR/END shortcut isn't working

    2
    0 Votes
    2 Posts
    126 Views
    EkopalypseE

    @Anass-Chawki

    Check with the shortcut mapper window (Settings->Shortcut Mapper)
    to see if these shortcuts are still set or whether another app
    has “stolen” the shortcuts.

    639be4c0-bda3-4e5a-9c26-827a6e598ef3-image.png

  • SAVE all favorites?

    17
    0 Votes
    17 Posts
    870 Views
    Alan KilbornA

    @David-Bennett said in SAVE all favorites?:

    a N++ native solution exists it’s much better still

    Yes, I don’t think you’ll get anyone disagreeing with that.

  • Style Configuration

    2
    0 Votes
    2 Posts
    237 Views
    PeterJonesP

    @sebastian-alvarez-brandon ,

    The themes go in %AppData%\Notepad++\themes for normal installations, or in the themes subfolder of your cloud folder if you’ve set Settings > Preferences > Cloud, or in the themes subfolder below your notepad++.exe’s folder in a portable/zip edition.

    If you need help determining which setup you have, showing us the contents of the ? menu’s Debug Info (copy to clipboard and paste here), as well as the cloud preferences tab (Alt+PrintScreen and paste the image into your reply)

    If the installer didn’t have permission to write the themes to the appropriate location, or if you installed the “minimalist” zip edition (which doesn’t contain the fancy stuff), then those files might not be there. If they aren’t there, see if you can manually put them in that correct location. If they aren’t readable (or writeable) due to security policy, then there’s not much we can do for you, and you’ll have to talk with your I.T.

  • is there a color picker for the 64bit version 7.8.6?

    12
    1 Votes
    12 Posts
    6k Views
    guy038G

    Hi, @michael-vincent and All,

    Michael, don’t bother about it ! So, I first thought about using the old v2.0.0.0 version, where this displaying bug does not occur !

    Finally, after a few tries and a little bit of practice, despite this bug, it is still possible to select a color, with the color picker feature, using your last enhanced v2.1.0.2 version !

    I just need to move the mouse carefully, to prevent any premature soiling of the screen, in the desired area ;-))

    Cheers,

    guy038

  • How to make one empty line out of two?

    5
    0 Votes
    5 Posts
    276 Views
    EkopalypseE

    @Makwana-Prahlad

    I don’t think this helps as it does exactly the opposite from what
    I think the OP wants to have.

    @Claudia-Svenson

    No, the menu entry “Windows (CR LF)” is disabled/greyed out

    switch to UNIX line endings and back to Windows.
    To verify that you have windows eol only, press the ¶ from the toolbar or goto view->show symbol->show all characters

  • Find (+n) and replace

    4
    0 Votes
    4 Posts
    222 Views
    EkopalypseE

    @alexarda

    search_string = r “Bob’s Brilliant Blog”
    re_search_for = r"(?<={0}).*(?=</p>)".format(search_string)
    editor.rereplace(re_search_for, lambda m: ‘{0:<13}1’.format(m.group())

    search_string is only intended for easier editing if you use also want to search for other strings that follow the same pattern.

    re_search_for is then the actual search_string which contains a regex string assembled from 3 parts

    (?<={0}) the placeholder {0} is filled via the format function
    result is (?<=Bob’s Brilliant Blog) .* I’m sure you know what that means, match all or nothing, greedy (?=</p>) which means that a previous match only occures if this follows.

    All in all that means, look for anything with Bob’s Brilliant Blog
    begins and ends with </p>.

    editor.rereplace now searches via the regex pattern and forwards every match to
    a function that expects a match object as a parameter and is defined here with lambda.

    ‘{0:<13}1’.format(m.group()) finally means
    0 = what is contained in m.group() and :<13 means the strings of m.group
    is filled up with blanks of up to 13 characters if necessary.
    The 1 after it is simply appended.

    That’s it. :-)

    Now that I wrote it I think a safer search would be in a non-greedy manner.

    replace this

    r"(?<={0}).*(?=</p>)"

    with that

    r"(?<={0}).+?(?=</p>)"

    The changes means, there must be anything and the regex matches as less as possible to meat the requirement.

  • Copy, search and replace between 2 HTML files

    15
    0 Votes
    15 Posts
    758 Views
    Kosmos HuynhK

    Dear @guy038 ,

    I got the solution by correct quotations as the followings:

    gawk ‘BEGIN {n=0} NF {print > “File_“n”.txt”} !NF {n++}’ File_A.txt

    Best regards,
    Kosmos.

  • Bulk editing in Notepad ++ program?

    4
    0 Votes
    4 Posts
    5k Views
    PeterJonesP

    @darkenb ,

    I asked for text, you gave an image. I asked for “before” and “after” data separately; you put the “before” and “after” in the same screenshot – and even on second reading, I didn’t realize that the to in your image was the change from X to Y indicator rather than part of your text.

    The rest of what I wrote is to help you learn and to help you get better help. The help you receive will only be as good as the effort you put into asking for help.

    For your actual problem:

    FIND = <category>TEXT (\d)</category> REPLACE = <category>TEXT $1$1</category> Search Mode = regular expression

    (untested)

    I recommend you backup any files you try this on, and only try it on one file until everything is working.

    There are obvious assumptions in my example – that your text is literally TEXT every time, and that you’ll always only have one digit after text before </category> – but if my answer is not sufficient for your needs, you are going to have to do a better job of providing data that represents your data, and showing a willingness to learn.

  • Applying multiple commands on folder

    4
    0 Votes
    4 Posts
    237 Views
    Alan KilbornA

    @Anass-Chawki

    like running multiple shortcuts at a time

    Ah, you mean like multi-threading? I’m afraid not.

  • UDL Operators - unicode support?

    3
    0 Votes
    3 Posts
    323 Views
    moon6969M

    @PeterJones Thanks.
    I was hoping to use operators since they “glue” - my initial testing indicates that keywords need spaces to be recognised which is difficult to ensure in my case.

    I’ll check out the suggested script - might be a quick win if it’s fast enough on some of the decrepit hardware I need to support!

  • What ever happened to the plugin manager?

    2
    0 Votes
    2 Posts
    127 Views
    EkopalypseE

    @Kephri-13

    It was replaced by the Plugin Admin

  • Text Blocks without end

    5
    0 Votes
    5 Posts
    1k Views
    RailienR

    Thank you PeterJones,

    that’s it.
    I’ve even tried that, but somehow did’t see the functionality.