• Regex for end-of-file anchor

    11
    2 Votes
    11 Posts
    5k Views
    M Andre Z EckenrodeM

    @PeterJones and everyone else —

    Looks good, thanks!

  • On selection in the edit menu

    5
    0 Votes
    5 Posts
    452 Views
    Laurie StearnL

    Thanks for the heads up on the Edit Popup ContextMenu!
    My issue was the reverse of the OP’s in that the “Search on Internet” item was in the “On Selection” but not in the popup menu. The cause being the missing menu item in an older config file not over-written due to an other (resolved) issue.

  • How to Find a Line Number in Notepad++ (Search and Find shortcut)

    4
    0 Votes
    4 Posts
    22k Views
    Alan KilbornA

    @Ekopalypse said in How to Find a Line Number in Notepad++ (Search and Find shortcut):

    Do you mean the standard goto line dialog?
    Search->Go to

    @Vasile-Caraus said:

    Can I use a shortcut?

    Additional notes:

    pressing Ctrl+g will invoke it (there’s your shortcut!) double-clicking this area (the part highlighted in yellow) of the status bar will invoke it:

    6d3e4d75-4581-4d2e-ac18-4b51945652e5-image.png

  • Completion of HTML tags

    9
    0 Votes
    9 Posts
    436 Views
    Cyrille PiateckiC

    @PeterJones I take a long time to thank you for your help because I have a lot of problem with Jsxgraph … Nevertheless I have followed your advices and it seems to work correctly.

  • Notepad++ keeps messing up the colors of my user defined language

    2
    0 Votes
    2 Posts
    760 Views
  • Find character ranges across multiple lines

    8
    1 Votes
    8 Posts
    373 Views
    Kandice FelicianoK

    Thank you both. Thanks to the above 2 syntax I can rely on it to find any email address with a domain that I need. Since I very often use it to find emails on drive D or E. Previously this work took me quite a lot of time and trouble. Once again thank you 2

  • Find/Replace Help

    3
    0 Votes
    3 Posts
    313 Views
    Mark GrayM

    @PeterJones Thank you SOOO much!

  • "Recent" list in Win10 context menu does not show file without extension

    3
    0 Votes
    3 Posts
    959 Views
    Petra HandwergP

    Thank you @PeterJones for your quick reply and for confirming that it’s a Windows “feature”!
    I thought that I missed to change something in my Notepad++ configuration, that’s why I asked.

    As this is my “work” laptop (and the JumpList is working fine for np++ for “normal” files) I don’t want to install too many tools - only those I can justify that I need them for my work. ;)
    E.g. the plugins for xml and json - they are great!

    Thanks again!

  • "Replace" without "Find next"

    2
    0 Votes
    2 Posts
    176 Views
    Alan KilbornA

    @Tak-Li

    That is currently (where currently = up to and including 7.9.5) not possible.

    The workaround is to let it go “too far” and then press Ctrl+z and then Ctrl+Shift+z.
    This will “undo” the most recent replacement (the one you wanted to stop at) and then “redo” the replacement (and leave the caret at the location of the replacement).

  • A very slow typing experience...

    7
    0 Votes
    7 Posts
    3k Views
    guy038G

    Hello, @donniel-collera, @peterjones, @alan-kilborn and All,

    May be do this quick task, described in the post, below, just to verify if your keyboard parameters are OK ;-))

    https://community.notepad-plus-plus.org/post/29704

    Best Regards,

    guy038

  • Insert Carriage Return "CR" before "LF"

    3
    0 Votes
    3 Posts
    5k Views
    Alan KilbornA

    @Jose-Emilio-Osorio

    How to insert Carriage Return “CR” before “LF” at the end of each line ?

    They are probably already there and you need to do exactly nothing to insert them.

    If you are “unconfident” that Notepad++ is doing this for you, press the “Pilcrow” toolbar button…the one with this symbol on it:

    1096d341-751b-4d14-aa13-0890190fc3da-image.png

    In the Notepad++ toolbar, it is blue in color, not black.

    With that toolbar button in the depressed state, you will see the CR and LF in a Windows file, example:

    c1a3ed68-2955-43f0-98dd-669c5a52e220-image.png

  • 0 Votes
    10 Posts
    973 Views
    ludamo 0L

    Since experimenting further with the AutohotKey UDL I have found that this syntax “bleeding” can be limited / minimised / corrected by adding a space to the end of lines (I normally am a heavy user of tabs) especially those lines which seem to end a certain type of highlighting e.g. comments or lines with delimited strings in them.

    I also made another discovery, that a tab can be used as a delimiter in UDL. You can enter it by pressing Control+Tab between 2 spaces e.g. ((space tab space EOL)).

  • Find paragraph of X words containing multiple keywords ?

    22
    0 Votes
    22 Posts
    5k Views
    guy038G

    Hi, @n_antiyou and All,

    As I said in my previous post, you may mix some styles, from the 5 styles, available by default, to get other colors, in order to color all your keywords !

    Refer to this post by @Claudia-Frank, who, unfortunately, is no longer active on this forum ! Her contribution was quite important and she provided quantity of excellent Python scripts, too ! Let’s wish her the best and good coding moments ;-))

    https://community.notepad-plus-plus.org/post/27621

    With the help of the NppQCP plugin ( Quick Color Plugin ), I built up a Word image which recapitulates the main style combinations, with significant colors and their RGB coordinates

    3a6919c6-acd7-4a43-80fe-b56305397952-image.png

    Best Regards,

    guy038

  • Interface display boxes that I cant remove

    3
    0 Votes
    3 Posts
    820 Views
    Alan KilbornA

    It appears an issue on this was opened on github, but the author of Notepad++ closed it, citing not enough information. I’m not sure what more information people that this happens to could provide – I mean, you open the program and expect to see a reasonable UI, and you see…well, something like the above. Not sure what more there is to provide.

    Anyway, here’s the issue I mentioned: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/9760

  • File is saved, but it isn't saved

    2
    0 Votes
    2 Posts
    485 Views
    PeterJonesP

    @Paul-Huggins ,

    Nope. That is not happening at all.

    If you have saved the file, then close and re-open the file in Notepad++, and you see your changes, then the file has been written to disk in the path it claims it was saved to.

    I can think of two things that might be happening:

    You might be editing an INI file that lives within %Windir%\System or one of its equivalents, in which case you have likely hit the Windows OS’ File System Redirector After you save and write the file from Notepad++, maybe the original application was still open and re-wrote the INI file back to the way it thought it should be.
  • 0 Votes
    4 Posts
    241 Views
    guy038G

    Hi, @Cristian-tanasa, and All,

    I improved and generalized the process with these 8 new search regexes, in order to find part of a particular field n

    Of course, I assume that :

    Each row of the table contains the same number of fields

    The field delimiter is the double quote char ( " )

    The field separator is the semicolon ( ; )

    Any field is preceded and/or followed with a ;

    Any char, within a field, is different from, either, a " and a ; chars

    Here are these generic regexes :

    (?x) ^ (?: " ( [^";\r\n] )* " ; ) {n-1} " \K (?1)* # ALL chars, even NONE, of FIELD n (?x) ^ (?: " ( [^";\r\n] )* " ; ) {n-1} " (?1){#} \K (?1)* # ALL chars, even NONE, AFTER the #th char of FIELD n (?x) ^ (?: " ( [^";\r\n] )* " ; ) {n-1} " (?1){#} \K (?1){p} # p chars, AFTER the #th char of FIELD n (?x) ^ (?: " ( [^";\r\n] )* " ; ) {n-1} " \K (?1){p} # The p FIRST chars of FIELD n (?x) ^ (?: " ( [^";\r\n] )* " ; ) {n-1} " (?1)* \K (?1){p} (?=") # The p LAST chars of FIELD n (?x) ^ (?: " ( [^";\r\n] )* " ; ) {n-1} " \K # EMPTY string, at BEGINNING of FIELD n (?x) ^ (?: " ( [^";\r\n] )* " ; ) {n-1} " (?1){#} \K # EMPTY string, AFTER the #th char of FIELD n (?x) ^ (?: " ( [^";\r\n] )* " ; ) {n-1} " (?1)* \K # EMPTY string, at END of FIELD n

    Notes :

    Let f be the total number of fields and let m be the maximum number of characters of the field n. Then :

    The variable n is between the values 1 included and f included ( So n-1 is in range [0,f-1] )

    The variable # is between the values 0 included and m included

    The variable p is between the values 0 included and m included

    Let’s test these 8 real regexes, below :

    (?x) ^ (?: " ( [^";\r\n] )* " ; ) {5} " \K (?1)* # ALL chars, even NONE, of FIELD 6 (?x) ^ (?: " ( [^";\r\n] )* " ; ) {5} " (?1){10} \K (?1)* # ALL chars, even NONE, AFTER the 10th char of FIELD 6 (?x) ^ (?: " ( [^";\r\n] )* " ; ) {5} " (?1){10} \K (?1){3} # THREE chars, AFTER the 10th char of FIELD 6 (?x) ^ (?: " ( [^";\r\n] )* " ; ) {5} " \K (?1){5} # The 5 FIRST chars of FIELD 6 (?x) ^ (?: " ( [^";\r\n] )* " ; ) {5} " (?1)* \K (?1){7} (?=") # The 7 LAST chars of FIELD 6 (?x) ^ (?: " ( [^";\r\n] )* " ; ) {5} " \K # EMPTY string, at BEGINNING of FIELD 6 (?x) ^ (?: " ( [^";\r\n] )* " ; ) {5} " (?1){10} \K # EMPTY string, AFTER the 10th char of FIELD 6 (?x) ^ (?: " ( [^";\r\n] )* " ; ) {5} " (?1)* \K # EMPTY string, at END of FIELD 6

    Against the following sample text :

    Field 6 V "1000";"1";"1";"";"834600000";"";"1080668 / 13341845 This is technical";"1";"EN";"Call" "1000";"1";"1";"";"834600000";"1";"1080668 / 13341845 This is technical";"1";"EN";"Call" "1000";"1";"1";"";"834600000";"12";"1080668 / 13341845 This is technical";"1";"EN";"Call" "1000";"1";"1";"";"834600000";"123";"1080668 / 13341845 This is technical";"1";"EN";"Call" "1000";"1";"1";"";"834600000";"1234";"1080668 / 13341845 This is technical";"1";"EN";"Call" "1000";"1";"1";"";"834600000";"12345";"1080668 / 13341845 This is technical";"1";"EN";"Call" "1000";"1";"1";"";"834600000";"123456";"1080668 / 13341845 This is technical";"1";"EN";"Call" "1000";"1";"1";"";"834600000";"1234567";"1080668 / 13341845 This is technical";"1";"EN";"Call" "1000";"1";"1";"";"834600000";"12345678";"1080668 / 13341845 This is technical";"1";"EN";"Call" "1000";"1";"1";"";"834600000";"123456789";"1080668 / 13341845 This is technical";"1";"EN";"Call" "1000";"1";"1";"";"834600000";"1234567890";"1080668 / 13341845 This is technical";"1";"EN";"Call" "1000";"1";"1";"";"834600000";"12345678901";"1080668 / 13341845 This is technical";"1";"EN";"Call" "1000";"1";"1";"";"834600000";"123456789012";"1080668 / 13341845 This is technical";"1";"EN";"Call" "1000";"1";"1";"";"834600000";"1234567890123";"1080668 / 13341845 This is technical";"1";"EN";"Call" "1000";"1";"1";"";"834600000";"12345678901234";"1080668 / 13341845 This is technical";"1";"EN";"Call" "1000";"1";"1";"";"834600000";"123456789012345";"1080668 / 13341845 This is technical";"1";"EN";"Call" "1000";"1";"1";"";"834600000";"1234567890123456";"1080668 / 13341845 This is technical";"1";"EN";"Call" "1000";"1";"1";"";"834600000";"12345678901234567";"1080668 / 13341845 This is technical";"1";"EN";"Call"

    Super, isn’t it ?

    Best Regards,

    guy038

  • 0 Votes
    3 Posts
    311 Views
    PJP

    @guy038 thanks @guy038
    great solution :)

  • autocomplete for functions without ( )

    3
    1 Votes
    3 Posts
    215 Views
    Jonathan HolmgrenJ

    I was afraid that would be the case. Thanks for confirming.

  • Make Doc Switcher to display .ext

    9
    0 Votes
    9 Posts
    872 Views
    Alan KilbornA

    @Mayoares

    Doc Switcher panel doesn’t seem to get much love from the developers any more; just my observation. You probably won’t see any changes to its functionality, even if issues are opened about it. I could be wrong, though.

  • Bookmark sets of lines that does not meet criteria

    21
    0 Votes
    21 Posts
    6k Views
    guy038G

    Hello @alan-kilborn and All,

    I’ve found out a simple example of the advantage of the conditional feature !

    Let’s suppose that you have a particular tag <guy> and that you want :

    To delete the starting tag <guy> with, both, its leading and trailing space chars

    To delete the ending tag </guy> with its leading space char, only

    The simple and obvious solution is :

    SEARCH \x20<guy>\x20|\x20</guy>

    REPLACE Leave EMPTY

    Now, this shorter regex S/R, with a conditional expression, related to group 1, is :

    SEARCH \x20<(/)?guy>(?(1)|\x20)

    REPLACE Leave EMPTY

    I verified that the suppression of 500,000 starting tags and 500,000 ending tags, in one step, take the same time, whatever the regex syntax used !

    Best Regards,

    guy038