• Search and replace

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    Parpaluck209P

    @Helloiam-Thomas

    The easiest way, without regex:

    Select the bloc you wanna replace and press Ctrl+H. Npp fills the Find what box automatically, with the proper codes inserted (although invisible, unless you try Find in files first; the results panel will show the Find string with the \r\n codes inserted properly).

    Select the text to Replace with. Unfortunately, Notepad++ does NOT fill the box with the proper codes automatically. You need insert the \r\n codes at the end of each line manually.

    some text**\r\n**
    some other text**\r\n**
    Comments**\r\n**
    Comments**\r\n**
    \r\n
    (Value 1<)\r\n

    Go to the end of each line and press Delete (it deletes the EOL codes, LF or CRLF).

    It is a one line bloc now. Select the new bloc of text and paste it into the Replace with box:

    some text**\r\nsome other text\r\nComments\r\nComments\r\n****\r\n***(Value 1<)*\r\n

    Voilà!

  • How to show Emoji in npp?

    Locked
    2
    0 Votes
    2 Posts
    7k Views
    Claudia FrankC

    @hh-hh

    Fonts are part of the operating system, so try to find one which fits your needs and install it.
    Afterwards use Settings->Style Configurator or define an UDL and choose the font you installed.
    Never tried it myself, but I assume it should work.

    Cheers
    Claudia

  • langs.xml missing when starting notepad++ from batch script

    3
    0 Votes
    3 Posts
    2k Views
    johann woeckingerJ

    After some pausing & thinking i digged into the problem again and i think i was hit by https://github.com/notepad-plus-plus/notepad-plus-plus/issues/3088. After reinstalling with (or better “without” the dont-use-APPDATA-option) it works like a charm.
    Sorry for bothering you,
    br johann

  • UDL limitations -- what's the alternate for syntax highlighting?

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @fuhrmanator

    may I ask for what you need to define the blank lines?
    If I understand this correctly, it is only used to let the GIFT engine know when
    an new question starts.
    Even if it could be done, it doesn’t get visualized.

    What am I missing?

    Cheers
    Claudia

  • i want to copy same pregraph paragraph 5 time

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Jackson-Bruch

    for the sample data provided you could use a regular expression to search and replace
    Find what:

    (?s)G1 .*?G92 E0 ; reset extrusion distance\R

    and
    Replace with:

    $0$0$0$0$0

    This matches everything starting with G1 and ending with
    G92 E0 ; reset extrusion distance followed by an eol char (make sure
    you last line posted has this as well)

    5x $0 means 5 copies from what has matched.

    Cheers
    Claudia

  • open file shown in find results

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    jonhpJ

    thanks, the one thing I didn’t try. works great. jon

  • Regex matching two lines and results

    3
    0 Votes
    3 Posts
    5k Views
    iyxI

    Thanks a lot!!

    Works great.

    (“Bookmark line” need to be checked, but that’s obvious)

  • Problems with Plugin Manager

    3
    0 Votes
    3 Posts
    4k Views
    JDarthenayJ

    Sorry, I am watching my topics but I don’t see where I get any notification or mail… Thanks for trying to help me. (I don’t know what, I believe I already told you this somewhere…)

    I updated PM as you suggested, this solved my problem but I have another one. I try to install the TextFX plugin, but I get an error after clicking “Install”. Actually I get the same error when trying to add many plugins I tried to add: “Installation of xxxx failed.”

  • Macro for ANSI encoding

    Locked
    5
    0 Votes
    5 Posts
    3k Views
    Claudia FrankC

    @Nicole-Sigaud

    if you edit shorcuts.xml you need to restart npp to make it happen.
    In regards to the different action types you might want to take a look
    here
    .

    Cheers
    Claudia

  • Issue #3316 can anyone else reproduce.

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    RHscitechR

    Thanks for confirming.

  • Notepad++ no longer saves temp files

    5
    0 Votes
    5 Posts
    9k Views
    glennfromiowaG

    I’ve noticed that if you have Multi-Instance turned on, the Backup feature only works on the first instance opened. For additional instances, you need to save/backup the files manually. Is this the issue?

  • Remove language highlighting

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Jim DaileyJ

    @shravan2x
    Under the Language menu, look under “N” for “Normal Text”.

  • Is the Community search feature broken?

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    cipher-1024C

    I’d also add that the NodeBB site has a lot of reports about broken searches, but since we don’t know what search plugin this site uses, it’s hard to tell what’s going on. But I would agree with Jim, the site search is very broken. Searching “langs” in the title only, you get things like “links” or “long”. I’ll take a page from Claudia’s book and use a search engine, but that won’t help with random people coming here to search for issues and then promptly giving up and putting in duplicate posts.

  • First occurrence of series of words in file

    7
    0 Votes
    7 Posts
    5k Views
    guy038G

    Hi, @zeff-wheelock and @scott-sumner,

    Scott, your regexes are exact, of course ! In addition, searching for the last occurrence makes sense, as we want to know the final state of all these servers.

    However, I must miss something ! To my mind, we should search for the last line, with the word connected, for each server, ONLY IF a previous line, with the word disconnected, for the according server, has not been found !

    For instance, if we consider the part of the Zeff’s log, below :

    05/23/2017 05:04:09 AM SMTP Server: qwerty321f.domain.com (xxx.xxx.xxx.xxx) connected 05/23/2017 05:04:10 AM Router: Transferred 1 messages to SERVER004/DOMAIN via Notes 05/23/2017 05:04:10 AM SMTP Server: Message 0031D206 (…) received 05/23/2017 05:04:10 AM SMTP Server: qwerty321f.domain.com (xxx.xxx.xxx.xxx) disconnected. 1 message[s] received

    To my mind, it looks like, on 05/23/2017 05:04:10 AM, the server “qwerty321f” is disconnected. No ? Of course, I suppose that the string xxx.xxx.xxx.xxx, in the first and last line, just above, represents the same IPV4 address !

    Cheers,

    guy038

  • Convert to ANSI

    8
    0 Votes
    8 Posts
    76k Views
    Jim DaileyJ

    @Rafael-Lopes-Vivian

    I think part of what is in play here is that UTF-8 is the default encoding for an HTML-5 file.

    The characters that make up a “text” file are code points. A character encoding scheme maps the code points it understands into numbers that are stored in the file.

    UTF-8 and ISO-8859-1 are two different character encoding schemes. A file can technically be encoded in one or the other (or some other scheme entirely) but not in both.

    However, when a file contains only code points that are encoded identically by 2 or more encoding schemes, then, unless there is some special meta-data in the file to indicate which encoding scheme is being used, the “proper” scheme is not knowable from the file’s contents.

    UTF-8 is a variable-length encoding (the size of the number each code point is mapped to varies); ISO-8859-1 is a fixed length encoding (the size of the number each code point is mapped to is 1 byte).

    Since ISO-8859-1 represents each code point in a byte, it can only encode 256 code points, the first 256 code points of the Unicode character set. UTF-8 can be used to encode most (if not all) code points of the UNICODE character set.

    Code points 0 - 127 are encoded identically by the UTF-8 and ISO-8859-1 schemes. Code points 128 - 255 differ by becoming a 2-byte sequence with UTF-8 whereas they are single bytes with ISO-8859-1.

    So, if an ISO-8859-1 encoded file contains any code point from 128-255, then it will be a different size than a UTF-8 encoded file that contains the same code points.

  • Dot as separator

    2
    0 Votes
    2 Posts
    3k Views
    Claudia FrankC

    @Aleksei-Samov

    not sure if this is a possible solution but
    what if you define a delimiter with

    open=c4d.
    close=,

    and allow nesting with keywords and numbers and additional delimiters if needed?

    Cheers
    Claudia

  • Search results won't highlight hits

    10
    0 Votes
    10 Posts
    5k Views
    Claudia FrankC

    @Harry-Binswanger

    glad you solved it.

    Cheers
    Claudia

  • File > Open dialog doesn't autocomplete on one of my computers

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Bill ShermanB

    Okay, I’ll compare the versions tonight.

  • good sugestion user experience

    Locked
    1
    0 Votes
    1 Posts
    922 Views
    No one has replied
  • replace function

    49
    0 Votes
    49 Posts
    54k Views
    go2toG

    @go2to said:
    Several other editors accept direct copy and paste in the replace-with box, be it CR+LF, LF or combination of both. They are probably written in C++. But I think it can be done in any language since CR and LF have the same codes.\r\n\r\nDon is busy now with other issues in 7.4.1. I saw there are problems with replacing again in several open files.\r\n

    It is now one line after deleting CR+LF and adding \r\n. Everything is pasted in the replace box.
    It works flawlessly in the current file, or all open files, or in find in files.