• 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
    430 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
    880 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
    12k 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
    446 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

  • Select, grab and move - faster way

    14
    0 Votes
    14 Posts
    3k Views
    learner9753L

    Hello @guy038
    Thanks for your help and tips. But this text was only an example. This kind of work is only to do “by hand”, because things are not always so simple. Numbers are not always matching text with that simple order as in my example…

  • keyboard shortcut to minimize all the line at once ?

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Dianno ZXD

    Awesome ,thanks.

  • Plugins gone?!

    Locked
    2
    1 Votes
    2 Posts
    3k Views
    Meta ChuhM

    welcome to the notepad++ community, @zejjnt

    if you have recently updated to notepad++ 7.6.6 from e.g. 7.5.9:
    the plugin folder structure has changed a bit, due to user demands of making the plugins folder more sorted and human readable.

    before, the plugins folder was a single folder, where all plugin dlls and eventually their additional files were stored.
    this caused many users not to know which files belonged to which plugin, making a manual plugin cleanup very difficult without performing a complete clean re-install.

    now, the plugins folder is more structured, separating each plugin into a dedicated folder, which matches the plugins’s .dll name.

    solutions:

    to migrate old plugins:
    (compatible plugins only)

    please go to plugins > open plugins folder... to open up your plugins folder in windows explorer. look for a plugin dll name of a plugin you might need, e.g. HexEditor.dll. create a folder with the dll’s name, but without the .dll extension, e.g. HexEditor. move your plugin dll to this folder, e.g. HexEditor.dll to plugins\HexEditor. if existent and known, move additional plugin helper files to the new folder as well. (HexEditor will not have any)

    to reinstall supported plugins:

    please go to plugins > plugins admin. search for your desired plugins and select them. press install to install your desired and available plugins.

    note: there are more plugins compatible with 7.6.6 than provided at the plugins admin available plugins list.
    please search at our community for additional manual install instructions for many of those plugins.
    if you can’t find it, please open a new topic, we will help you on all plugins which are known to run on newer versions of notepad++.

    direct answers:

    And the plugin manager and plugin admin detect different updates

    important note: do not use the old plugin manager on newer versions of notepad++, like 7.6.6, as it is incompatible, due to not being aware of the new folder structure.
    as for now, plugin manager is no longer maintained, and serves it’s purpose only for versions 7.5.9 and below.

    And when I remove EVERYTHING and start fresh, there is no plugin administration at all so yes, I have tried to start over.

    important note: if you remove “EVERYTHING” you will also remove the plugins admin’s nppPluginList.dll, which contains the compatible plugin list, resulting in the disappearance of plugins admin from the plugins menu.

    many thanks and best regards.

  • Macro to switch indentation

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    dailD

    Another option would be LuaScript. Edit the startup file, add the following, and restart.

    npp.AddShortcut("Toggle Indentation", "Ctrl+E", function() editor.UseTabs = not editor.UseTabs end)
  • Ruby Blue style and syntax highlighting

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    PeterJonesP

    @Meta-Chuh said:

    you can open up both files in notepad++ to copy and customise all required missing parts from stylers.xml to Ruby Blue.xml.

    @megamanzteam : For the changes that @Meta-Chuh recommended to take effect, you have to save the Ruby Blue.xml, then exit all instances of Notepad++ and reload Notepad++. You might find it easier, after you’ve copied the JSON section from stylers.xml into Ruby Blue.xml to immediately save-and-exit. Once you’re back into Notepad++, Settings > Style Configurator should list JSON again, and you can tweak the JSON colors to your heart’s content.

  • Keys/Buttons

    Locked
    2
    0 Votes
    2 Posts
    477 Views
    Alan KilbornA

    @Michał-Gumiński

    Be assured that all your answers may be found here.

  • floppy disc icon to the same colour

    Locked
    4
    0 Votes
    4 Posts
    978 Views
    Alan KilbornA

    @Geoffrey-Taylor

    I don’t believe that plugin lends a dynamic nature to the toolbar icons.

  • Updated and lost all...

    17
    0 Votes
    17 Posts
    3k Views
    PeterJonesP

    @Michael4141 said:

    isn’t it reasonable to take it that the program actually makes the backup it confirms it is supposed to be making

    Did you read my description of what goes on under each of the different options? I made that description based on experiments I performed in the midst of writing up yesterday’s post. Those options behave exactly as I described when I used them as described. As I said before, Periodic Backups is the “Notepad++ will save a copy of the file in a temporary location every # seconds, until such time as SAVE is hit, at which point, its job is done so it can be deleted”. Backup on save is the “Notepad++ will save an extra copy of your file, either in the same directory as your file (simple), or a subdirectory with multiple copies (verbose), or in a custom backup directory for either simple or verbose”.

    If you use those settings, and they behave as I described, then I don’t understand why you are still complaining. If you use those settings, and they don’t behave as I described, then you are ignoring me (*), and / or otherwise not providing the information requested to help us help you. If you don’t want help, that’s fine; but just admit that, and move into the Boycott Notepad++ section of the forum if you want to continue complaining. If you do want help, then we are quite happy to help you: I wouldn’t have spent so much time on that response if I didn’t want to help. If you do want help, then provide the description of what’s not working for you – exactly what the behavior is that you see, and exactly what settings you have when you see that behavior.

    *: To quote what I said earlier:

    Do your experiments match this? If not, please give us the ?-menu’s Debug Info > Copy debug info into clipboard, as well as giving us screenshots of the config boxes, and appropriate directories listings.

    You also said,

    BTW, another program I use is Libre Office and it actually does make a backup of the file currently open, when it is supposed to. So…

    As far as I can tell, Notepad++ is behaving exactly as I expect. If I turn on periodic backup, it keeps a temporary backup of any file I haven’t saved yet, in the %appdata%\notepad++\backup. If I turn on backup-on-save, every time I hit save, it updates the backup file in either the same folder as the original file, in the NppBackup subfolder of that folder, or in the directory I specify. If that’s not what it’s doing for you, describe your exact settings, and what files you see in those locations at the various points in time (while there are files that are edited but not saved, and immediately after hitting save)

    Maybe I just expect too much. {sigh}

    You haven’t told us how it is not behaving according to your expectations.

    But maybe I expect to much of people asking for help. {sigh}

  • Inconsistent tab behavior when using replace by space

    Locked
    12
    0 Votes
    12 Posts
    2k Views
    PeterJonesP

    @John-Booth said:

    More details in case someone else should run into this down the road:

    Thanks for coming back with that. It will hopefully help future readers of this thread.

    Glad it’s working for you now!

  • Trouble Opening XML in Internet Explorer

    Locked
    2
    0 Votes
    2 Posts
    478 Views
  • Search for special characters

    Locked
    2
    0 Votes
    2 Posts
    887 Views
    Alan KilbornA

    @Peter-Blacky

    Open your batch file into a Notepad++ tab.

    Press ctrl+f to open the Find window.

    Put \ in the Find what box.

    Untick the Match whole word only option box.

    Select Normal for the Search mode.

    Press the Find Next button.