• No longer able to select / replace tabs, spaces, underscore

    8
    0 Votes
    8 Posts
    5k Views
    Scott SumnerS

    @Scott-Sumner

    Okay, so I’ll reply to myself since no one else has. However, if I like my own explanation, I can’t +1 it ! :(

    My experimentation has shown me that the “rolling-color-cursor” can represent either NO INPUT in the “Find what” box, or input that consists only of line-endings. I’m rather shocked because I’ve never noticed this behavior before. I thought someone could elaborate on its “deeper meaning” or history, if there is any. But I guess not…

    +1

    :-)

  • duplicate rows

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    guy038G

    Hello Νικόλαος Κερασιώτης,

    If so, just refer to the post, below :

    https://notepad-plus-plus.org/community/topic/12490/i-want-to-keep-only-unique-lines/2

    This post shows TWO methods :

    A first one which does not keep the original order of the lines

    A second one, much longer, but that will keep the original order of the lines

    From what you replied to Scott, I suppose that the cases B) or C), in METHOD 1 section should be convenient to you :-))

    Best Regards

    guy038

  • Notepad++ replace all the strings between two characters.

    Locked
    4
    0 Votes
    4 Posts
    12k Views
    Shakespeare WillianS

    @guy038
    Thanks for your replay, your solution works. That’s the exactly answer what I want.

  • Problem with launching

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • extending notepad with modules (where are do you save them)

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    Nolan JorgerN

    I’ve already added Python Script as an add-on to my Notepad++ editor and have written a few scripts to automate some editing tasks. Now I want to add a module where I can declare, instantiate and use constants in my projects. I found a solution for this which is a simple module/class, but doesn’t specify where this should be stored so that all my Python Script projects can include/import this.

    Isn’t there a default folder where extensions/modules/classes should be stored?

    Any help on this subject will greatly appreciated.

    Nolan

  • Copy bookmarked lines

    Locked
    3
    0 Votes
    3 Posts
    10k Views
    Måns ThelanderM

    Thanks a lot :-)

    BR Måns

  • How to open and edit .tpl files?

    4
    0 Votes
    4 Posts
    7k Views
    PeterJonesP

    I had no problem reading the TPL file you linked in Notepad++. However, the image you linked showed a different file name. Did you really upload the same file that you’re trying and failing to read?

    Running Notepad++ > ? > Debug Info > Copy debug info into clipboard, and pasting that into your reply, might give us some clue as to what’s going on. For example, my working configuration is:

    Notepad++ v7.2 (32-bit) Build time : Nov 2 2016 - 11:26:20 Path : C:\Program Files (x86)\Notepad++\notepad++.exe Admin mode : ON Local Conf mode : OFF OS : Windows 7 Plugins : ComparePlugin.dll dbgpPlugin.dll mimeTools.dll NppConverter.dll NppExec.dll NppExport.dll NppFTP.dll NppTextFX.dll PluginManager.dll PreviewHTML.dll PythonScript.dll

    By the way, when writing/editing a post or reply on the forum, you can get help for Markdown (the formatting engine for this forum) by clicking on the ? next to the word “Compose” in the upper-right corner of the edit box:

    This shows that, to embed an image (to show it in the post), you can use the following syntax: ![](http://i.imgur.com/swcst1Z.png)

  • Don't Understand Encoding & Language Settings

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Edward-Sappo

    Language refers to programming languages and if you select one,
    than the current document gets colored based on the programming language specifics.

    Encoding refers to byte representation of text. A simple text, as written like
    the one I’m typing right now, can be saved differently. An editor needs to know
    this in advance to show the characters correctly.
    Npp uses mozillas chardet library to find out how the text is saved and which codec
    needs to be used to decode the file to show the proper characters.
    But because of the problem that most codecs share multiple characters
    npp (correctly, chardet library) might identify the wrong codec and therefore you have the menu to set it manually to the right one.
    Or you can use it to convert it to another codec.

    Cheers
    Claudia

  • Notepad++ Changes Tilde's in File to Line Feeds

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    Claudia FrankC

    @infoalisaa

    the reason why asking for the file is because I assume that it
    isn’t an ascii tilde but something else.
    Why do you assume it must be a tilde?
    Because some other app is showing it like that?
    Can you create such a file with this app and upload it?

    Cheers
    Claudia

  • How to add new 8 bit codepage into encodings menu?

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Auto fishing script help needed please

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    MAPJe71M

    Sorry to say but IMO this is like asking your car dealer for help on fixing the bumps in the road on the way to your destination!

    I think you will have a higher chance of finding help in a forum/community related to Trove.

  • app stucks when I do ctrl+shift+M for string

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Nadezhda-Bu

    To do what? Are you using xml tools? If so, this combination refers to validate now
    but your data isn’t xml!!

    Cheers
    Claudia

  • Arabic letter replacment

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    hu maH

    Well, it appears that i have to convert the hole text with Arabic presentation form-b coding in order to achieve what I want, luckly I found a tool to do that for me, also i have to reverse the text RTL, which is not hard to do.

  • Numbers replaced with other characters

    6
    0 Votes
    6 Posts
    3k Views
    Claudia FrankC

    @Charlie-Murrell

    Because you said that this happens with other software as well we have to assume
    that this is a general issue. Afaik, beside a nasty virus/malware, those are the only
    two areas which would explain your behavior.
    So if you only have ONE language defined, which is your native one and you
    didn’t reconfigure its original settings I have to assume that the font you use
    is broken. Did you check this by using another font?
    Menu Settings->Style Configurator.
    Which OS and plugins are you using? (can be found in menu ?->DebugInfo)

    Cheers
    Claudia

  • How filter away everything except for the bookmarked lines?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    cmeriauxC

    You can use the “copy bookmarked line” function. Then copy in a new buffer and do what you need to do.

  • No pop-up window after document modifications.

    Locked
    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
    5k 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

    9
    0 Votes
    9 Posts
    4k 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
    6k 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