• Auto Find and Replace 6 Keywords in a Script between to different pages

    15
    0 Votes
    15 Posts
    1k Views
    PeterJonesP

    @Alan-Kilborn said in Auto Find and Replace 6 Keywords in a Script between to different pages:

    you get no background differentiation with it

    Ah, right, I forgot that. So using the ```txt will keep it in the backgrounded box, whereas ```z will make it blend in more with normal text.

  • Can't use the macro on new window

    5
    0 Votes
    5 Posts
    389 Views
    PeterJonesP

    @Neil-Schipper said in Can't use the macro on new window:

    someone was sufficiently annoyed by the inability to secure active-but-volatile settings (prone to being lost on a power outage) that they provided a script to execute a quit-restart cycle

    Specifically, in Notepad++ Restart Shortcut Key discussion.

  • Notepad sees files with .tcl extension as shell file

    11
    0 Votes
    11 Posts
    1k Views
    Alan KilbornA

    @Gor-Abgaryan-0 said in Notepad sees files with .tcl extension as shell file:

    And what about <#!/bin/sh> at the beginning of the tcl file? Is there a way to read this file as a TCL file?
    There were a feedback saying there is no way.

    I still don’t believe this is currently possible, but I think a change is coming soon to Notepad++ to allow this to happen.

    This ISSUE that came up recently describes a similar situation and links to some others discussing the impending code change.

  • Sentences and words

    4
    0 Votes
    4 Posts
    316 Views
    Alan KilbornA

    @Neil-Schipper

    Isn’t the number of “paragraphs” simply the number of files then?

    OP did not ask for paragraph count.

    Correct. I was merely commenting on that, not supplying any kind of “solution” for it.

    <run of non-periods><period> is not a great definition of a sentence due to false positives with decimal numbers.… among other things.

    We know this… I was wanting the OP to try the solution and point this out, at which time we would explain that they are pretty much asking for an impossible task…at least with what Notepad++ can do.

    However, if the need is not for a 100% exact count, but possibly one that is somewhat close, simple algorithms might work.

  • Sort lines ascending

    4
    0 Votes
    4 Posts
    276 Views
    Neil SchipperN

    @Jose-Emilio-Osorio The (many!) sort commands are located under (menu) Edit -> Line operations.

  • Error in page display

    4
    0 Votes
    4 Posts
    278 Views
    Neil SchipperN

    @PeterJones said in Error in page display:

    the pilcrow symbol ¶ on the toolbar

    That word is new to me, thanks. It also has quite a cute synonym, paraph:

    The pilcrow, ¶, is a typographical character that marks the start of a paragraph. It is also called the paragraph mark (or sign or symbol), paraph, or blind P.

    So I learned two new words today. It remains to be seen if I’ll still know them in 3 days…

  • Macro not recording/performing Find and Replace task.

    4
    0 Votes
    4 Posts
    367 Views
    Neil SchipperN

    @Aaron-Bishdou Treat the tuning of a Find & Replace operation as a separate and preliminary task before thinking about macros. It is rare to have to examine npp’s representation of F&R ops in shortcuts.xml at all.

    The transformation you are hoping for does not seem complex. If you want help, show explicitly the expressions you are trying in the Find and the Replace fields along perhaps with optional settings in the F&R dialog.

    Also, think about whether your sample text captures all the anticipated variation (field names & lengths) in your log files.

  • NppFTP No folder display

    3
    0 Votes
    3 Posts
    314 Views
    Greg HerzbergG

    @PeterJones
    TY. I’ll have to familiarize myself with Putty’s built-in tool. Failing that, I’ll try the Plugin’s forum.

    Hmm, the Openssh-sftp-server had vanished from the afflicted router. That’s odd. Reinstalling that package fixed the folder display issue.

  • How to disable red line into last version of notepad++

    3
    -1 Votes
    3 Posts
    682 Views
    Massimo PiscopoM

    @PeterJones solved, thank you REALLY much <3

  • 0 Votes
    4 Posts
    8k Views
    Neculai I. FantanaruN

    The same problem here:

    770e8938-1548-46fa-80ef-bdbdfb00cbd2-image.png

  • Jump to first line

    3
    0 Votes
    3 Posts
    257 Views
    Shar HakimzadehS

    @Michael-Vincent Thanks! It worked!

  • Selecting and tagging with custom tags

    2
    0 Votes
    2 Posts
    2k Views
    PeterJonesP

    @Brennan-OBrien ,

    Well, the easiest way is to install the HTML Tag Plugin, which has buttons which do just that.

    But if you’re really thinking about the generic procedure, rather than the <a>...</a> wrapping specifically, you could record a macro:

    Select Text Macro > Start Recording Cut (Ctrl+X or menu equivalent) type <a> paste (Ctrl+V or menu equivalent) type </a> Macro > Stop Recording Macro > Save Current Recorded Macro optionally assign a keyboard shortcut that you will remember.

    From then on, using that macro (from the Macro menu or from the keyboard shortcut) will place the selected text between <a>...</a>. Since the macro is saved in shortcuts.xml, it will still be available the next time your run Notepad++.

    (Please note that this macro does clobber your current clipboard contents; if this bothers you, using the HTML Tag plugin will be better)

    Online UserManual: Macro Overview: https://npp-user-manual.org/docs/macros/ Online UserManual: shortcuts.xml macro syntax: https://npp-user-manual.org/docs/config-files/#macros
  • Notepad++ is getting slower

    4
    0 Votes
    4 Posts
    612 Views
    PeterJonesP

    @inu20 said in Notepad++ is getting slower:

    After one of instance been closed, a new Notepad++ process created and running in the background, and as the screenshot at the original post, the list might increases over than 10 processes in a day and can only be killed one by one by manually or by restart the PC.

    I cannot replicate that, even when I switched to “always start in new instance” checked to try to replicate your experience. When I start a new instance (whether it’s by using Windows Explorer to open a file in Notepad++, or whether I move or copy the active tab in one Notepad++ instance into a new instance), a new notepad++.exe shows up in my task manager. But as soon as I exit that instance (File > Exit, or clicking on the window close-X in the upper right), the task is closed and my task manager shows one fewer notepad++.exe in the list.

    I see that your original screenshot showed a lot of plugins. You might try seeing if running without plugins (use the -noPlugin option when you launch Notepad++) fixes the problem. If it does, you can narrow it down to see which plugin is causing the problem. You also might try upgrading to v8.4.6.

  • Remove certain section from a lot of links

    4
    0 Votes
    4 Posts
    423 Views
    gerdb42G

    @Amigo-Barrio as Ekopalypse already stated you need to look for some kind of pattern to identify what has to be removed. In your case you have a fixed URL followed by some arbitrary digits followed by the name of a .jpg image. You may achieve the replacement using a Regular Expression (regex for short). The following will pick the entire URL, extract the fixed part and the .jpg name and re-join them omitting the digits:

    Search for: (https://dev.umb-schiffsmodelle.com/wp-content/uploads/2022/10/)\d+/(.+.jpg)
    Replace with: $1$2

    To fine-tune the regex you may want to have a look at this FAQ.

  • Highlight keyword followed by space

    3
    0 Votes
    3 Posts
    336 Views
    G

    @PeterJones

    Thanks

  • notepad was reloaded by night and opened but closed all opened tabs

    3
    0 Votes
    3 Posts
    408 Views
    Sergio VikS

    @PeterJones Hi, thank you very much i added Autosave plugin and all works good. But i remember i already added this plugin earlier, but i do not know how this plugin was removed.

  • A regex question

    2
    0 Votes
    2 Posts
    164 Views
    guy038G

    Hello, @jijo,

    Easy with regexes !

    So, open the Replace dialog ( Ctrl + H )

    SEARCH (data#1191 )\(dodo\).+

    REPLACE \1dodo

    Tick the Wrap aound option

    Select the Regular expression search mode

    Click once on the Replace All button

    Voila !

    Best Regards

    guy038

  • Debugging macros

    2
    0 Votes
    2 Posts
    271 Views
    Alan KilbornA

    @sunvis0r

    When you find your macros becoming large and unwieldy, it may be time to move to scripting. Notepad++ has some excellent scripting plugins, in Python and Lua. But…scripting isn’t for everyone.

  • Removing white strip from autocomplete window.

    3
    0 Votes
    3 Posts
    1k Views
    Главный РедакторГ

    @PeterJones ,
    I’m using Notepad++ 8.4.6. on Windows 10 Pro 22H2.

  • Display Change History setting affects Printing

    2
    0 Votes
    2 Posts
    393 Views
    PeterJonesP

    @Kevin-Golde said in Display Change History setting affects Printing:

    Has anyone else had this problem?

    Our Change History FAQ describes that problem, and links to the existing bug report for the problem.