• need help guys

    Locked
    2
    0 Votes
    2 Posts
    708 Views
    PeterJonesP
    Eliminate the virus you can download the most recent notepad++ from https://notepad-plus-plus.org/download/ to be able to install a clean copy your old settings were likely in %AppData%\Notepad++, so should still be visible (if you’re installing again on the same machine after it’s been thoroughly disinfected), or you can copy from the old machine to the new (assuming you are switching to a new machine; make sure your virus scanner has declared that whole directory “clean” before doing so) your old plugins were likely in the same directory as your notepad++ executable; if any are missing from your new installation, I would suggest re-installing them from scratch using the Plugin Manager, rather than copying them from the old installation, in case a DLL was infected and not fully cleaned your old files (what I assume you mean by “data”) – whether it be source code, or data files, or scratchpads, or whatever – are wherever you had saved them. Assuming they weren’t encrypted by a ransomware virus, or otherwise infected, you should just be able to find them wherever they were. If they were encrypted by ransomware, let’s hope you had a backup. (Backups are really your responsibility: there are features to help in Notepad++ “backup” preferences, but keeping and maintaining a safe backup set are beyond the scope of just notepad++.)

    If this doesn’t answer your question, you will have to give more specifics, especially with how it relates to Notepad++, other than Notepad++ being what you happened to use to edit the text files.

  • Quickly toggle Doc Switcher List panel on/off

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Scott SumnerS

    This sort of begs the question: Why is the on/off control for this handled in such an odd way?
    Why not have it be a View menu entry, just like Function List et al.?

    Makes it rather awkward for scripting languages to have to have functions to support this handling. Ugh. Well, anyway, if someone wants the Pythonscript equivalent, here goes:

    notepad.showDocSwitcher(not notepad.isDocSwitcherShown())

    Not a difficult port! :-)

  • Urgent Help needed for copy data from find result window

    Locked
    2
    0 Votes
    2 Posts
    630 Views
    Scott SumnerS

    @George-karithanam

    You say

    I want to copy only the heading of the search result

    But then in your

    The result will be

    section you show the heading AND the “details under”.

    I think you’d better clarify your request before anyone attempts to help you.

    Maybe there’s a hint here:

    it find matching result from the sub folders as well

    If you are merely trying to exclude subfolder results, you should untick the In all sub-folders checkbox before you do a Find in Files.

  • Validate Now, not able to validate XML against schema

    Locked
    3
    0 Votes
    3 Posts
    8k Views
    AngieBeeA

    Thanks for the reply. I ended up figuring it out after talking to a co-worker that uses XML Spy. I put the XML and .xsd files in the same folder and it validated. We then found the issue with the file.

  • Open/Save Bug

    Locked
    2
    0 Votes
    2 Posts
    652 Views
    PeterJonesP

    You might try changing the toggle of Settings > Preferences > Default Directory > Use new style dialog

  • Printing Issue

    9
    3 Votes
    9 Posts
    5k Views
    David GuytonD

    Same problem here, and @Claudia-Frank’s suggestion led me to a solution. I’m using Win10-64 and %APPDATA%/notepad++/plugins/ did not exist. I had a fresh install, and I’m 1st timer here today, so that was def related to the source of the problem.

    After I created these dirs, printing works fine:
    %APPDATA%/notepad++/plugins
    %APPDATA%/notepad++/plugins/config

    One other note… during install I chose to instruct the program to retain config files in the %APPDATA% folder (might be obvious from my comments above, but FYI to clarify that yes, I chose that option during install).

    Cheers. :)

  • Bug, javascript multiline character (`) not understood by notepad++

    11
    0 Votes
    11 Posts
    5k Views
    Gregory D.G

    Yes separate files is better but I’m working on a customer existing project and don’t have to rewrite/optimize it.
    Thanks for the suggestion.

  • 0 Votes
    1 Posts
    520 Views
    No one has replied
  • HTML Edit file size bug?

    Locked
    1
    0 Votes
    1 Posts
    502 Views
    No one has replied
  • Regex: Replace the content of a tag into another tag

    Locked
    3
    0 Votes
    3 Posts
    856 Views
    Vasile CarausV

    first check .matches newline in order to work

    SEARCH: (<title>(.*?)<\/title>.*?)(<meta property="og:title" content=").*?(" \/>)

    REPLACE WITH: \1\3\2\4

  • How to let NP++ auto-detect UTF-8 encoding correctly?

    4
    0 Votes
    4 Posts
    3k Views
    dinkumoilD

    @Ben-S

    Automatic encoding detection is a difficult and unreliable thing. The algorithms work heuristically by inspecting the file’s content and can fail under some circumstances.

    If your file names have a special file extension you could use my AutoCodepage plugin, available via Notepad++ PluginManager.

    Otherwise there would be the following workaround:

    Open Windows Notepad.

    Press and hold the ALT-Key and type at the numeric block of the keyboard the sequence 0239.

    Press and hold the ALT-Key and type at the numeric block of the keyboard the sequence 0187.

    Press and hold the ALT-Key and type at the numeric block of the keyboard the sequence 0191.

    Save the file under the name Header.txt in the folder where your file is stored but avoid to press ENTER before saving.

    Open a Windows console and navigate to the folder where your file and the newly created Header.txt are stored.

    Execute the following command:

    copy /b “Header.txt” + “<Name-of-your-file>” “Result.txt”

    With this sequence you will add an UTF-8 Byte Order Mark (BOM) to the beginning of your file and store it under the name Result.txt. When you open this file in Notepad++ it should be recognized as UTF-8 encoded.

  • Word search on net

    Locked
    5
    0 Votes
    5 Posts
    1k Views
    General CoderG

    Sweet, works perfectly :)
    ty!

  • MultiLine Replace (multiple hosts in hostsfile)

    Locked
    12
    0 Votes
    12 Posts
    5k Views
    guy038G

    Hi, @rugabunda, @scott-sumner, @dinkumoil and All,

    Ah, many thanks, Dinkumoil, for your optimization advices !

    Of course, having 17,000 messages “impossible to open File-B.txt” is rather idiot ! I did not realize this, as working on my tiny File_A.txt :-(

    Thus, appending 17,000 times, a line to File_C.txt is not very efficient, too, as you said !

    Finally :

    If you previously chose some basic filenames, without spaces, this syntax should be enough : (for /f "delims=" %L in (File_A.txt) do @(findstr /x /c:"%L" File_B.txt 1>NUL 2>NUL || echo %L)) > File_C.txt If your filenames may be long, with some space characters, the @dinkumoil solution, with the usebackq option and filenames surrounded by double quotes, is safer !

    Cheers,

    guy038

  • Can't save file with name of already opened file

    Locked
    4
    0 Votes
    4 Posts
    4k Views
    Scott SumnerS

    I see no sanity in a feature request that would bring back the 7.4.2 behavior. It seems like this behavior is just “asking for trouble”.

  • Notepad++ 7.5.8 - x64bit compatible with ThinApp sequencing or not?

    Locked
    1
    0 Votes
    1 Posts
    681 Views
    No one has replied
  • Folding: Newlines & tabs

    Locked
    1
    1 Votes
    1 Posts
    601 Views
    No one has replied
  • Save failed: Please check if this file is opened in another program.

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Where is the version of Notepad++ for Android oficial?

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    elena simonsE

    thanks, too, this problem arose…

  • How to generate random numbers beetwen 1-5?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
  • making a list of URLs?

    Locked
    2
    0 Votes
    2 Posts
    857 Views
    Jim DaileyJ

    I wouldn’t attempt to do this with an editor. I would use a scripting language. For example, in AWK:

    BEGIN { Text="http://www...offset=" Offset = 20 for (i = 1; i <= 2000; i++) { printf("%s%d\n", Text, Offset) Offset += 20 } exit }