• Is it possible to edit several columns at one time?

    3
    1 Votes
    3 Posts
    194 Views
    P

    I understand.
    Thank you for your answer.

  • Replace selected string with string enclosed in double quotes

    4
    0 Votes
    4 Posts
    341 Views
    CoisesC

    @ConjugateGrad said in Replace selected string with string enclosed in double quotes:

    The In Selection option apparently does nothing in this context.

    In selection only applies to Replace All, not Find Next or Replace. If you look closely at the dialog, you can see the box drawn around In selection and Replace All to indicate that.

  • How to search only the columns of first row in <table>

    5
    -1 Votes
    5 Posts
    269 Views
    CoisesC

    @Paramesh-Paramesh said in How to search only the columns of first row in <table>:

    But, I have 1576 xml files in all files this changes has to be applied. Is this can be done??

    The second method I suggested, using Columns++, only works one file at a time.

    The first method, explained in the FAQ I linked, can be used for multiple files by using Search | Find in FIles (or, equivalently, by switching to the Find in Files tab in the Replace dialog).

    I strongly suggest that you make a copy of the folder containing these files and work on the copy first, as you won’t be able to use undo on multiple files if something goes wrong. Try to follow the FAQ, look at the relevant sections of the online manual, and see what you can work out.

    You might need more help, and it’s OK to ask… after you try your best on your own first and can show us what you’re trying and what isn’t working.

  • Toolbar icons are missing

    10
    0 Votes
    10 Posts
    2k Views
    PeterJonesP

    @palur76 ,

    If that helped, then you were using CustomizeToolbar plugin. Why did you say you weren’t?

  • 0 Votes
    4 Posts
    624 Views
    EkopalypseE

    @mabangde0

    see here for a solution to your problem

  • Newest update to NP++ and all my action icons are gone

    3
    0 Votes
    3 Posts
    307 Views
    Frank Clarke 0F

    I have that button marked in Toolbars. Apparently I’m at 4.2 for Customize_Toolbar.

    My debug info:
    Notepad++ v8.6.9 (32-bit)
    Build time : Jul 12 2024 - 05:08:26
    Path : C:\Program Files (x86)\Notepad++\notepad++.exe
    Command Line :
    Admin mode : OFF
    Local Conf mode : OFF
    Cloud Config : OFF
    Periodic Backup : ON
    OS Name : Windows 10 Home (64-bit)
    OS Version : 22H2
    OS Build : 19045.4780
    Current ANSI codepage : 1252
    Plugins :
    DSpellCheck (1.4.16)
    mimeTools (3.1)
    NppCalc (1.5)
    NppConverter (4.6)
    NppExport (0.4)
    NppFTP (0.29.6)
    NppTextFX (0.2.6)
    PreviewHTML (1.3.2)
    SpellChecker (1.3.3)
    Tidy2 (0.2)
    _CustomizeToolbar (4.2)

  • I can't record macros.

    3
    0 Votes
    3 Posts
    226 Views
    Luis Piña IIIL

    For some reason today it works. I have restarted many times yesterday. Here is my debug info:

    Notepad++ v8.6.8 (32-bit) Build time : Jun 4 2024 - 00:29:00 Path : C:\Program Files (x86)\Notepad++\notepad++.exe Command Line : Admin mode : OFF Local Conf mode : OFF Cloud Config : OFF Periodic Backup : ON OS Name : Windows 11 Home (64-bit) OS Version : 23H2 OS Build : 22631.4037 Current ANSI codepage : 1252 Plugins : FoldingLineHider (1.1) PythonScript (2)
  • Can i copy individual lines to clipboard

    3
    0 Votes
    3 Posts
    154 Views
    __

    @PeterJones Oke very thanks, have a good day.

  • 1 Votes
    3 Posts
    145 Views
    Billy GatesB

    Hi @Alan-Kilborn

    yes that works!
    Thank you very much!

  • large selection behavior changed?

    5
    0 Votes
    5 Posts
    266 Views
    mkupperM

    @TBugReporter It may also be an issue that is happening this week. The second Tuesday of a month is Microsoft’s “Update Tuesday”. Microsoft’s update process will lock the c: file system, do a bunch of stuff, and then unlock for a moment.

    My desktop is getting clobbered and it’s particularly noticeable when dealing with large files in Notepad++. For example, today Notepad++ performance is sluggish but usable for normal size files. I opened a 175 mb (3 million line) file in Notepad++. Ctrl+End to get to the bottom of the file hung Notepad++ for about a minute. Now when I switch to another tab for a normal file it snaps over to the new tab. I switch back to the large file and it hangs for eight or nine seconds before it shows me the tab.

    It does seem like Notepad++ and/or Scintilla does an unusual amount of something to figure out what needs to get painted when the view window is at the bottom of a large file. I ran a profiler but there’s next to zero disk I/O from Notepad++ when switching tabs. It checks the files on-disk size and time stamps as part of switching but that operation took 13 microseconds. Without a bunch of time consuming digging, I have no idea why Notepad++ is stalling for eight or nine seconds.

    I did verify that it’s the scroll window being at the bottom of the file and not the caret position. I also saw that Notepad++ hangs with seemingly zero system calls and then after eight or nine seconds there is that 13 microsecond burst of activity.

    I suspect the machine will get back to its normal speedy self once the Windows updates plus Microsoft Defender stuff is done.

  • Define File type

    2
    0 Votes
    2 Posts
    168 Views
    Mark OlsonM

    @Morvyn-Finch

    Yes, you can restrict the files you want using the Filters field, as described in this documentation.

    That said, you are most likely going to be very disappointed if you try to search PDFs or Word documents with Notepad++, because Notepad++ is a text editor, not a word processor.

    If you want to search all kinds of documents (not just text documents), I recommend dnGrep, a free and open-source file searching tool. That said, further discussion of dnGrep would be off-topic for this forum.

  • Text file search and replace using lookup table

    3
    0 Votes
    3 Posts
    298 Views
    nazooks99N

    @Alan-Kilborn
    I see, sorry about that, I had searched around but didn’t find what I was looking for, probably didn’t search for the right keywords. This works perfectly, you’re a life saver! Thanks so much!!!

  • HTML code not running properly

    3
    0 Votes
    3 Posts
    158 Views
    Amir CA

    @Coises
    Oh I see went back and fixed those errors and it’s working now appreciate it

  • how to run a NPPExec script with autohotkey

    6
    0 Votes
    6 Posts
    405 Views
    CoisesC

    It looks like NppExec can process a message, NPEM_NPPEXEC, instructing it to run a script:

    https://github.com/d0vgan/nppexec/blob/66e6ad1a238588c92652a0d14230c2ed8cdb44a1/NppExec/src/PluginCommunication/NppExecPluginInterface.cpp#L168

    and as far as I can make out, that’s in a section of code that would be executed when you send NPPM_MSGTOPLUGIN to Notepad++ identifying the source module name as NppExec. I couldn’t find documentation on NPEM_NPPEXEC, though.

    I don’t use either NppExec or AutoHotKey; but my memory is that AutoHotKey can send a message to a window. If it can construct the necessary message — and if NppExec does what I think it must do when it receives such a message — then that should be a way to trigger an NppExec script directly from AutoHotKey.

    Beyond that, you’ll have to ask people more familiar with NppExec and AutoHotKey.

  • Search Result to be the word, not the whole line

    4
    0 Votes
    4 Posts
    185 Views
    PeterJonesP

    @Robert-Or-Janet-Diebel ,

    Now I want to get all highlighted words from the first search in a list of just words.

    Instead of Find All in Current Document, you could use Search > Mark, then Mark All, then Copy Marked Text – this will put all the matched terms into the clipboard, and then you could paste into a new document (or wherever you wanted it).

    With the three lines you showed, and the regex you showed, when I follow that sequence, my Clipboard now contains:

    φιλουσιν φιλων φιλων φιλουσιν

    … which is what I think you want.

  • Shortcut-key for selecting word (i.e. double-click)

    9
    0 Votes
    9 Posts
    1k Views
    G

    @Alan-Kilborn Nice! Thank you very much!

  • Regex: How to remove enewline character from a particular html tags?

    9
    0 Votes
    9 Posts
    475 Views
    Hellena CrainicuH

    The best solution is this:

    (?-si:<p class=".+?">|(?!\A)\G)(?s-i:(?!</p>).)*?\K\s+

    General regex: (?-si:BSR|(?!\A)\G)(?s-i:(?!ESR).)*?\KFR

  • help please

    4
    0 Votes
    4 Posts
    231 Views
    mkupperM

    @mohammad-maaitah Please review FAQ: Periodic Backup vs AutoSave. It’s possible you already have enabled one or more of Notepad++'s backup mechanisms in the past and Notepad++ has been saving copies for you.

    If you discover that have not enabled any of Notepad++'s backup systems then it’s a good time to enable them. For performance and disk space reasons they are not enabled by default.

  • Modifying existing language settings

    6
    0 Votes
    6 Posts
    4k Views
    PeterJonesP

    For future readers:

    Note from the future: In 2024, the HTML TAG style does have a box for user-defined keyword slots. I don’t remember when it was added, but it’s been there for a while now (I can guarantee at least since v8.6.6, but I think a lot longer than that). So if you want this, start by upgrading to the most recent Notepad++.

    Further, as I say here, I recently learned that the HTML lexer has the ability to enable “substyles” for the HTML TAG style, which you can assign your own color and your own list of keywords – so you could style your custom tags differently than the builtin tags if you want. Unfortunately, Notepad++ doesn’t (yet) enable those substyles, so you cannot do it natively in Notepad++. In this post, I share a script for the PythonScript which enables substyles – that specific post gives the example for PHP, but if you want to do the same for HTML, you would follow the same instruction, except edit the lists in class HTML_SubstyleLexer and append your colors/list definitions to the SCE_H_TAG in that class’s colorize.

  • Can't define php color for functions

    4
    0 Votes
    4 Posts
    512 Views
    PeterJonesP

    Update from the future:

    this post shares instructions for using the PythonScript plugin to add one or more “substyles” to the PHP lexer, so that you can define your own PHP keyword lists with their own custom colors.