• How to find copy and replace "quoted text" from one text file to another

    31
    0 Votes
    31 Posts
    4k Views
    Mark OlsonM

    I’m glad the OP was able to find a solution, and I appreciate the spirit of patience, exploration and iterative improvement that they and everyone else involved in the discussion exhibited throughout this whole process. I have nothing but good things to say about the OP’s attitude, but I still want to make this observation in case they are interested in further improving upon the solution:

    While 1.5 seconds to process several thousand lines of code may seem fast, the script I posted above processes several hundred thousand lines of JSON in less than a second.

    I am saying this because I believe that the OP has the personality traits of a successful programmer, and it is absolutely within their power, if they believe it is worthwhile, to learn a scripting solution that would provide better performance.

  • Function List with Bash scripts not fully populating

    12
    0 Votes
    12 Posts
    1k Views
    F

    Ah, ok thanks. I am using a newer version, but I use the portable version and keep installing over previous installs. I wondered why the regex changes I was making were having no impact,

  • How to use SCI_DOCUMENT*START*END via button?

    3
    0 Votes
    3 Posts
    230 Views
    Dean-CorsoD

    @PeterJones

    Coolio! Thanks for that info. So I didn’t know what I can also use my macros with that Customize Toolbar plugin but it works great. Another new helpfully information. Thanks again!

  • Where is Config.xml located

    3
    0 Votes
    3 Posts
    472 Views
    Gary WineyG

    Thank you very much.

  • How to find and dock Search Results window at bottom of page

    3
    0 Votes
    3 Posts
    2k Views
    Gary WineyG

    Thank you Terry R, updating the Config.xml file did the trick.

  • Customize Toolbar - Update issue for grayed menus

    1
    1 Votes
    1 Posts
    236 Views
    No one has replied
  • Notepad++ 8.6: user extensions not saved

    3
    0 Votes
    3 Posts
    337 Views
    PeterJonesP

    @Norman-Eisenherz , @Brad-Stone ,

    it is fixed in the v8.6.1 Release Candidate available from the announcement thread.
    See point#3 in the announcement: it was a “regression” in v8.6 (which meant it was working in v8.5.8 then accidentally broken in v8.6) and is now fixed in v8.6.1.

  • 0 Votes
    19 Posts
    1k Views
    Hellena CrainicuH

    @guy038 happy new year, all notepad++ team !! The best editor on earth !

  • how to do mass replacement in many files?

    2
    0 Votes
    2 Posts
    344 Views
    PeterJonesP

    @Cindy-Cindy said in how to do mass replacement in many files?:

    Mail Merge

    Notepad++ does not have a mail merge feature. Using a scripting plugin like PythonScript, it can be implemented. Just search this forum for mail merge or mailmerge and you should find an implementation provided.

  • How to run a temporary marked file with an external app?

    6
    0 Votes
    6 Posts
    1k Views
    Dean-CorsoD

    @Alan-Kilborn

    Yes I tries that plugin TakeNotes too but in this case I only can change my temp tab to a saved tab (save as note) what I don’t want or I can just create a new note tab and need to copy & paste the content of my temp tab into the note tab press save button and run it then with any external app I want. All in all it’s almost same like to save the file manually and just too much detour operations = no good & liquid running workflow for me. So to answer your question, the plugin is not what I’m looking for too, unfortunately. But otherwise it’s OK when I just work with those note files (when I need it) to save them directly into a custom folder. Maybe not the best solution but better than nothing. Thanks again for that tip Alan.

  • How to normalize fancy Unicode text back to regular text?

    27
    0 Votes
    27 Posts
    5k Views
    PeterJonesP

    @Dean-Corso ,

    If your PythonScript console prompt is still ... instead of >>>, you will need to enter a blank line (no whitespace) to tell the console to end the loop. It won’t run the loop until you do.

  • can i ask for help

    3
    1 Votes
    3 Posts
    226 Views
    PeterJonesP

    @Lupus ,

    If you are in SEARCH MODE = Regular Expression, then the syntax you showed would probably have worked in certain cases. Or use .*? in the middle to make it less greedy. Or use \d+ in the middle to only allow integers (as @Mark-Olson said as I was typing).

    But you were basically there.

  • Can I do this with multi-edit?

    5
    1 Votes
    5 Posts
    390 Views
    mkupperM

    @curya One other hint to add to what @Coises posted is to use Notepad++'s hide-lines feature.

    Let’s say your files have 1000 lines each.

    Line 1 Line 2 Line 3 ... Line 998 Line 999 Line 1000

    Create a normal selection that spans lines 2 to 999, right click the selection, and select Hide Lines which is the last option. You will now see:

    Line 1 (with a green ⮞ arrow in front of it) Line 1000 (with a green ⮜ arrow in front of it)

    You can now create the column selection using lines 1 and 1000 as the guide for where to place it. The column oriented copy/paste will include the hidden lines as part of the selection.

    Click either of the green arrows to unhide the lines.

  • Remove all but first paragraph starting with similar string

    5
    1 Votes
    5 Posts
    1k Views
    TN MCT

    @PeterJones Will do. Thank you.

  • How do you get a macro recording to delete a certain number of lines?

    7
    1 Votes
    7 Posts
    771 Views
    mkupperM

    @Tibor-Sütsch, another way to do it that is similar to the first version I posted is:
    Search: (.*xyzzy.*\R)(?:.*\R)*?(.*plugh.*)
    Replace: nothing or empty

    That will delete all lines starting with one that contains the string xyzzy and ending with one that contains plugh. I put the (.*xyzzy.*\R) and (.*plugh.*) parts in parentheses so that you have the option of using either \1 and or \2 in the replacement part if you need to keep either of those. For example, to delete everything after xyzzy and up to and including plugh the replacement part would be \1.

  • Backup not updated

    2
    1 Votes
    2 Posts
    476 Views
  • how to highlight the text between [] ?

    4
    0 Votes
    4 Posts
    2k Views
    Eduardo PerezE

    Mark-Olson Thanks for the answer, but I need it to last between sessions

    PeterJones Thank you very much, this is just what I needed, I will use a modified language for my workgroup

  • hide scrollbar

    2
    0 Votes
    2 Posts
    452 Views
    PeterJonesP

    @Andre-Silva-0 ,

    The scrollbar in the editor portion of Notepad++ GUI is always on, even when there’s nothing to scroll. The Search/Replace dialog doesn’t have a scrollbar. And the Search Results window will only have a scrollbar if there’s more than one panel’s worth of text.

    If you are asking about how to code HTML to use or not use scroll bars, or how to code in [insert programming language here] to not use a scrollbar, that has nothing to do with the Notepad++ editor. We have a FAQ explaining why coding questions are off-topic, even though you’re typing the code with Notepad++.

  • Change toolbar icon theme

    2
    0 Votes
    2 Posts
    1k Views
    PeterJonesP

    @hhjarppfh said in Change toolbar icon theme:

    if I replace standard icons which are bitmaps it will work but the original fadeout effect (when the icon is disabled / faded out) will disappear.

    I disagree. The User Manual section on Toolbar Icon Customization includes instructions for how to replace the full set of toolbar icons, including the “disabled” versions for save, save all, cut, copy, paste, undo, redo, file monitoring, and the various macro buttons.

    But how on earth do I rename the theme? It would still show up as fluent in the preferences.

    (Aside: “Theme” is not the right term. “Theme”, in Notepad++, refers to the editor panel’s color scheme, as defined by the Style Configurator. Notepad++ doesn’t really have a word for a “set of toolbar icons”, so I used “set” in the user manual.)

    For the icons, either you choose one of the 5 built-in groups, or you have your custom icons enabled with the toolbarIcons.xml to enable them. If you want to “name” them, you can have different subdirectories (the user manual uses the example of myAwesomeIcons; the nppLegacyIconSet zipfile that you can get from the 8.4.2 release page contains examples of nppLegacyIcons\, message\, and kidsIcons\) and then you just call out the subdirectory name in the toolbarIcons.xml file.

    You cannot change enable/disable/switch the custom icon set from within the Notepad++ GUI – you have to exit Notepad++, edit or delete toolbarIcons.xml, and restart Notepad++. This was meant as a set-once-and-forget, not a change-often configuration, so the developer decided against a way to change them in the GUI.

    For example, here’s a screenshot of using the “message” set of icons from that zipfile:
    ecb6ec56-5a8b-4142-952a-de5575c1dfb8-image.png

    There is nothing to save, so Save button is disabled; because there is no icon message\save_disabled.ico in that bundle, it defaults to the "disabled"version of Save from the active Settings > Preferences > Toolbar setting.

    If I type something, then there is something to save, and it un-disables, showing the icon from the set:
    48c070e2-1e01-47d9-85f9-0b388a728031-image.png

    But since there is a message\redo_disabled.ico, the Redo button correctly shows disabled using that icon, from the beginning.

    If you have all 45 of the icon files in the folder referenced by toolbarIcons.xml, then the enabled/disabled will work on all the ones that have both states defined.