• 0 Votes
    7 Posts
    10k Views
    Marco CzenM

    Thats ;

    C:\Users\username\AppData\Roaming\Notepad++

  • Issue when trying to overwrite a closing brace on notepad++

    Locked
    6
    0 Votes
    6 Posts
    2k Views
    Scott SumnerS

    @CodeSteady said:

    do you have a solution?

    Instead of pressing } just press right-arrow (or End) to move beyond the auto-inserted closing brace? :-)

  • Big encoding problem with UTF-8 / UTF-8-BOM / ANSI / ISO-8859-1

    4
    0 Votes
    4 Posts
    5k Views
    Sybell LirwacoS

    Unfortunately the problem with 7.5.1 is not solved.
    npp.7.5.1.bin.minimalist.x64 opens files stored in UTF-8 containing characters from the Mathematical Alphanumeric Symbols Unicode block as ANSI.

    What I have just seen is that the term “ANSI” means different. Once the term ANSI means Windows-1252 (Menubar -> Encoding) and once means only ISO-8859-1 (Preferences -> New Document -> Encoding). Or there are problems because files stored in Windows-1252 are opened as ANSI, even if “Apply to opened ANSI file” is set.

  • Find and Replace with RegEx help

    Locked
    9
    0 Votes
    9 Posts
    4k Views
    Ksomeone MsomeoneK

    @Claudia-Frank said:

    @guy038

    I was close, wasn’t I? :-D

    thx for the detailed information and improvements - always a pleasure :-)

    Cheers
    Claudia

    Yours was the one I used before guy038 made his post and it worked perfectly, so I would say you were more than close. :)

  • Red console

    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Ivo-Balbaert

    I don’t know Red console - could it be that it closes while providing incorrect data to it,
    like a file which isn’t found?
    Can you run Red console without providing a file as parameter from notepad++ run menu?
    Another option might be to use cmd /k in front of red…exe - maybe you see the error it throws
    or why it is closing.

    Cheers
    Claudia

  • Line Number

    9
    0 Votes
    9 Posts
    4k Views
    gstaviG

    The end of line is screwed, probably something like <CR><LF><LF>, Notepad++ sees every line as a line + blank line.
    So Line number in Notepad++ is multiplied by 2.

  • 请让这款优秀的编辑器支持MAC OS X

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Meta ChuhM

    your “general voice of the public” about an incompatible subject will probably not be understood, if you use an incompatible language to try to transport your incompatible wishes.

  • Quick database rip

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    guy038G

    Hello @xavier-xenoph,

    It’s not very clear what you want to achieve, but, to my mind, you would like to change all records of your database file :

    IPHERE | DATE: | HWID: | password: | audioid: | hashid : |

    as :

    | hashid : |

    Am I right about it ?

    If so :

    Open your database file, in N++

    Open the Replace dialog ( Ctrl + H )

    SEARCH (?-s)^.+(?=\|.+\|$)

    REPLACE Leave EMPTY

    OPTIONS Wrap around and Regular expression ticked

    ACTION Click on the Replace All button

    Notes :

    As usual, the (?-s) modifier means that the dot ( . ) matches a standard character, ONLY and NOT any *line-break character

    Then the part ^.+ represents the longest range of characters of any line, but…

    ONLY IF the condition, in the look-ahead, ( (?=\|.+\|$) ) is true. That is to say if it’s followed by two | symbols, with some characters between, ( \|.+\| ), which end each line ( $ )

    Note that the | symbol have to be escaped as \|, to be interpreted as literal, as it’s a special regex character, too !

    Due to the empty replacement zone, the selected range, of each line, is simply deleted

    Best Regards,

    guy038

  • Problem with CSS padding/margin

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Scott SumnerS

    @tomass1047

    Sorry, dude, this is not the right place to discuss that.
    This Community is for Notepad++ - related discussion.
    Good luck in your quest for answers–somewhere else.

  • Tooltips on toolbar icons

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    dailD

    There’s no way to turn it off or on, just shows it by default.

  • Create a share button?

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Scott SumnerS

    @אודי-יהודה-אברג’ל

    You are really asking that in the WRONG PLACE. Sorry.

  • How to achieve <bold>selection</bold>?

    Locked
    10
    1 Votes
    10 Posts
    8k Views
    guy038G

    Hello @liuruiqi1993 and All,

    BTW, I advice you to downgrade to the v7.5.1 version of Notepad++, because there are some encoding issues with the last two N++ versions ! See below :

    https://notepad-plus-plus.org/community/topic/14936/update-to-7-5-3-file-encode-wrong/2

    Now, I understand why it did,'t work with your old 5.9.4 version. Just because, since the N++ v.6.0 version, a new search engine is implemented, with the Perl Common Regular Expressions feature, of the Boost C++ regex library ! This new search engine allows you to run complicated S/R, once you’re acquainted with Regular expressions language :-))

    For newby people, about regular expressions concept and syntax, begin with that article, in N++ Wiki :

    http://docs.notepad-plus-plus.org/index.php/Regular_Expressions

    In addition, you’ll find good documentation, about the Boost C++ Regex library, v1.55.0 ( similar to the PERL Regular Common Expressions, v5.8 ), used by Notepad++, since its 6.0 version, at the TWO addresses below :

    http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html

    http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html

    The FIRST link explains the syntax, of regular expressions, in the SEARCH part

    The SECOND link explains the syntax, of regular expressions, in the REPLACEMENT part

    You may, also, look for valuable informations, on the sites, below :

    http://www.regular-expressions.info

    http://www.rexegg.com

    http://perldoc.perl.org/perlre.html

    Be aware that, as any documentation, it may contain some errors ! Anyway, if you detected one, that’s good news : you’re improving ;-))

  • Complex regex substitution

    8
    0 Votes
    8 Posts
    3k Views
    Simone SpinozziS

    @cipher-1024

    it’s not json and the tabs are just there to allow spacing so that they “look good” on a single line when a bunch of them are all there at the same time. (basically they line up stuff vertically… and yes… that sounds idiotic… but i did not write the original “code” 😅) It cannot be on multiple lines as the intepreter of the code sees every new line as a different “item”. I did not write the interpreter, i’m just trying to help modify a bunch of items at the same time. Thus i cannot change the writing “language”. The task was to learn how to change multiple instances of similar things all at once so that in the future these things can be changed easily.
  • Matlab cell mode highlight mechanism

    5
    0 Votes
    5 Posts
    3k Views
    Ms NM

    I think you are right. I will give the function list method a go.
    https://notepad-plus-plus.org/features/function-list.html

  • extended character search suddenly not working.

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Scott SumnerS

    @Mark-Gould

    Maybe you are just doing it wrong. But since you didn’t tell us what you are doing, no one can make a judgment. :-(

    Maybe check this thread for generic troubleshooting tips?

  • Update to 7.5.3, file encode wrong

    3
    0 Votes
    3 Posts
    2k Views
    Hung Tran PhiH

    Thanks for your response, I uninstalled 7.5.3 and installed 7.5.1, problem solved :).

  • No preferences saving used notepad++ in WinSCP

    4
    0 Votes
    4 Posts
    2k Views
    Claudia FrankC

    @Sybell-Lirwaco said:

    only saved if the instance in which these changes were made was closed. Correct?

    To be honest, haven’t tested it but I assume this is correct and makes sense.

    Cheers
    Claudia

  • Macro Complex instructions.

    9
    0 Votes
    9 Posts
    4k Views
    PeterJonesP

    For completeness, I eventually found the bug in mine: I was misusing range(start, end) – I thought it included end when iterating over the range, but it only uses the values less than end.

    The following is my code, with the bug fixed (and some of my debug prints left in) that I think now does what was requested… though @Claudia-Frank did it much more succinctly… and the magic of @guy038 regex ability is virtually limitless. :-)

    # editor1 is the PythonScript object instance for the first (left or top) document window in NPP # editor2 is the instance for the second (right or bottom) document window # Python's range(start, stop) operator will keep going while the index variable is LESS THAN stop, so it will never use stop: https://docs.python.org/2/library/functions.html#range for lineNumber in range(0, editor1.getLineCount() ): # grab the nth line from File1 (exclude newline) editor1.gotoLine(lineNumber) newValue = editor1.getCurLine().rstrip() console.write("editor1: #" + str(lineNumber) + " = \"" + newValue + "\"\n") editor2.documentEnd() # go to the last position end2 = editor2.getCurrentPos() # record the position console.write("editor2.end = " + str(end2)+"\n") editor2.documentStart() # back to the beginning start2 = editor2.getCurrentPos() # record the position console.write("editor2.start = " + str(start2)+"\n") # want to replace two "xxx" entries in File2 with each line from File1 for time in range(0, 2): console.write("time# " + str(time) + "!!!\n") # look for the first occurrence of 'xxx', starting at start2 and ending at end2 # position is a tuple with the start and end locations of the match position = editor2.findText( FINDOPTION.MATCHCASE, start2, end2, "xxx") if position is None: console.write("editor2.position is NONE, so skipping...\n") break # don't try to replace console.write("editor2: findText @ " + str(position[0]) + ":" + str(position[1]) + "\n") # select the "xxx" editor2.setSelectionStart(position[0]) editor2.setSelectionEnd(position[1]) # replace the selection with newValue editor2.replaceSel(newValue) # the cursor is now at the end of the replaced value, and we want to start2 = editor2.getCurrentPos() console.write("Start2: " + str(start2)+"\n") console.write("next source line...\n")
  • Help with NppFTP

    3
    0 Votes
    3 Posts
    2k Views
    chcgC

    See also https://ashkulz.github.io/NppFTP/. As Peter wrote additional infos about the used versions would be helpful.

  • 'Find and Replace' question

    13
    1 Votes
    13 Posts
    4k Views
    Oleg NemchenkoO

    @Scott-Sumner that`s amazing. Thank you very much for your help!