• Alt-S crashes 7.5.8 going into Compare window

    Locked
    5
    0 Votes
    5 Posts
    1k Views
    Hans SchulzeH

    https://github.com/pnedev/compare-plugin/releases

    Thanks for the heads up. I hadn’t thought of that.

    Maybe a “Recent News” thread? :)

  • Regex replace $1 (\1) not working after update

    5
    1 Votes
    5 Posts
    2k Views
    emdashbuckE

    Seems to be working now. Honestly can’t recall if I took an update in the last fifteen days. Thanks for the response!

  • Find and replace subset of string

    Locked
    4
    1 Votes
    4 Posts
    883 Views
    gerdb42G

    Ok, I see you found it by yourself. Note that \d is equivalent to [0-9]. But you need to escape the "." to "\." or else it will match any character e.g. “0n234” would also match.

  • Leading Zeros

    Locked
    11
    0 Votes
    11 Posts
    12k Views
    mkupperM

    @Jose-Emilio-Osorio said:

    @Scott-Sumner Use the mouse is good. But, I have more than 85000 lines in a file and it´s hard to drag the line to the last line. Any method to do this ?. Thanks for your help.

    If it’s a one-shot deal then use two search/replaces in regular expression mode (Ctrl-G in the search/replace box)

    Search for: ^
    Replace with: 00000000
    If you have leading spaces then use search for: ^ *

    That’ll put eight zeroes at the front of all lines

    The second search/replace is:
    Search for: ^[0]+([0-9]{8})$
    Replace with: \1

    That skips over excess leading zeroes, saves the last eight digits, and the replace part is the saved value.

    Now do one more pass which is to search for ^0{8}
    This searches for lines that start with eight zeroes.

    If you find any then either

    There were blank lines in the file and we now have 00000000 there. That may or may not be desirable One of the lines had a number with 9 or more digits and will now have something like 00000000123456789 One of the lines had something other than a number and now has 00000000~whatever was on the line~

    If you need to do this a lot then use sed. Google for GNU sed. It’s free. In sed the search/replaces would look like this

    sed -r -e "s/^/00000000/" -e "s/^0+([0-9]{8})$/\1/" input-file.txt >output-file.txt

    Then to check for errors

    sed -r -n -e "/^0{8}/ { = ; p }" output-file.txt

    This scans and for every line found that starts with eight zeroes it outputs the line number and then the offending line.

  • Find and Replace

    Locked
    17
    0 Votes
    17 Posts
    6k Views
    Jeremy HJ

    Ok, good to know! Thanks again guys for all the help!

  • How to copy-translate-paste certain lines?

    13
    0 Votes
    13 Posts
    3k Views
    Gregg MorrisG

    Yes, this works really well. I need to replace many large blocks of text of variable size in a large xml file. This solution works well for me.

  • Help need please

    Locked
    5
    1 Votes
    5 Posts
    1k Views
    king robboK

    @Claudia-Frank said:

    @king-robbo

    version control is used to track changes within files (mostly text files).
    Most famous today is, I guess, git.
    But if you have to ask what it is, means that you haven’t used it.
    One other functionality Windows offers is “Previous version”
    Right-click on a file and select properties - the last tab in the property window.
    But this doesn’t, necessarily, give back the previous version but the version
    of the last backup, which means it could have be changed multiple times afterwards.

    So, all in all, this means , that, more or less, you can’t get the information what
    has been changed in the file if you haven’t used one of the tools I mentioned.

    Cheers

    Hi Claudia
    Many thanks for the reply I will have a search around on site here to gain some more info on what is available and what can be done
    cheers

    Claudia

  • np++ 64bit - max number of tabs

    Locked
    8
    2 Votes
    8 Posts
    3k Views
    Jim DaileyJ

    @sign-in-smth

    Perhaps you can figure out an easy way to create a session file that has the files you want to edit, then use the -opensession command line option to open them as a session in a new instance.

  • Installation without Admin privileges

    Locked
    3
    0 Votes
    3 Posts
    5k Views
    Payam MinoofarP

    I should have read more carefully. Yes, I’m up with the latest version. Thank you very much.

  • Plugin Horizontal Ruler

    Locked
    2
    0 Votes
    2 Posts
    4k Views
  • Can't download installer?

    Locked
    2
    0 Votes
    2 Posts
    4k Views
    John Simpson24J

    I see this question (not exactly the same, but close) is answered here. So apparently I just need to be patient. :) Thanks!

  • 1 Votes
    10 Posts
    2k Views
    Stefan Huus GregersenS

    @PeterJones
    Pretty good answer! I’d guess that is the closest i would get unless sending a request to add it in as a “feature”

  • https://notepad-plus-plus.org/repository not accessible

    Locked
    2
    1 Votes
    2 Posts
    3k Views
    PeterJonesP

    Yeah, there are occasional outages on some or all of the notepad-plus-plus.org website. (it’s especially annoying when it’s the forum, so you cannot report the problem). They are generally fixed within a couple hours, in my experience.

  • Need help with a search and replace...

    Locked
    3
    0 Votes
    3 Posts
    818 Views
    Terry RT

    I have another regex, this one is possibly a better option as I noticed all your instances of putting the ‘|’ character had either a number before or after.

    So
    Find what: \h(?=\d)|(?<=\d)\h
    Replace with: \|

    So as I said it will only deal with spaces that have a number on either side of it. Therefore it leaves the one alone in (as your example says) “Great Strides”

    Terry

  • 0 Votes
    6 Posts
    1k Views
    Scott SumnerS

    @PeterJones said:

    You do realize…

    LOL … amazing… (sigh)

  • Notepad++ How can I change the font size in Notepad++?

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Scott SumnerS

    @Robert-Snow

    It is fairly customizable…see: See Settings (menu) -> Style Configurator…

    What I do, and it is by no means the only way of doing things, is to choose:

    Language : Global Styles Style : Global override

    and then the Enable global font and Enable global font size checkboxes become visible. I tick those checkboxes and then set a decent monospaced font (e.g. Consolas) and font size (e.g. 9 ) in the Font Style box.

    YMMV

  • converting tabs to spaces

    Locked
    3
    1 Votes
    3 Posts
    2k Views
    Anthony RudzkiA

    Thanks

    Tony

  • Is it possible to a xml-file without xml-support?

    8
    0 Votes
    8 Posts
    4k Views
    Klaus LehmannK

    Hello @guy038 . thank You very much for Your good idea! this is the solution!

    in my nortoncommander-clone from Australia: “FCW” I have added in fc.ini:
    [Editor Associations]
    *.{xml}: “c:\Program Files\Notepad++ allegro\notepad++.exe” -nosession -lnormal

    good solution! thanks a lot!

  • remove all text except hex characters

    Locked
    9
    0 Votes
    9 Posts
    2k Views
    PeterJonesP

    It can alternately mean Original Post, as well. You’ve got to take it on context of whether it’s talking about the content or the content creator. :-)

  • 0 Votes
    9 Posts
    2k Views
    Scott SumnerS

    @Terry-R

    It’s a lot of WORK, trying to be helpful! :-)