• How to enable side panel

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    toubeptT

    Thank you both. It turned out to be the Snippets plugin. The panel is back after enabling it. :) I’ve done other updates prior to this one and never lost that panel. I appreciate the help in getting it back.

  • How to change colors of highlights?

    3
    0 Votes
    3 Posts
    969 Views
    Kiichiro MatsushitaK

    Solved. Thank you!

  • I need help

    Locked
    2
    0 Votes
    2 Posts
    523 Views
    Terry RT

    @Andrew-Messier said:

    I have a file that I need to code in

    If you were to check the web you would have likely found it is most likely a Web Video Text Tracks File. See https://fileinfo.com/extension/vtt
    It is a text file, however I would suggest you need the appropriate editor to edit/create this type of file.

    Notepad++ is designed to edit text files, however it doesn’t necessarily understand the correct formatting of data within each file, so using it would IMO likely create a bad file.

    Terry

  • 1 Votes
    3 Posts
    735 Views
    David Ignacio Alcántara GarcíaD

    Oh my… I didn’t type the disjunction pipe (|) between the single line comment’s RE and the string literals’ one. How awful of me…
    Thank you very much, @MAPJe71 , yours works flawlessly. You’ve even added the restriction of multi-line comments’ delimiters to be at the start of the line, which I also missed.
    However, though not explicitly said in the AHK documentation, multi-line comments allow arbitrary indentation before their delimiters, so I’ve added that as well, a minor change.

    Also, single line comments’ delimiter in this language must not be preceded by non-space, so I’ve added the assertion (?<!\S) too, which is clearer than the original I used, (^|\s) (which is not even an assertion, but does the trick).
    And, regarding the flags, I think neither the multi-line nor single-line RE flags are explicitly needed in the expression, since they are both enabled by default in the parser (I’ve tested it), and the negated single-line flag can be bypassed by using the non-greedy wildcard, as I originally did. But, anyways, they clarify the purpose of the RE, and even if the Functions List engine changed its behavior regarding this matter, your RE would continue to work, so I’ll use the explicit flags as well.

    I should probably have done the comentExpr and classRange’s mainExpr with the extended RE flag, as the other larger ones, so this wouldn’t have happened.
    Sorry I posted for nothing, it was already night and I was losing all hope. Thank you for your quick response. ^^

    Also, regarding the displayMode attribute, I knew it wasn’t used as of now, but I had read it was reserved for future use, so I tried to guess something and see if it worked in the future. But now that you mention it, I’ve checked the other native parsers in the file and none of them include it, so I guess this implementation has perhaps been cancelled and I’ve removed it from mine as well. Thanks.

    Btw, I’ve noticed that global functions are unaffected by the commentExpr, yet not methods within classes. It’s not a problem at all, but it surprised me, so I’ll let it written here in case someone is puzzled by this as well. In a code like this:

    class myClass { /* myMethod() ... */ } /* myFunction() ... */

    myFunction will be found by the parser, yet being commented, but not myMethod, which is commented as well (regardless of the indentation of the comment delimiters).

  • mark the lines that you have n characters

    Locked
    4
    0 Votes
    4 Posts
    640 Views
    VivianjenylordV

    @guy038 so is friend, I help a lot the Regular expression, I thank you very much for your help

  • How to remove lines that do not contain ONLY alphanumeric characters.

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Terry RT

    @Nicholas-Wetzel said:

    one or more non alpha-numeric

    You could use the Mark feature, which I suggest as you may otherwise find that you have removed lines you did not wish to do so.

    So with Mark (under Search, then mark) have the Find What line containing
    [^0-9a-z]
    Make sure the ‘Bookmark line’ is ticked and have the Search Mode set to 'regular expression. Click on mark All.
    All lines containing at least one character which is NOT a number (0-9) or a alpha (a-z & A-Z) will be marked by a symbol at the start of a line (mine is a blue circle).

    At this point you could just select the option in the menu (under Search) called Bookmark, then Remove Bookmarked Lines, however i strongly suggest you check at least some of the bookmarked lines as I suspect you will find you may have forgotten other characters which you wish not to select. If so then they can also be added to the regex inside the [], before selecting Mark again, Clear Marks and trying again.

    Terry

  • 70% CPU-Usage on notepad-plus-plus.org o_O

    7
    0 Votes
    7 Posts
    5k Views
    erenseymenE

    Evernote Web Clipper extension is the culprit. Disable and try.

  • Can't Install Customize Toolbar

    Locked
    5
    0 Votes
    5 Posts
    801 Views
    gtshadowG

    Upgrading to newest version solved the problem. Thanks for your help, @Meta-Chuh

  • Problems with certain functionality on extremely large files

    Locked
    3
    0 Votes
    3 Posts
    652 Views
    Alan KilbornA

    Yea. “Big” data can be a problem. I’d go with Jim’s idea. In fact, I have in the past done this exact thing. Here’s a “cleaned up” version of some standalone Python I have, in the chance that it will help you:

    import re myfile = r'C:\foo\bar.txt' myregex = r'' lines_after_count = 2 countdown = 0 with open(myfile) as f: for line in f: line = line.rstrip() if re.search(myregex, line): print(line) countdown = lines_after_count elif countdown > 0: print(line) countdown -= 1
  • Extract email please

    Locked
    3
    0 Votes
    3 Posts
    860 Views
    rovitieR

    eternally thank you my friend

  • How to launch in chrome, etc??

    Locked
    5
    1 Votes
    5 Posts
    20k Views
    PeterJonesP

    @Steve-Lazarus said:

    I’ve been pulling my hair out trying to un-comment the shortcut file.

    That’s odd. My 7.6.6 puts those just fine when i remove the XML-comments wrapping those statements. Procedure = Close all Notepad++ instances; open single instance of Notepad++, edit the correct shortcuts.xml (%AppData%\Notepad++\shortcuts.xml for a normal installation), save, exit Notepad++, open Notepad++: should now show the updated Run menu.

    I mean, with it built into the View Menu, there’s no reason to use the shortcuts.xml/Run-menu version, but the old-style Run menu ones should work (and does for me) when properly enabled in v7.6.6.

  • 1 Votes
    5 Posts
    1k Views
    PeterJonesP

    @MickardEMT said:

    Thank You! I am headed to find some Python love LOL

    In case you haven’t found it yet, this post catalogs a couple of pages with example PythonScript code to insert a date-based stamp into your file. It would be pretty easy to modify for random-based instead.

    Again, good luck.

  • Context menu "Folder as Workspace"

    Locked
    1
    0 Votes
    1 Posts
    395 Views
    No one has replied
  • 0 Votes
    5 Posts
    1k Views
    Murillo NoletoM

    Thank you. I really forgot about Excel, can’t believe that haha. But it was really hard, since Excel’s ways to optimise the script made it so that some symbols disappear. So there I was again, no time for that.

    So what I did was actually really use Find and Replace on Notepad++. There were severals commands and a hundred lines for every command but the numbers on them were a few, well, compared to the rest. Then I opened a new note and wrote a “Find” to find all the possible numbers for a command and “replace” with the correct ones. It toke a long time. After that I just “found” and “replaced” the written command name by another one, and repeated that for all the commands.

    In the end I had all the notes for every command with a long find and replace in each one. It took me two hours to do the first and a few minutes to make the rest of it.

  • AUTOINST support in Notepad++ for verilog and system verilog

    Locked
    1
    0 Votes
    1 Posts
    782 Views
    No one has replied
  • Set max width of tab, show the list of file opened

    7
    0 Votes
    7 Posts
    1k Views
    ReporterXR

    @guy038 Thanks a lot for the detailed explanation. Thank you.

  • Is there a line length limit in Notepad++?

    Locked
    10
    2 Votes
    10 Posts
    11k Views
    Alan KilbornA

    @Stephen-Mann said:

    a way to auto-indent?

    Yes, there is an auto-indent checkbox in the Preferences.

  • No Longer Retaining Settings and Preferences

    6
    1 Votes
    6 Posts
    2k Views
    Meta ChuhM

    @MickardEMT

    yes, unfortunately textfx is not available as a fully functional 64 bit plugin.
    if you do not need to edit files with a filesize of 300-2048 mb, and you currently need textfx, or eventually other 32 bit only plugins, you are safer with the 32 bit version.

    for anything you would like to test at the 64 bit version of notepad++, you can use a complementary portable 64 bit version.
    (like the 32 bit portable you’ve tried above, but the 64 bit release)
    this is the way i have it. my main install is 7.6.6 32 bit, and additionally i use the 64 bit version, which can reside at the desktop, or at any other folder with write permissions, e.g. C:\PortableApps\Notepad++.

    (note: portable versions must not be copied to %ProgramFiles% or %ProgramFiles(x86)%)

  • Change theme based on current language in use

    2
    0 Votes
    2 Posts
    401 Views
    EkopalypseE

    @Thiago-Miranda

    Have some plug to change theme, based on language of open file?

    Afaik not - may I ask you what exactly you try to achieve? Maybe editing the stylers.xml/theme.xml will solve your issue.

  • 0 Votes
    7 Posts
    3k Views
    guy038G

    Hello, @vasile-caraus, @peterjones and All,

    Here is my attempt, which is able to match and delete all duplicate words, one at a time, in any line <p class="bebe">..........</p>

    SEARCH (?-s)(?:<p class="bebe">|\G).*?\h+((&\#\d+;|[\w'-])+)\h\K\h*\1[\h,;.]+(?=.*?</p>)

    REPLACE Leave EMPTY

    If you prefer to use the free spacing mode and in-line comments, here is the search regex :

    (?x) # FREE-SPACING mode (?-s) # The DOT represents a single STANDARD character (?:<p[ ]class="bebe">|\G ) # The string <p class="bebe"> or the CURRENT position, in a NON-CAPTURING group .*? # The SMALLEST range of STANDARD characters, ONLY \h+ # A NON null range of HORIZONTAL BLANK characters ( (&\#\d+;|[\w'-])+ ) # The string &#, followed with digit(s) + a SEMICOLON or a WORD character or a SINGLE QUOTE or a DASH # possibly REPEATED, so a WORD stored as GROUP 1 \h # One HORIZONTAL BLANK character \K # Everything ALREADY matched is DISCARDED \h* # A range, possibly NULL of HORIZONTAL BLANK character(s) \1 # The DUPLICATE word [\h,;.]+ # Any NON null range of HORIZONTAL BLANK character or a COMMA or a SEMICOLON or a DOT, possibly REPEATED (?=.*?</p>) # ONLY IF followed with the SMALLEST range of STANDARD characters + the STRING </p>) in the CURRENT line

    Just test these two identical versions, against the sample text, below :

    <p class="bebe">My husband and I are transforming our our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our our&#351; long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our&#351; our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our&#351; our&#351; long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our&#351; our&#337; long-neglected, creaky old Victorian house into our favorite place on earth.</p> --- <p class="bebe">My husband and I are transforming our &#351;our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming &#351;our our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming &#351;our &#351;our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming &#351;our &#337;our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming &#351;our our&#337; long-neglected, creaky old Victorian house into our favorite place on earth.</p> --- <p class="bebe">My husband and I are transforming our our&#351;our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our&#351;our our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our&#351; our&#351;our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our&#351;our our&#351; long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming &#351;our our&#351;our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our&#351;our &#351;our long-neglected, creaky old Victorian house into our favorite place on earth.</p> --- <p class="bebe">My husband and I are transforming our&#351;our our&#351;our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our&#351;our our&#337;our long-neglected, creaky old Victorian house into our favorite place on earth.</p> --- <p class="bebe">My husband and I are transforming our long-neglected long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our long-neglected long-neglected; creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our long-neglected long-neglected. creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our fisherman's fisherman's hut.</p> --- <p class="bebe">My husband and I are transforming our our long-neglected, creaky old old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our our long-neglected, creaky old Victorian house into our favorite place on earth.</p>

    To be logic, only the non empty lines 1, 4, 8, 17, and from 19 to 24 match !

    So, after a click on the Replace All button, exclusively, it should give the following text :

    <p class="bebe">My husband and I are transforming our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our our&#351; long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our&#351; our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our&#351; long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our&#351; our&#337; long-neglected, creaky old Victorian house into our favorite place on earth.</p> --- <p class="bebe">My husband and I are transforming our &#351;our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming &#351;our our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming &#351;our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming &#351;our &#337;our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming &#351;our our&#337; long-neglected, creaky old Victorian house into our favorite place on earth.</p> --- <p class="bebe">My husband and I are transforming our our&#351;our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our&#351;our our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our&#351; our&#351;our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our&#351;our our&#351; long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming &#351;our our&#351;our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our&#351;our &#351;our long-neglected, creaky old Victorian house into our favorite place on earth.</p> --- <p class="bebe">My husband and I are transforming our&#351;our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our&#351;our our&#337;our long-neglected, creaky old Victorian house into our favorite place on earth.</p> --- <p class="bebe">My husband and I are transforming our long-neglected creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our long-neglected creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our long-neglected creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our fisherman's hut.</p> --- <p class="bebe">My husband and I are transforming our long-neglected, creaky old Victorian house into our favorite place on earth.</p> <p class="bebe">My husband and I are transforming our long-neglected, creaky old Victorian house into our favorite place on earth.</p>

    As you noticed, in line 23, the two duplicate words our and old are, both, found and deleted ;-))

    Cheers,

    guy038