• 0 Votes
    4 Posts
    418 Views
    Alan KilbornA

    @Master-Of-Attack said in whenever i color something, save, close the app and open the same thing again all the colors are gone!!:

    is there really no way to save it? maybe even something like a plugin

    If you are willing to use the PythonScript plugin I present a script here for doing it: https://community.notepad-plus-plus.org/post/46533

  • Removing text from middle of line of text

    2
    0 Votes
    2 Posts
    170 Views
    Alan KilbornA

    @jeffvb9 said in Removing text from middle of line of text:

    How can I accomplish this?

    I don’t see any before/after difference…?
    But there’s probably something there that this site consumed.
    Use the </> in the compose toolbar to format your data.

  • Add CRLF every 120 cars

    2
    0 Votes
    2 Posts
    181 Views
    EkopalypseE

    @Gaetan-Doutriaux

    something like that should do the job

    find: .{120}
    replace: $0\r\n

  • Old Toolbar Icons?

    1
    1 Votes
    1 Posts
    230 Views
    No one has replied
  • Divide numbers in quotes by two

    3
    0 Votes
    3 Posts
    378 Views
    Keith ThompsonK

    @PeterJones thank you!

  • Regex needed!! Please help

    3
    0 Votes
    3 Posts
    731 Views
    Francesco FerrariF

    Thanks!!! You just saved hours of editing!!! :)

  • Format of search results

    6
    0 Votes
    6 Posts
    2k Views
    Alan KilbornA

    @Александр-Булатов said in Format of search results:

    I would prefer an another option for it.

    You are free to request that the Notepad++ developers make this output format configurable. I’d say the likelihood of it happening are close to zero, though.

    To make an official feature request, see the how-to here: https://community.notepad-plus-plus.org/topic/15741/faq-desk-feature-request-or-bug-report

  • Something amazingly useful I fear is not a thing regarding deleting text

    6
    0 Votes
    6 Posts
    392 Views
    EkopalypseE

    Yes, but copy selected text does not need to have multiple selections active at the time of doing the copy.

  • 0 Votes
    3 Posts
    583 Views
    artie-finkelsteinA

    There is that new black hole known as ‘Dark Mode’ (introduced in Npp 8.0), but just like any theme package, you must be prepared to spend a fair amount of time tweaking both it [ Settings > Preferences… > Dark Mode ] and your favored theme file [ Settings > Style Configutator… ]. From what I’ve gathered, there are still a few spots where Windows insists on controlling a portion of the user interface, so expect “bleed through”.

  • How do I remove a word suggestion in autocomplete?

    2
    0 Votes
    2 Posts
    818 Views
    PeterJonesP

    @Scott-Nielson ,

    Sorry. As far as I know, when it’s enabled, Notepad++'s builtin auto-completion just suggests words based on the first N characters (where N can be changed in the auto-completion preferences), compared to other words in the current document, maybe in other open, and words or functions defined in the auto-completion files for the active Language lexer. I do not believe there is a way to remove words from that list.

  • When I change font Japanese shows sideways

    2
    0 Votes
    2 Posts
    227 Views
    Jason BJ

    its possible that font’s i tried have issues, i tried another nice looking font and has no issues.

  • how to bulk "keep" only last 10 lines of code in 122 tabs

    8
    1 Votes
    8 Posts
    486 Views
    PeterJonesP

    @guy038 ,

    ^.*\Z

    I knew that a single ^.*\Z could match zero characters; I intended it that way in case the last line of the file was an empty line (ie, a file that has a final newline). And that explains why one of the alternate versions that I played with but didn’t publish was off-by-one when I had that (though I didn’t put the two together at the time).

    But I was suprised that ten instances of \Z (from (^.*\Z){10}) could match the single end of the file. I know it’s a “zero width” match, but I hadn’t thought about the fact that being “zero width” meant that two or more could match in a row. But yes, I justed tested, and confirmed that you can have a regex with multiple EOF in a row and have it still match… or multiple ^ or $ as well. Interestingly. \Z{10} is invalid, but (\Z){10} is allowed – so you cannot multiple a true zero-width expression (which makes sense), but if you have a group that happens to contain only a zero-width expression, you can multiply that expression.

    Thanks for helping me learn something new today. :-)

    (?-s)^.*\R(?=(?:^.*\R|.+\Z){10})

    I was trying to avoid repeating myself with having to put the dots in both alternations. (?-s)^.*\R(?=(?:^.*(?:\R|.\Z)){10}) works just as well… but yours actually requires less typing, so my adherence to DRY made mine longer. :-)

  • Extended ASCII ALT+xxx char Display issue

    9
    0 Votes
    9 Posts
    3k Views
    PeterJonesP

    @David-Tcheki wrote,

    OEM-850

    BTW: OEM-850 / CP850 was the default codepage in Western Europe. US Computers default to CP437 (OEM-US), so their table of ALT+### is a bit different:

    a4eebea5-5263-452d-b9b6-9d9424215403-image.png

    As the Wiki: Alt Codes page points out,

    The familiar Alt+number combinations produced codes from the OEM code page (for example, CP437 in the United States)[c], matching the results from MS-DOS. But prefixing a leading zero (0) to the number (usually meaning 4 digits) produced the character specified by the newer Windows code page, allowing them to be typed as well.

    So future readers on a US machine would want to use this table as their map, not the CP850 table shown previously.

  • Recent file

    2
    0 Votes
    2 Posts
    149 Views
    PeterJonesP

    @Donald-Milotte ,

    In my recent file list I have files in there I haven’t opened for a long time! One from 2019!

    Congratulations, I guess?

    File > Empty Recent File List will clear that whole list, if you don’t want it there any more.

    Or Settings > Preferences > Recent Files History allows you to set a maximum number of entries. So if File2019 is in the 15th slot, you could change your max list to 10, and the next time you enter Notepad++, it will only have 10 entries, so the ones older than TenthFile will no longer be listed.

  • Removing unwanted text in multiple lines

    2
    0 Votes
    2 Posts
    152 Views
    astrosofistaA

    @Brentley-Hefner

    Yes, I think so. Try the following regex:

    Search: (?-s)^\w+ ([^ ]+).* Replace: $1

    Put the caret at the very beginning of the document, select the Regular Expression mode and click on Replace All.

    Hope this helps.

  • Regex Help Wanted - Delete all lines containing "STRING"

    7
    0 Votes
    7 Posts
    802 Views
    Gary SmithG

    @PeterJones said in Regex Help Wanted - Delete all lines containing "STRING":

    (?-is)^.?System Tag.(\R|\z)

    Worked flawlessly , thanks a lot folks for all your help, just saves me a whole bunch of work :)

  • Distorted display of the Notepad ++ window

    2
    0 Votes
    2 Posts
    507 Views
    PeterJonesP

    @Alex-Hoesli ,

    This is a known issue (https://github.com/notepad-plus-plus/notepad-plus-plus/issues/9717) mentioned multiple times in the forum.

    Some people have had luck by rebooting, or changing to administrative mode, or updating video drivers.

  • Search exact

    2
    0 Votes
    2 Posts
    154 Views
    EkopalypseE

    @Alex-Danko said in Search exact:

    Hi everyone,
    i want to search for a G0 which is followed only by a letter and not by a number.
    Example:
    G0X5.Y105.
    G01Z0.2
    G01X5.Y-5.
    G0Z5.
    Search result should be only those lines:
    G0X5.Y105.
    G0Z5.
    Is it possible?
    Thanks in advance.

    Something like this: G0[A-Za-z] with a regular expression search should accomplish what you want.

  • Function list not working

    6
    1 Votes
    6 Posts
    2k Views
    p rP

    Thank you very much.
    Wonderfull.
    Yes, of course, the <parsers>…</parsers> was the problem… holy shit
    Nice weekend
    Greetings
    Peter Ritzmann

  • Help to replace signs

    10
    0 Votes
    10 Posts
    528 Views
    serg othS

    @Alan-Kilborn Thanks a lot. Everything is clear