• Folding function works strangely from version 7.7.

    5
    0 Votes
    5 Posts
    250 Views
    Hy YangH

    @guy038
    Thank you for your hard work. :)

  • UDL Using a space as an end delimiter

    3
    0 Votes
    3 Posts
    2k Views
    dansdevelopmentsD

    @PeterJones,
    Thank you! I was sure there had to be a way to do this. I was hoping to avoid using something outside UDL, but I’m glad to know there is a way to deal with this. Gonna take look at it.

  • Add or Modify the Toolbar

    2
    -2 Votes
    2 Posts
    217 Views
    Alan KilbornA

    @Brian-Mazakas said in Add or Modify the Toolbar:

    Hope this helps somebody

    I don’t think it is going to, as it seems to be mostly complaints rather than helpful info. :-(

  • Show a list of same words before replacement

    24
    0 Votes
    24 Posts
    4k Views
    Alan KilbornA

    @Patrik-Spacek said in Show a list of same words before replacement:

    a nice advanced addition to notepad++

    Sounds like a job for a plugin.
    But just for that simple function, a little script serves well.
    But if a potential plugin added a bunch of analysis features, of which a histogram is just one…well, that would be valuable.

    My friend already coded all I need (in 20mins) and works perfectly, its compiled separately, but works great. (not in python)

    Sounds like overkill, but when one has to sponge off of a friend’s good will, you get what you get.

  • saved files always corrupted

    3
    0 Votes
    3 Posts
    219 Views
    Bob HurstB

    @PeterJones Sorry, it was inadvertently saved to a JSON file.

  • Replace or spell check

    11
    0 Votes
    11 Posts
    660 Views
    PeterJonesP

    I am not going to bother replying directly to the original poster anymore, because he obviously doesn’t like my help.

    However, for future readers, there was a factual error above: unlike what was said, DSpellCheck can and will replace “barry” with “Barry” or “allen” with “Allen”:

    8651f959-3666-44ff-8125-80b6897e54e9-image.png

    You have the choice of replacing it one time by selecting the top Allen in the replacement. Or you can go down to Replace All "allen" with > and select Allen from that menu, where every occurrence of the word will be replaced.

    Hopefully this will counteract any misconceptions caused by reading certain posts in this thread.

  • Filtering my Find in Files search: help?

    5
    1 Votes
    5 Posts
    2k Views
    Greg Smith 0G

    @PeterJones I totally read that but didn’t realize the machine I’m using was out of date!

  • 1000 files, increment each first line number by 1

    16
    0 Votes
    16 Posts
    1k Views
    nextstepN

    @Javier-Rivas I have been able to achieve my objext using notepad++ although it is quite inelegant.

    I have a folder with 1000 text files, which I duplicated. I then renamed them with a suffix 000.txt -> 999.txt

    Each file has a unique first line, with a name and number, and all I did was do a search and replace to add in an extra zero and change the _001 to _0001

    It will give me a unique first line, but will be a little more messy when combine with the other folder – but will work for what I am after.

    Thanks for your help!! Most appreciates.

    Daja

    PS I know I’ve done it before, and it’s driving me nuts that I don’t remember how or where I found it…

  • Set default character set for opening existing ANSI files

    3
    0 Votes
    3 Posts
    462 Views
    EkopalypseE

    @tommick1

    Although I also recommend switching to utf8 encoding, there is a plugin called AutoCodepage that I think may be helpful in your case.

  • Unable to configure notepad++ with python

    2
    0 Votes
    2 Posts
    514 Views
    EkopalypseE

    @Chaithra-Gururaj

    How exactly did you start the process.
    From what you posted, it looks like there is no space between python and new1.py.

  • востоновление файлов

    2
    0 Votes
    2 Posts
    266 Views
    EkopalypseE

    @minemax said in востоновление файлов:

    из-за ошибки пришлось переустанавать программу из-за чего у меня удолились все мои блакноты можно ли их как небудь вернуть

    Полагаю, вы имеете в виду информацию о сеансе.
    В зависимости от того, как была выполнена предыдущая установка, вы все равно сможете найти ее под %APPDATA%\notepad++\backup.

    I assume you mean the session information.
    Depending on how your previous installation was, you may still be able to find it under %APPDATA%\notepad++\backup.

  • Lost all text

    2
    0 Votes
    2 Posts
    160 Views
    No one has replied
  • Issue with "session.xml" in N++ v7.9 (portable)?

    11
    0 Votes
    11 Posts
    995 Views
    guy038G

    Hello, @gh-2017, @peterjones, @terry-r and All,

    @gh-2017 :

    I tried your batch file with few simplifications and it worked nice ! Thanks for sharing !

    Now, here is a more simple version of what you expect to, which uses a tiny executable file, named mtrw.exe ( Instructions in comments )

    @echo off REM -------------------------- IMPORTANT ----------------------------------- REM BEFORE executing this BATCH file : REM - DOWNLOAD the "mtr206b.zip" ARCHIVE from http://adoxa.altervista.org/minitrue/dl.php?f=bin REM - EXTRACT the "mtrw.exe" file in the LOCATION of this BATCH file REM ------------------------------------------------------------------------ REM Copy the "session.xml" file as "New.txt", WITHOUT any CONFIRMATION message copy /y session.xml New.txt > NUL REM ----------------------------------------------------------------------------------------------------------------------- REM Replace, in the "New.txt" file, the DRIVE letter and the COLON of each ABSOLUTE PATH in ALL "file..." tags with REM the CURRENT DRIVE letter and the COLON ( So, the TWO FIRST characters of the INTERNAL ENVIRONMENT variable %CD% ) REM REM (-x) Search REGEX mode by DEFAULT REM -qn QUIET mode and NO prompting REM -c- SENSIBLE to CASE REM -b- NO BACKUP file REM REM Type "mtrw" and ENTER for a QUICK summary REM Type "mtrw -?" and ENTER to open the HELP file REM Type "mtrw -?:Option and ENTER for HELP on a specific OPTION REM ----------------------------------------------------------------------------------------------------------------------- mtrw.exe -qn -c- -b- New.txt [A-Z]: = %CD:~0,2% REM STARTS Notepad++ and opens ALL the files contained in "New.txt", ONLY ! notepad++ -nosession -openSession New.txt

    Best Regards,

    guy038

  • Manipulations on many files

    22
    0 Votes
    22 Posts
    6k Views
    Rafal Jonca 0R

    @Alan-Kilborn said in Manipulations on many files:

    “XY problem”

    “XY problem” ? I made it and in this way you doubted. Any questions more ?

  • Odia text not rendered properly in NPP

    4
    0 Votes
    4 Posts
    600 Views
    Ajit NayakA

    Hello, @ekopalypse and @guy038
    Thank you very much for the quick response.
    The Solution provided by @guy038 completely solves the problem and now I can write anything in my language.
    So nice of you @guy038 to provide the solution with other research outputs that will further help us for using it effectively.
    with regards
    Ajit

  • Search in files

    8
    0 Votes
    8 Posts
    386 Views
    Alan KilbornA

    Searching the disk content of an open file is problematic…because, well, how does N++ do this type of searching?
    It opens the file into a tab that isn’t shown to the user, for each file searched. Since it can’t easily open two tabs for the same file (hmmm, cloned view does it, though…?), this type of thing isn’t allowed.

  • 0 Votes
    3 Posts
    558 Views
    guy038G

    Hello @robin-cruise and All,

    Why not this S/R :

    SEARCH (?-s)^\h*<div class="fb-comments" data-href=".+

    REPLACE <!-- Facebook Comments $0 -->

    Notes :

    This regex would search all contents of any line, beginning with the string <div class="fb-comments" data-href=, possibly predeced with any leading horizontal blank chars, and places this line in comments, with the syntax <!-- Facebook Comments ............... -->

    Not a very difficult regex : you could have found out this one, by yourself ;-))

    Best Regards,

    guy038

  • Examining a character?

    12
    0 Votes
    12 Posts
    20k Views
    guy038G

    Hi, @dave-joseph, @peterjones, @alan-kilborn and All,

    Peter, I confirm your test. In an UTF-8 file, without encoding problems, the option Encoding > Convert to ANSI correctly changes the two UTF-8 bytes of each smart quote, into a one ANSI byte

    Concerning the second point, I understand : seemingly it’s always better to see the individual bytes of a file with an external hex editor !

    Cheers,

    guy038

  • Extracting some elements from the string

    3
    0 Votes
    3 Posts
    205 Views
    Rafal Jonca 0R

    Works beautifully. Thank you :)

  • [v.7.8.6] Vertical Edge Settings no longer works with Split Lines (Ctrl-I)

    30
    0 Votes
    30 Posts
    4k Views
    dinkumoilD

    @Alan-Kilborn

    Yes, I discovered that already in the past. Increasing inter-line spacing is also possible with other styles, for example the Brace highlight style.