• Login
Community
  • Login
  1. Home
  2. Help wanted · · · – – – · · ·
Log in to post
Load new posts
  • Recently Replied
  • Recently Created
  • Most Posts
  • Most Votes
  • Most Views
  • P

    Open/Save Bug

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Sep 20, 2018, 8:40 PM
    Sep 20, 2018, 8:29 PM
    0 Votes
    2 Posts
    676 Views
    P Sep 20, 2018, 8:40 PM

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

  • D

    Printing Issue

    Watching Ignoring Scheduled Pinned Locked Moved
    9 Sep 20, 2018, 7:16 PM
    Aug 23, 2018, 1:32 PM
    3 Votes
    9 Posts
    5k Views
    D Sep 20, 2018, 7:16 PM

    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. :)

  • G

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

    Watching Ignoring Scheduled Pinned Locked Moved
    11 Sep 20, 2018, 5:30 PM
    Aug 12, 2018, 6:21 AM
    0 Votes
    11 Posts
    5k Views
    G Sep 20, 2018, 5:30 PM

    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.

  • G

    Program not opening "txt" files made in another program, or made in another version of Notepad++

    Watching Ignoring Scheduled Pinned Locked Moved txt files bugs
    1 Sep 20, 2018, 5:35 AM
    Sep 20, 2018, 5:35 AM
    0 Votes
    1 Posts
    538 Views
    No one has replied
  • D

    HTML Edit file size bug?

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Sep 19, 2018, 4:35 PM
    Sep 19, 2018, 4:35 PM
    0 Votes
    1 Posts
    526 Views
    No one has replied
  • V

    Regex: Replace the content of a tag into another tag

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Sep 19, 2018, 2:53 PM
    Sep 15, 2018, 7:10 PM
    0 Votes
    3 Posts
    875 Views
    V Sep 19, 2018, 2:53 PM

    first check .matches newline in order to work

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

    REPLACE WITH: \1\3\2\4

  • B

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

    Watching Ignoring Scheduled Pinned Locked Moved
    4 Sep 19, 2018, 11:46 AM
    Sep 15, 2018, 12:46 PM
    0 Votes
    4 Posts
    3k Views
    D Sep 19, 2018, 11:46 AM

    @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.

  • G

    Word search on net

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Sep 18, 2018, 6:54 PM
    Sep 18, 2018, 4:00 PM
    0 Votes
    5 Posts
    1k Views
    G Sep 18, 2018, 6:54 PM

    Sweet, works perfectly :)
    ty!

  • R

    MultiLine Replace (multiple hosts in hostsfile)

    Watching Ignoring Scheduled Pinned Locked Moved
    12 Sep 17, 2018, 10:29 PM
    Sep 16, 2018, 2:17 AM
    0 Votes
    12 Posts
    5k Views
    G Sep 17, 2018, 10:29 PM

    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

  • R

    Can't save file with name of already opened file

    Watching Ignoring Scheduled Pinned Locked Moved
    4 Sep 17, 2018, 2:09 PM
    Sep 17, 2018, 7:28 AM
    0 Votes
    4 Posts
    4k Views
    S Sep 17, 2018, 2:09 PM

    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”.

  • Monika RajputM

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

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Sep 17, 2018, 1:59 PM
    Sep 17, 2018, 1:59 PM
    0 Votes
    1 Posts
    701 Views
    No one has replied
  • alexkreadA

    Folding: Newlines & tabs

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Sep 17, 2018, 5:45 AM
    Sep 17, 2018, 5:45 AM
    1 Votes
    1 Posts
    617 Views
    No one has replied
  • fuzzybuffaloF

    Save failed: Please check if this file is opened in another program.

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Sep 17, 2018, 1:00 AM
    Sep 17, 2018, 1:00 AM
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Mario Eduardo Gallegos ArellanoM

    Where is the version of Notepad++ for Android oficial?

    Watching Ignoring Scheduled Pinned Locked Moved
    4 Sep 16, 2018, 3:24 PM
    Sep 14, 2018, 1:54 AM
    0 Votes
    4 Posts
    2k Views
    elena simonsE Sep 16, 2018, 3:24 PM

    thanks, too, this problem arose…

  • Polski KepsP

    How to generate random numbers beetwen 1-5?

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Sep 16, 2018, 12:57 PM
    Sep 16, 2018, 8:52 AM
    0 Votes
    2 Posts
    2k Views
    S Sep 16, 2018, 12:57 PM

    @Polski-Keps

    See here.

  • Bahman DarioushB

    making a list of URLs?

    Watching Ignoring Scheduled Pinned Locked Moved code rtgfgftgyhgtkjh urls making a list o rgegtdfy
    2 Sep 14, 2018, 12:07 PM
    Sep 14, 2018, 10:07 AM
    0 Votes
    2 Posts
    890 Views
    Jim DaileyJ Sep 14, 2018, 12:07 PM

    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 }
  • Rubem PechanskyR

    Double-clicking a file keeps opening new Notepad++ instances endlessly

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Sep 14, 2018, 12:00 PM
    Sep 14, 2018, 12:00 PM
    0 Votes
    1 Posts
    712 Views
    No one has replied
  • J

    Find a line and copy the next 10 lines

    Watching Ignoring Scheduled Pinned Locked Moved find in files multiline
    11 Sep 14, 2018, 3:15 AM
    Apr 4, 2016, 8:09 PM
    0 Votes
    11 Posts
    26k Views
    G Sep 14, 2018, 3:15 AM

    Hello @ankur-sharma, @terry-r and All,

    I’m thinking about a very easy solution, with a regex S/R, which does… all the job :-))

    So, let’s imagine the initial text, below :

    This a some dummy text to fill up the zone line 1 line 2 insert_job:AB line 1 line 2 line 3 line 4 line 5 line 6 line 7 line 8 line 9 line 10 This a some dummy text to fill up the zone line 1 line 2 insert_job:AB line 1 line 2 line 3 line 4 line 5 line 6 line 7 line 8 line 9 line 10 This a some dummy text to fill up the zone

    Now :

    Open the Replace dialog ( Ctrl + H )

    Select the Regular expression search mode

    Tick the Wrap around option

    SEARCH (?s).*?(?-s)((?:^.*\R){2}insert_job:AB\R(?:^.*\R){10})|(?s).+

    REPLACE ?1\1\r\n

    Clic on the Replace All button

    Et voilà !

    You should get, as below, the two expected areas of text, separated with a line-break ;-))

    line 1 line 2 insert_job:AB line 1 line 2 line 3 line 4 line 5 line 6 line 7 line 8 line 9 line 10 line 1 line 2 insert_job:AB line 1 line 2 line 3 line 4 line 5 line 6 line 7 line 8 line 9 line 10

    Notes :

    The main part of this regex is (?:^.*\R){2}insert_job:AB\R(?:^.*\R){10}, which matches :

    2 complete lines with their line-breaks, in a non-capturing group. So, (?:^.*\R){2}

    The complete line insert_job:AB, with its like-break. So, insert_job:AB\R

    10 complete lines with their line-breaks, in a non-capturing group. So, (?:^.*\R){10}

    As this main part is embedded in parentheses, it’s stored as group1, for further use , in replacement

    The part (?s).*?, at beginning, matches all the multi-lines stuff which precedes the main part

    When no more main part can be found, the regex engine tries the second regex (?s).+, placed after the alternation symbol ( | )

    This second regex matches all the remaining characters, after the last block of lines to keep till the very end of the file

    Note that, if the string insert_job:AB is part of a line, you must change the part insert_job:AB\R with .*insert_job:AB.*\R

    Remark : The method consists to use the following generic regex :

    SEARCH (?s).*?(Your regex to match)|(?s).*

    Refer to this post, for further explications :

    https://notepad-plus-plus.org/community/topic/12710/marked-text-manipulation/8

    Best Regards,

    guy038

  • Dario de JudicibusD

    Changing quotes ONLY within HTML elements

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Sep 14, 2018, 1:59 AM
    Sep 13, 2018, 9:20 PM
    0 Votes
    2 Posts
    793 Views
    G Sep 14, 2018, 1:59 AM

    Hello, @dario-de-judicibus, and All,

    No problem with regular expressions ;-))

    So :

    Open the Replace dialog ( Ctrl + H )

    Select the Regular expression search mode

    Tick, if necessary, the Wrap around option

    SEARCH (?=[^<>]+?<)(?:(\x{201c})|\x{201d})

    REPLACE &(?1l:r)dquo;

    Click once, on the Replace All button or several times, on the Replace button

    Notes :

    The main part (?:(\x{201c})|\x{201d}), is a non-capturing group with an alternative, |, which looks for, either :

    The LEFT DOUBLE QUOTATION MARK, of Unicode value 201c, stored as group 1, due to the embedded parentheses

    The RIGHT DOUBLE QUOTATION MARK, of Unicode value 201d

    But ONLY IF the condition of the positive look-ahead structure is TRUE. That is to say if the regex [^<>]+?< can be matched at the current position of the regex engine

    This condition represents the shortest range of characters different from the two chars < and >, ending with the < character. Note that the ending < character may, either, introduce an other tag or close the present open tag, with the syntax </

    In replacement, the left or right double quotation mark is, then, changed into :

    An ampersand character &. Then,

    If the \x{201c} character has been found, in the correct area, the group 1 is defined => a l letter follows

    If the \x{201d} character has been found, in the correct area, the group 1 is not defined => a r letter follows

    Finally, the string dquo; is added

    Remark : This regex can, also, manage correct areas, which are split on several lines, like as below :

    <p class=“test”> Change all “this” text to “that” text.</p>

    Best regards,

    guy038

    P.S. :

    Now, if you prefer to search for all the Change “this”. areas, in some HTML code, use the following search regex :

    SEARCH (?![\h\r\n]+)[^<>]+?(?=<)

    Notes :

    The regex [^<>]+?(?=<) tries to match the shortest non-null range of characters, different from the two chars < and >, ONLY IF it’s followed with the < character

    And ONLY IF the negative look-ahead is TRUE at the current regex-engine position. In other words IF the area matched is NOT filled in with, only, horizontal blank and line-break characters !

  • Jared ElickJ

    Creating "copy buttons"

    Watching Ignoring Scheduled Pinned Locked Moved
    9 Sep 13, 2018, 5:43 PM
    Sep 13, 2018, 12:16 AM
    0 Votes
    9 Posts
    2k Views
    S Sep 13, 2018, 5:43 PM

    @PeterJones

    this may be related to #32

    Ugh, and I looked thru the list before opening #104…double ugh!

The Community of users of the Notepad++ text editor.
Powered by NodeBB | Contributors