• Notepad ++ Crashed when I open a file while it's running a Regex

    1
    0 Votes
    1 Posts
    153 Views
    No one has replied
  • find in files with regular expression doesn't show result if only 1 hit

    2
    0 Votes
    2 Posts
    202 Views
    Alan KilbornA

    @hub-kurvers

    How about showing a demo of that, where you provide specifics?
    Some test data, the actual regex used, that kind of thing?
    Otherwise, I don’t think anyone will be able to help you.

  • Interrupted list

    13
    0 Votes
    13 Posts
    568 Views
    Dumitru S.D

    Hi to all!

    Thank you a lot for your very comprehensive response.
    I appreciate it.

    Have a nice day today!
    Best regards,
    Dumitru

  • Closed one of my old tab in Notepad++

    4
    0 Votes
    4 Posts
    208 Views
    PeterJonesP

    @Siddharth-J ,

    Scan the directory that you mentioned. the filename will be based on the original file “name” (new 1 or whatever it was) plus some timestamp.

    In the next rev of the online User Manual, this will be more explicit:
    012a6da3-be5c-4421-9c14-3b1dbf289786-image.png

  • How to copy a column with 1.5M lines.

    5
    0 Votes
    5 Posts
    2k Views
    Alan KilbornA

    @Michel-Vincent said in How to copy a column with 1.5M lines.:

    Can you guide as to where I should put the macro?

    There are other macros in shortcuts.xml (unless you’ve deleted all of them).
    You’d insert something new after the last </Macro> line in the file.

  • Open Folder as Workspace... fails to do anything

    3
    1 Votes
    3 Posts
    2k Views
    Waqas AhmedW

    Thank you @David-Ornelles I was able to solve the same problem following your reply. “The left margin was dragged all the way to the left, hiding the “Folder as Workspace” tab. Carefully dragging the inner edge of the left border towards the right made it visible again. No one’s fault but my own.”

  • Can't undo after saving file

    2
    0 Votes
    2 Posts
    192 Views
    nileplumbN

    Seems to be related to saving in with an active compare open via the compare plugin

    https://github.com/pnedev/compare-plugin/issues/248

  • How do I replace a block of text with another ?

    13
    0 Votes
    13 Posts
    5k Views
    TroshinDVT

    @Scott-Nielson said in How do I replace a block of text with another ?:

    @Alan-Kilborn and @PeterJones I saw that Npp has something about creating a template. How do I create a template that I can add or use for multiple files?
    I want the template to have some CSS and JavaScript (which I’ll skip adding here since I think it is unimportant to type all that) at the top apart from these meta tags:-

    Adds the possibility to add code snippets to the current document by selecting them from a simple list.
    Author: Frank Fesevur
    Homepage: https://www.fesevur.com/nppsnippets

  • Integration of a script writen in Python

    27
    0 Votes
    27 Posts
    6k Views
    PeterJonesP

    @PeterJones said in Integration of a script writen in Python:

    People who want to do more advanced actions,

    Also, people who want to do more advanced actions read the manual that’s included with PythonScript plugin, which says quite explicitly in the Npp Module section of the Introduction:
    7e4e64b7-c0ad-4c1e-a365-bae5284f8e38-image.png

    Honestly, beginners, not just people moving on to advanced topics, should have also at least read the whole introduction.

    The manual was quite explicit: if you want to write a module (a new file) that is called from someplace else (which is exactly what you do when you import your script into startup.py), then you need to include the from Npp import * inside your module.

    We’ve told you. The manual has told you. Good luck.

  • Foreign character cannot display in pop up window Notepad++

    7
    0 Votes
    7 Posts
    916 Views
    PeterJonesP

    addendum: I don’t know whether WINE mimics the Win7 or Win10 settings dialogs and registry, but https://www.askvg.com/tip-how-to-change-fonts-of-menus-dialog-box-and-other-text-in-windows-8-and-later/ explains how to change system dialog fonts in Win7 and Win10.

  • Help with dark mode.

    3
    0 Votes
    3 Posts
    10k Views
    PeterJonesP

    @Matheus-Bitencourt ,

    Was yours an upgrade, or an install? Did you run the installer as Admin, or was it as your normal user?

    Because under some circumstances, the themes (including the default dark theme “DarkModeDefault”) do not get properly installed in %AppData%\Notepad++\themes 🛈. If you go to Settings > Preferences > Style Configurator, click on the Select Theme drop-down, and look for “DarkModeDefault”. If it’s not there, you will have to copy the DarkModeDefault.xml to the right place; there should be a copy at <install directory>\themes\DarkModeDefault.xml, and if you have a normal installation, copy that to %AppData%\Notepad++\themes\DarkModeDefault.xml; otherwise, see “Configuration File Location” in the online usermanual for other possible locations.

  • Regex: How to find a duplicate tag on consecutive lines?

    9
    0 Votes
    9 Posts
    1k Views
    Robin CruiseR

    @guy038 great answer, thanks !

  • Using MACRO's to Copy a Tab to Another Tab & Change Data in the New Tab

    2
    0 Votes
    2 Posts
    723 Views
    EkopalypseE

    @ThatGuy-Steve

    I would say it depends.
    In general, yes, you can make 6 copies of a file and iterate through them. Whether you can achieve your goal depends on what you then want to do next.

    Open Npp without any files open before.
    Open the xml of your choice
    Now press the following

    ctrl+a ctrl+n and ctrl+v (6 times) ctrl+1 back to origin xml ctrl+pagedown for next tab make the changes, preferable by using shortcuts instead the menu.
  • 0 Votes
    15 Posts
    420 Views
    Ramanand JhingadeR

    @Terry-R The second * had to be within the bracket!

  • Settings aren't being saved after I close Notepad++

    4
    0 Votes
    4 Posts
    392 Views
    PeterJonesP

    @amadeogarcia ,

    So, yes, you are in local configuration mode, but your executable is in the Program Files hierarchy, which is sometimes write-protected. If you don’t have IT department restrictions, you should be able to change the permissions of the directory and xml files in D:\Program Files\Notepad++ to allow you write-access.

  • 0 Votes
    6 Posts
    599 Views
    LingEdL

    @PeterJones can’t believe I didn’t think of that. Thanks!

  • Preventing "TEST" + {TAB} from being auto-completed into "TESTING"

    2
    0 Votes
    2 Posts
    190 Views
    PeterJonesP

    @Dean-Lesner ,

    TEST{TAB} does not autocomplete to TESTING on a fresh unzip of v7.9.5-64bit (portable) or in my standard install of v8.1. In the portable 7.9.5, I installed the DSpellCheck and its en_US dictionary, and that didn’t change the behavior. (I tried the DSpellCheck, just because you mentioned it, but its spellcheck dictionary is not used for Notepad++'s auto-completion, and I don’t think that DSpellCheck itself hooks into the auto-completion feature of Notepad++.)

    The only way I can replicate your problem in this setup is if there is the word TESTING someplace else in the document, but not the word TEST.

    Thus, either you have non-standard settings somewhere, and/or you have some other plugin that is influencing the auto-complete. If you show us your ? menu’s Debug Info, as well as a screenshot of your Settings > Preferences > Auto-Completion, and we might be able to offer insight (that will tell us not only your exact version of Notepad++, but also what plugins you have installed)

    AFAIK, there is no way to remove a specific word from the auto-completion list, because the default just uses words in the current document, and words specific to the current lexer (programming language)

    Workarounds:

    You could type TEST{ESC}{TAB}, which will take you out of auto-completion mode before hitting the TAB You could use Auto-completion settings, and change the #-characters to something 5 or higher (so that TEST isn’t enough characters to trigger auto-completion) You could use the Auto-completion settings to turn off word completion (either by selecting Function Completion, or by unchecking Enable auto-completion on each input)
  • Help with Regex replace in one step

    5
    0 Votes
    5 Posts
    344 Views
    Ramesh G 0R

    The directly level does vary for every URL. I will work on your direction and see if I could solve. Appreciate your help.

  • remove number over four un json

    7
    0 Votes
    7 Posts
    512 Views
    Pouemes44P

    i have made this on you model, which seems to work

    search

    (?<=\d\.\d{4})\,

    replace

    ,
  • Find text and add text in new line

    2
    0 Votes
    2 Posts
    600 Views
    PeterJonesP

    @GG ,

    FIND = abc(\R|\z)
    (find abc followed by either a newline or the end of the file) REPLACE = abc\r\nxyz\r\n
    (the \r\n is a newline sequence in windows EOL mode) Search Mode = regular expression