• 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
    626 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
    641 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
    505 Views
    No one has replied
  • HTML Edit file size bug?

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

    Locked
    3
    0 Votes
    3 Posts
    845 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
    670 Views
    No one has replied
  • Folding: Newlines & tabs

    Locked
    1
    1 Votes
    1 Posts
    592 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
    846 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 }
  • Double-clicking a file keeps opening new Notepad++ instances endlessly

    Locked
    1
    0 Votes
    1 Posts
    653 Views
    No one has replied