• How to add a new split symbol ?

    3
    0 Votes
    3 Posts
    490 Views
    XJ.Chen XJ.ChenX

    @PeterJones Oh! In fact, I used the version of 7.5.5 before. After your reminder, I upgraded to the latest version, and then found that the problem was automatically solved 😂.
    Well, thank you very much for your reply.

  • Updated Autocomplete for Python 3

    4
    0 Votes
    4 Posts
    4k Views
    Alan KilbornA

    @Noah-Black

    There was also a recent issue filed regarding this: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/6259 “Fix keywords list according to Python 3”

  • Couldn´t get a macro running

    2
    0 Votes
    2 Posts
    265 Views
    EkopalypseE

    Plugins are not really “macro-recordable” but may I ask you if this
    is really needed in your case?
    It looks to me that pressing Ctrl + Alt + Shift + B is enough to reformat the xml.

  • Regular Expression Replace

    3
    0 Votes
    3 Posts
    362 Views
    Peter HeesenP

    @Ekopalypse said in Regular Expression Replace:

    ([0-9]) ([0-9])

    Thank you, yes. That works perfectly.
    I’m really grateful/
    Rgds, Peter

  • Right clicking Host file and selecting edit with notepad++ returns error

    2
    0 Votes
    2 Posts
    289 Views
    EkopalypseE

    As I’m not using the installed version I’m not sure whether this tip might be useful in your case.

  • Weird text highlight when changing theme

    2
    0 Votes
    2 Posts
    302 Views
    EkopalypseE

    Languages are not theme aware which means, each theme need to implement its version of the used styles.
    See here for more details.

  • Notepad++

    3
    0 Votes
    3 Posts
    372 Views
    guy038G

    Hello, @ravivarma-kv, @terry-r and All,

    I found out a simple regex, which needs to be executed one time, only ! I just assume, as Terry did, that pure blank lines are deleted, as well !

    So, given, for instance, this sample text below :

    1st line with 1 LEADING space This is a text which does NOT have any LEADING space 2nd line with 1 LEADING space A single line WITHOUT leading space 3rd line with 1 LEADING space 2nd multi-lines text with NO Leading space 4th line with 1 LEADING space 1st line with 3 LEADING space 5th line with 1 LEADING space 6th line with 1 LEADING space 3rd multi-lines text WITHOUT any leading space A last line with 1 LEADING space This is a very long multi-lines text with NO leading space for all the lines !

    Use the following regex S/R :

    SEARCH \R(?=(\x20|\z)|)

    REPLACE ?1$0

    Of course, select the Regex expression search mode. You should get the expected text :

    1st line with 1 LEADING spaceThis isa textwhich doesNOT have anyLEADING space 2nd line with 1 LEADING spaceA single line WITHOUT leading space 3rd line with 1 LEADING space2nd multi-lines textwith NOLeading space 4th line with 1 LEADING space 1st line with 3 LEADING space 5th line with 1 LEADING space 6th line with 1 LEADING space3rd multi-lines textWITHOUT anyleading space A last line with 1 LEADING spaceThis is avery longmulti-lines textwithNO leadingspacefor allthelines !

    I verified that I got the same output, using Terry’s regex solution ;-))

    Notes :

    This regex searches for any kind of EOL characters, followed by, either :

    A space character or the very end of file ( => Group 1 exists )

    Any kind of character ( other standard char or EOL char, due the empty alternative |)

    Due to the conditional replacement syntax ?1$0, this matched EOL character is rewritten ( $0 = Whole match ) only if  the group 1 exists. In all the other cases, it is just deleted

    Remark :

    If you prefer that the joined lines are separated with a space character, we need to distinguish between the standard characters, other than a space char, beginning the subsequent lines and any other character. So, use, instead, the followed regex S/R :

    SEARCH (?-s)\R(?=(\x20|\z)|(.)|)

    REPLACE (?1$0)(?2\x20)

    This time, due to the (?2\x20) conditional replacement, the matched EOL char is replaced with a single space character

    And you’ll get the text :

    1st line with 1 LEADING space This is a text which does NOT have any LEADING space 2nd line with 1 LEADING space A single line WITHOUT leading space 3rd line with 1 LEADING space 2nd multi-lines text with NO Leading space 4th line with 1 LEADING space 1st line with 3 LEADING space 5th line with 1 LEADING space 6th line with 1 LEADING space 3rd multi-lines text WITHOUT any leading space A last line with 1 LEADING space This is a very long multi-lines text with NO leading space for all the lines !

    Best Regards,

    guy038

  • new user

    4
    0 Votes
    4 Posts
    334 Views
    PeterJonesP

    @PeterJones said in new user:

    (see here for a pre-released doc that has a section on the shortcuts.xml config file, which also contains the run-menu entries).

    Documentation set was updated, so that section is now available at https://npp-user-manual.org/docs/config-files/#keyboard-shortcuts-shortcuts-xml

  • Double-Click problems with version 7.8.X

    2
    0 Votes
    2 Posts
    244 Views
    Carl WitthoftC

    One other bit of data: I switched back to the 32-bit version of NP++ . I haven’t had a chance to see if the 64-bit version of 7.7 works or not, so this may be a conflict with 32 vs 64 bit operation.

  • Automated Download of the latest Notepad++ version

    1
    0 Votes
    1 Posts
    462 Views
    No one has replied
  • FTPS (implicit) List directory issue

    2
    0 Votes
    2 Posts
    300 Views
    DarrenStD

    Solved it, There seems to be an issue with OpenSSL on the later version of nppFTP.

    Rolling back to an earlier version fixes the issue.

    Working version for anyone else with the same issue:
    https://github.com/ashkulz/NppFTP/releases/tag/v0.29.1

  • Search for a multiple variable number

    7
    0 Votes
    7 Posts
    2k Views
    Paul CarfauP

    Your my god, thanks a lot man !

  • Rearrange data in columns.

    2
    0 Votes
    2 Posts
    289 Views
    guy038G

    Hello, @jorge-luis-alvarez,

    Before looking further on, about regexes, some basic questions. Approximatively,

    How many lines DATA#="..." ...... DATA#="..." contain your file ?

    Is DATA5 the maximum data or you may have up to DATA9 or even the form DATA## with 2 digits ?

    May the values be possibly empty like, for instance, DATA3="" ?

    Should, in the output file, data be sorted, according to the values of DATA1 ?

    Best Regards,

    guy038

  • Notepadd++ saves without file extensions unless manually entered

    2
    0 Votes
    2 Posts
    356 Views
    Alan KilbornA

    Set the highlighted Preference the way it is shown:

    89a9f5f4-a3ab-4e70-822a-bfda733d3e1f-image.png

  • Macro code to Copy/Paste from one open file to another?

    17
    1 Votes
    17 Posts
    2k Views
    guy038G

    Hi, @tsquared, @ekopalypse, @alan-kilborn, @terry-r and All,

    Ah, OK : You’ve got some trouble because of the huge file size :-((

    So, instead of trying to bookmark some lines and select bunches of lines, here is a method which just get rid of any single unwanted line !. May be, it’ll be quicker !

    First, some assumptions :

    No pure blank lines or lines with blank characters only occur in your file ( Important )

    The blocks to keep start with the line START BREAK THROUGH @ WT, with that exact case, possibly preceded with some blank characters

    The blocks to keep end with the line END BREAK THROUGH @ WT, with that exact case, possibly preceded with some blank characters

    You’ll have to find out a dummy character, used as a temporary symbol, for correct execution of the different regexes. To that purpose, open the Find dialog and type in any single symbol, in the Find what: zone. If a click, on the Count button, produces the message Count : 0 match, this symbol can be used :-) As for me, I chose the # symbol

    Let’s begin :

    First, run the Edit > Line Operations > Remove Empty Lines ( Containing Blank characters ) option

    Add a pure blank line on the very beginning of your file

    Place the caret ( cursor ) on that empty line, beginning your file ( Important )

    Perform this first regex S/R, which adds a # char at the end of the Start header line and at the end of all lines to be kept :

    SEARCH (?-is)(?:^(\h*START BREAK THROUGH @ WT)(\R)|\G)((?:(?!END BREAK THROUGH @ WT).)+)(\R)

    REPLACE (?1\1#\2)\3#\4

    Then, perform this second regex S/R, which simply add a # symbol at the end of the End header line

    SEARCH (?-i)^\h*END BREAK THROUGH @ WT

    REPLACE $0#

    Finally, run this third regex S/R, which should delete any line which does not end with the # symbol, as well as the # symbol, itself, on lines to be kept

    SEARCH (?-s)^.+[^#\r\n]\R|#

    REPLACE Leave EMPTY

    Hope this helps you to modify your file more easily !

    Best Regards,

    guy038

    P.S. :

    I now realize that, after execution of the third regex S/R, any line START BREAK THROUGH @ WT is preceded with a line END BREAK THROUGH @ WT, so may be this End header line is useless for correct identification of the different sections

    In that case, just don’t run the second regex S/R and all the End header lines will be deleted as well ;-))

  • Mathematica UDL

    6
    0 Votes
    6 Posts
    838 Views
    guy038G

    Hi, @fraw-farewell, @peterjones,

    Actually, I did a simple test :

    First, I slightly changed the fgColor of these 3 sections below :

    <WordsStyle name="KEYWORDS1" fgColor="0000ff" bgColor="FFFFFF" fontName="Courier New" fontStyle="1" fontSize="10" nesting="0"/> <WordsStyle name="KEYWORDS2" fgColor="00ff00" bgColor="FFFFFF" fontName="Courier New" fontStyle="1" fontSize="10" nesting="0"/> <WordsStyle name="KEYWORDS3" fgColor="ff0000" bgColor="FFFFFF" fontName="Courier New" fontStyle="1" fontSize="10" nesting="0"/>

    Then I re-started N++

    I opened a new file

    I selected the Mathematica UDL language

    I pasted the last keyword of the Keywords1, Keywords2 and Keywords3 sections. So, the text :

    GeneratedParameters PointSize $VersionNumber

    And, as expected, these 3 commands, were highlighted in blue, green and red colors ;-))

    Cheers,

    guy038

  • Continuation in UDL delimiters

    4
    0 Votes
    4 Posts
    525 Views
    YellowAfterlifeY

    @Ekopalypse said in Continuation in UDL delimiters:

    @YellowAfterlife

    one other step you can do to overcome the UDL limitation is to
    use an scripting language plugin like pythonscript and a script
    like discussed here.

    That’s pretty cool! I didn’t realize that plugins were allowed to touch Scintilla. Maybe I’d be able to write a native plugin directly if documentation proves sufficient and I find time to do so.

  • mnemonic keys are not working

    2
    0 Votes
    2 Posts
    236 Views
    Alan KilbornA

    @pouyapalmerbet

    I’m eagerly anticipating learning what mnemonic keys are – please explain and maybe your question can be answered.

  • How to find text, then delete the next line?

    9
    0 Votes
    9 Posts
    2k Views
    Scott DuBoseS

    Thanks, in a document with 124,000 lines, this deleted 20,000 lines in about 10 seconds. Notepad++ is so awesome. Shoutout to Don Ho

  • 0 Votes
    5 Posts
    361 Views
    EkopalypseE

    @IBIT_ZEE

    If I understand correctly you are looking for something like this !?

    Basically, you want to enhance an existing UDL or builtin lexer, correct?