• No pop-up window after document modifications.

    Locked no pop-up
    2
    0 Votes
    2 Posts
    2k Views
    肖沐慈
    Hey, I have found the answer. 中文版:“设置”–>“首选项”–>“备份”–“记住…”复选框处取消打勾;in English, “setting”–>“preference”–>“back up”–"remember…"cancel the tick in the check box. BTW, I am the 7.2 version. It may be some difference in other software version.
  • search and replace/add

    2
    0 Votes
    2 Posts
    3k Views
    guy038G
    Hello, vk_Notepad_123, If I, fully, understand you : For each block of two lines, below, with an identical IP address nnn.nnn.nnn.nnn Random text1 nnn.nnn.nnn.nnn Random text2 Random text3 nnn.nnn.nnn.nnn Random text4 You would like to obtain, after replacement, the text below : Random text1 nnn.nnn.nnn.nnn Random text2 Random text4 abcd-efg-ijk If so, use the following S/R, in regular expression search mode : SEARCH ^.*((?:\d{1,3}\.){3}\d{1,3}).*\R\K.*\1\h*(.+) REPLACE \2\r\nabcd-efg-ijk IMPORTANT : Due to the \K form, you must click, exclusively, on the Replace All button ( DON’T use the step-by-step replacement, with the Replace button ) NOTES : This regex will work even if Random text1 and/or Random text2 and/or Random text3 does not exist This regex will work even if no blank character ( space or tabulation ), exists between the IP address and Random text4, in second line The part ((?:\d{1,3}\.){3}\d{1,3}) looks for four integers, from 1 to 3 digits, separated by the dot symbol. However, consider that this regex does not verify the integrity of the IP address. Indeed, this syntax would match the string 999.999.999.999, which is not, obviously, a valid IP address ! The IP address, preceded and followed by any range, even null, of characters ( .* ) and ended by its EOL characters ( \R ) is, then, forgotten by the regex engine, due to the \K syntax Now, it tries to match the second line : any range even null, of characters, followed by the SAME IP address, stored as group 1 ( \1 ), followed by possible horizontal blank characters ( \h* ) As the previous syntax (?:\d{1,3}\.){3} defines a non-capturing group, repeated 3 times, the remainder of line 2, Random text4 (.+) ) is, therefore, stored as group2 In the replacement part, this second line is re-written with Random text4 ( \2 ), only, followed by a line break ( \r\n ), and, finally, followed by the simple string abcd-efg-ijk Best Regards, guy038
  • Remove from context menu

    Locked
    4
    0 Votes
    4 Posts
    6k Views
    Claudia FrankC
    @Seth-Havok I don’t have a windows installation therefore I cannot say for sure. I would try to run a search for “edit with notepad++” using regedit. Cheers Claudia
  • Can I search and replace in more than one page at once

    replace search
    9
    0 Votes
    9 Posts
    5k Views
    guy038G
    Hi, kichererbse, I think that you may perform that specific S/R, simply, in Normal search mode ! Depending on the change of http into https must be run on all the links of your file or, strictly, on the addresses relative to the cdnjs.cloudflare.com site : Select the searched string http or all the contents between quotes In replacement, repeat the searched expression, just adding the s letter, after the string http Best Regards, guy038
  • removing duplicate lines

    3
    0 Votes
    3 Posts
    7k Views
    guy038G
    Hello, Robert Mundkowsky and Scott, @scott-sumner Nevertheless, the Notepad2 editor, for instance, has features for keeping only unique or multiple lines, while doing sort !! ( Select some text, in Notepad2 and hit the ALT + O shorcut to open the sort dialog ) @robert-mundkowsky Here are, below, two useful links, on how to realize such operations, with the help of the N++ regex and sort features : https://notepad-plus-plus.org/community/topic/12490/i-want-to-keep-only-unique-lines/2 https://notepad-plus-plus.org/community/topic/12569/delete-duplicate-lines/7 The first one gives you two solutions ( WITH or WITHOUT change of the file’s content’s ) to ONLY keep : All the unique lines All the duplicate lines The first item of all the duplicate lines The second one gives you a method ( WITHOUT change of the natural order of the file’s contents ) to ONLY keep : All the unique lines AND the last item of all the duplicate lines, I’m, still, studying these questions, presently ! I’ll, also, try to see if these operations could be easily inserted in macros ! So, see you later, for some updates :-)) Best Regards, guy038
  • I've lost all my open tabs...

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Alex KarasevA
    Oh, I’ve found a backup folder, I’m saved )
  • Function List for Simatic

    functions functions list customize
    20
    0 Votes
    20 Posts
    15k Views
    MAPJe71M
    Yes that can work, in your case! Change commentExpr to "(?m-s:;(?!\$PATH).*?$)".
  • Spell-Checker doesn't work

    Locked spell checker
    3
    0 Votes
    3 Posts
    5k Views
    coffent1C
    Thanks - that worked!
  • 0 Votes
    3 Posts
    2k Views
    nekokwantixN
    sorry, I guess it’s “tabs” not “tags” but what I’m looking for is scrolling among the pages to drag’n drop with mouse only (sorry for my english! :-) )
  • Can not see all bulgarian letter

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Tab set at 4 spaces - only moves 2.

    3
    0 Votes
    3 Posts
    3k Views
    Claudia FrankC
    @Max-Russell this setting means that if pressing the tab it jumps to the next tab stop which would be a multiple of 4 in your case. E.g pressing tab after “a” jumps to e, after “b” still jumps to e …after “d” jums to i abcdefghi a e ab e abc e abcd i Cheers Claudia
  • Block uncomment does not work?

    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    @Byron-Smith afaik ASP language doesn’t have block comment/uncomment feature. Select the lines and use single line comment/uncomment - works. Cheers Claudia
  • What Print Preferences Header Variables are available?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    @Michael-Randall not sure if it is the full list but worth looking anyway. http://docs.notepad-plus-plus.org/index.php/Defining_User_Commands Cheers Claudia
  • how to turn settings back to normal?

    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    @Henrik-Halvorsen-Kvamme depends what you have changed, npp stores it in various xml like config.xml or shortcuts.xml etc… If you delete the file it gets recreated with default settings. Cheers Claudia
  • override NppFTP.xml

    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    @Claudio-Schneider if backup was enabled you might look at either the APPDATA\notepad++ or at your npp installation directory for a backup subdirectory. Cheers Claudia
  • macros missing after upgrade to 7.1

    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC
    @Howard-Lattimore could it be that you changed your installation type from APPDATA to local or vice versa? If so, you might check the shortcuts.xml in either APPDATA\notepad directory or in your installation directory. Cheers Claudia
  • Using a user-defined language as default?

    12
    0 Votes
    12 Posts
    13k Views
    Claudia FrankC
    @Jim-Dailey sorry for late answer - well it depends, first version of the script looks for new files as user was asking for any new file feature. The modified version for Rich Goldman uses fnmatch as he was asking for a way to look pattern specific. @Rich-Goldman beside the solution Scott mentioned you might think of checking only the current file if it matches your pattern and run the MenuCommand to enable your UDL. All other files get set once switched to them - as you already stated. So something like if fnmatch(notepad.getCurrentFilename(), 'YOUR_PATTERN'): ... do your stuff ... before or after your callback definition. Cheers Claudia
  • Synchronize line highlight?

    Locked
    4
    0 Votes
    4 Posts
    4k Views
    Claudia FrankC
    @Redwood-Ryan Do you know Compare plugin? I assume that it could be very helpful for you. Cheers Claudia
  • MS Linedraw Characters in Notepad ++

    3
    0 Votes
    3 Posts
    3k Views
    guy038G
    Hello flywire, I suppose that your current font is, for instance, MsLineDraw.ttf or some equivalent font ! Then, to correctly see the characters, with code between 128 and 255, just use the N++ menu option Encoding > Character Sets > Western European > OEM-US And if you select the menu option Edit > Character Panel, you should see the glyphs of all the possible characters, in the US encoding, which should be identical to the ones generated by the MsLineDraw.ttf font :-) Best Regards, guy038
  • python script: additional chars and smarthighlight

    9
    0 Votes
    9 Posts
    5k Views
    Gytis MikuciunasG
    Scott, you’re right. I have updated my noteped++ to the newest version and now it works as expected. thx a lot!!!