• Please Read This Before Posting

    Pinned Locked
    1
    7 Votes
    1 Posts
    7k Views
    No one has replied
  • v8.7 Search Results Missing

    Pinned
    15
    0 Votes
    15 Posts
    5k Views
    xomxX

    This v8.6.9-v8.7.2 issue has been fixed (GitHub commit).
    The fix will be included in the next Notepad++ version (probably v8.7.3).

    @PeterJones
    I would leave this topic pinned for a while longer until the fix reaches most N++ users.

  • HELP: Having trouble with Macros in v8.5.3 or later

    Pinned
    28
    2 Votes
    28 Posts
    18k Views
    Mike NewmanM

    Moderator Note: The contents of this post were moved to a separate topic, Macro works normally, but fails when shortcut is Ctrl+Shift+C, because it’s actually separate from the >=v8.5.3 issue for this Topic.

  • ctrl-W should close Notepad++ when no document is open

    3
    0 Votes
    3 Posts
    89 Views
    P

    @PeterJones thanks a lot… I was not able to find that myself :-)

  • Notepad ++ double context menu showing after uninstalling

    5
    0 Votes
    5 Posts
    99 Views
    mpheathM

    The Open With extension is not the Edit with Notepad++ extension. The later is NppShell.

    Open a cmd prompt and enter:

    reg delete "HKCU\Software\Classes\Applications\notepad++.exe"

    Press Return key and if no error, then it will prompt to delete the key and reply with yes.

    Open With creates this key and some others. Removing this key removes the orphaned Open With entry of Notepad++.

    Some installers add this key, the Notepad++ installer currently does not add this key so it does not remove it on uninstall.

    The duplicate entry is something else. Try:

    reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ini" /s

    and will print information about the entries to discover more details about the entries. You may see something like Applications\other.exe and if another ophaned entry, can use a similar command to remove it:

    reg delete "HKCU\Software\Classes\Applications\other.exe"

    Always use care with the registry. Ensure the commands are correct before executing them.

  • 2 Votes
    13 Posts
    382 Views
    Min LiuM

    @mpheath Cheers thank you for the detailed explanation! i will give this a go.

  • find and replace Gemini copy/paste coding data-path-to-node

    2
    0 Votes
    2 Posts
    82 Views
    PeterJonesP

    @Omar-A ,

    Search has a “regular expression” mode which will be able to search for anything matching a pattern. Since I assume you want to also delete the matching </span> to go with it, then I believe a regex like the following will work:
    FIND = <span data-path-to-node[^>]*>(.*?)</span>
    REPLACE = $1
    SEARCH MODE = Regular Expression

    That worked on the first three spans in your example (and would’ve worked on the fourth if the final /span> wasn’t missing the <)

  • Mass cursor movement via Python

    4
    0 Votes
    4 Posts
    79 Views
    M Andre Z EckenrodeM

    @Alan-Kilborn

    Thanks for the suggestion, though I think .lineUp() is sufficient for my purposes in this case, since I will need to repeatedly go up the same number of lines, and column isn’t a concern because I’ll always be landing on blank lines.

  • XML Tools Plugin - Can't get Pretty Print feature to work

    14
    0 Votes
    14 Posts
    12k Views
    Paul StokesP

    A very old thread I know, but this may help someone else.

    I was trying to use Pretty Print to format some MSOffice XML (from a PPT template that had been renamed as a zip). My initial attempts didn’t work “Nothing happened”. I eventually solved the problem when I realised that it wouldn’t work on files still stored in the zip. Notepad++ could read the files and displayed them as 2 looooog lines so I assumed (wrongly) that I could Preetify, edit and write back. In retrospect I should have realised that this was never going to work as the “file” I was working on was a temporary copy.

    Solution: Extract the file from the zip (as opposed to view the file in the zip without extracting properly) , Preetify (which worked of course), edit, save, copy back into the zip overwriting the original.

    An interesting corollary: Using the Windows Explorer zip functionality to open and view the contents (as opposed to extracting them) which uses a rather long temporary folder prefix - Pretty Print didn’t work.
    Using 7Zip which uses a much shorter temporary folder prefix - Pretty Print did work. Obviously, I was still working in a temporary copy which wouldn’t get saved back.

  • Cursor become black square at line selection

    8
    0 Votes
    8 Posts
    1k Views
    Andrzej JaworskiA

    @mpheath. Thank you so much. You found a simple and very effective solution. It works 100 percent. Now I see the desired cursor instead of the black square. Thanks again.

  • Screen goes blank when switching to Notepad++

    1
    0 Votes
    1 Posts
    33 Views
    No one has replied
  • Need help with finding and replacing

    2
    0 Votes
    2 Posts
    78 Views
    PeterJonesP

    @Chec-Pufos ,

    Your specs are more vague than you think they are.

    Assuming you want to replace any positive integer immediately after that specific I:max= with 987 and any positive integer immediately after that specific I:min= with 654, then it could be done with something like:
    FIND = (?-is)(Size\s+{\s*.*\R\s*I:max=)\d+(\s*.*\R\s*I:min=)\d+
    REPLACE = ${1}987${2}654
    SEARCH MODE = Regular Expression
    REPLACE IN FILES

    hopefully, you can figure out what to change in order to replace with values other than 987 or 654

    highly recommended: always back up your data before trying a regex that someone hands you; always try a new regex on a single file and make sure it behaves as you expect before trying on the full 30 files.

    ----

    Useful References Please Read Before Posting Template for Search/Replace Questions Formatting Forum Posts Notepad++ Online User Manual: Searching/Regex FAQ: Where to find other regular expressions (regex) documentation
  • Perl keywords "class" and "method" not recognised by Function List

    12
    0 Votes
    12 Posts
    576 Views
    J

    @PeterJones I am happy :)

  • 0 Votes
    3 Posts
    161 Views
    fml2F

    @h-jangra said in Feature Request / Question: Soft Wrap at Vertical Edge (Column 80) regardless of window size:

    I have added this in NppVim plugin [. . .]I am not sure how to set text width in notepad++

    That’s interesting! I’d think that a NP++ plugin can only do things that are also possible in NP++ itself since the underlying engine is the same.

  • How do I change font?

    16
    0 Votes
    16 Posts
    178k Views
    PeterJonesP

    @Cam-K said in How do I change font?:

    Noticed on newer versions of N++ that the “Enable global font” option is gone

    It’s not gone, just at the bottom of the list, because it’s not what most people should be using. See the global override dialog and the user manual for more on why you shouldn’t use it.

  • 0 Votes
    6 Posts
    180 Views
    4614

    @PeterJones Ok, Thank you. I see now Microsoft Excel is the way to go!

  • Macro problem

    3
    0 Votes
    3 Posts
    249 Views
    mpheathM

    @guy038

    https://www.scintilla.org/ScintillaDoc.html#SCI_COPY

    copying data to the clipboard

    Is document to the clipboard.

    https://www.scintilla.org/ScintillaDoc.html#SCI_PASTE

    pasting from the clipboard into the document

    Is clipboard to the document.

    Both functions relate to the document in the editor. The copy function will be good for the task though paste will not work with the search window.

    Instead of SCI_PASTE, could use the Run command to run an executable to insert the clipboard text into the search window.

    AutoIt3 script automate_columns++_search.au3 :

    ; Wait up to 3 seconds for the window. $hSearch = WinWait('Search in indicated region', '', 3) If $hSearch Then $sClip = ClipGet() ; get clipboard text ControlSetText($hSearch, '', 'Edit1', $sClip) ; set combo edit ControlClick($hSearch, '', 'Button7') ; click regex button ControlClick($hSearch, '', 'Button9') ; click count button $sCount = ControlGetText($hSearch, '', 'Static3') ; read label ClipPut($sCount) ; set clipboard text EndIf

    Adjust the title if the window text is localized.

    Compile to executable and then add to Run as a command. Get the command id with NppUISpy and insert into the shortcuts.xml file.

  • 0 Votes
    2 Posts
    179 Views
    PeterJonesP

    See that ︿ above the Name column of the Document List? Like most tabular data tools (spreadsheets, or the data tables in Wikipedia, or what have you), that indicates that the data is being sorted by that column (if you right click, and add the extension column, you can sort by either column). The sort indicator is a 3-state toggle: pointing up ︿ means it’s sorting in alphabetical order, pointing down ﹀ means it’s sorting in reverse-alphabetical, and gone means it’s sorted in the order of your tabs.

    up ︿ down ﹀ none 98a5bc45-296d-41cb-8baf-635e729f540f-image.png 4b34c789-9bf5-4185-8d46-eceebbf07ced-image.png 1a0eadaa-367e-4f37-a2e0-0b84748c5cb1-image.png

    Nothing changed in Notepad++ itself; you just clicked that header once (intentionally or accidentally), so it’s now sorting alphabetically, like it thought you wanted. You just have to click it two more times to get it to match the tab order.

  • Compare plugin, output a list of line numbers that do not match

    3
    0 Votes
    3 Posts
    207 Views
    Robert Or Janet DiebelR

    @PeterJones Thanx, much appreciated.

  • Print colors?

    3
    1 Votes
    3 Posts
    109 Views
    William EdwardsW

    @Coises Perfect! Thank you for your assistance…