• Finding numbers and batch perform arithmetics in text?

    3
    0 Votes
    3 Posts
    318 Views
    Ciprian PopaC

    @alan-kilborn Hi Alan,
    Thank you for that piece of code!

  • New Bug in 8.1.9.2

    3
    0 Votes
    3 Posts
    327 Views
    PeterJonesP

    @alexander-groh ,

    Deleting a topic after it’s been answered is considered rude. The topic has been restored by a moderator.

  • Default for C++ language

    6
    0 Votes
    6 Posts
    1k Views
    PeterJonesP

    @trevor-w said in Default for C++ language:

    that worked.

    Glad it worked for you.

    this should be the solution to @queenidog1 problem too.

    Doubtful. As explicitly stated, the original post was about pasting text into a new document (that is, what you get when you open Notepad++ with no previous session open, or what you get from a File>New), whereas your question was how to treat an already-existing file that you open with File>Open or equivalent. Those are two separate things, and the answer I gave to each is the right way of handling those two separate situations.

  • Abnormal scroll at end of the file

    3
    0 Votes
    3 Posts
    332 Views
    L

    @terry-r Yes! I solved. Thank you

  • Word Wrap should be a local setting for each tab

    3
    1 Votes
    3 Posts
    303 Views
    Alan KilbornA

    @Steve-James

    If you are willing to “script” it, you can find a workaround to the native deficiency HERE.

  • Count Blank Rows

    4
    0 Votes
    4 Posts
    2k Views
    Alan KilbornA

    @alan-kilborn said in Count Blank Rows:

    Maybe change your regular expression to ^\s*\R ?

    Yea…my advice was bad. :-(
    It will count several blank lines in a row as one.
    Go with the Peter solution.

  • Remove extra NP++ description from "Open with..." menu!

    8
    0 Votes
    8 Posts
    807 Views
    JamesWebbJ

    @ludamo-0 said in Remove extra NP++ description from "Open with..." menu!:

    @ten2120 Well again the details are a little hazy but there are a number of programs which have this value. The simplest would be wordpad.exe seeing it is built in to windows, or wmplayer.exe. Also common programs like vlc and irfanview have it (originally I think). I may have used procmon from SysInternals to see what keys are referenced when R-clicking in explorer.

    Thanks. Big help, I would check it out (SysInternals). 👍

  • Find and Replace in Column Selection Mode

    4
    0 Votes
    4 Posts
    489 Views
    Alan KilbornA

    @alan-kilborn said in Find and Replace in Column Selection Mode:

    I will be posting a Pythonscript with this capability “soon”.
    Watch for it.

    This was finally done HERE.

  • Opened files tab vertical, but with horizontal buttons

    5
    0 Votes
    5 Posts
    1k Views
    guy038G

    Hello, @grzegorz-szyszło, @peterjones, @alan-kilborn and All,

    OMG ! I must had been very tired, yesterday, when I posted ! Of course, you’re right ! Thanks, Alan.

    BR

    guy038

    P.S. :

    So I suppose that this option, below, is quite useless !!

    8b3f3fff-5944-454f-bc9d-11ff25f9adc2-image.png

  • Language definition file has no effect... why?

    2
    0 Votes
    2 Posts
    582 Views
    PeterJonesP

    @jonathan-sachs ,

    User Defined Languages do not show up in the alphabetized Language > R or similar… they show up at the bottom of the Language menu, below the Language > User Defined Language > … submenu (for your v8.1.3; or, if you are in as old of a Notepad++ as Steen-Hultin’s UDL screenshots show, below the Language > Define Your Language…).

    e3d44579-0ec0-439b-996e-a50408847df3-image.png
    … in my screenshot, ABC, Markdown (preinstalled), Markdown (preinstalled dark mode), and TI-Basic are all UDL that I can select.

    The file UserDefineLangs.xml contains an entry for this UDL.

    If that’s true, then Language > reStructuredText should show up near the Markdown entry, and Language > Define Your Language (or in a modern Notepad++, Language > User Defined Language > Define Your Language) should have reStructuredText in the User Language pulldown – see that mine shows the same languages in that pulldown that were in my menu screenshot:
    fe9a377a-d24f-43a1-989f-e69c334017b4-image.png

    If you cannot figure it out from this, you might want to give us a screenshot of one or both of those locations to aid in debugging, along with going to the ?-menu Debug Info entry, clicking on the Copy debug info into clipboard hyperlink, and paste that into your reply as well.

  • Remove Repeated Words and Symbols

    2
    0 Votes
    2 Posts
    1k Views
    guy038G

    Hello, @kloruklass and All,

    Given your ( uniq ! ) example :

    dmg_sm0993_event (summonedtable) 0039-event [damage=hit_defend_fail_se_0039_type=slash_low] [damage_fail_type=defend_fail] {!} {r} {m} {s} {e}

    With the following regex S/R :

    SEARCH (?-s)[^\w{}\r\n]+(?:\x20*({.+?})|)

    REPLACE ?1:_

    Tick the Wrap around option

    Select the Regular expression search mode

    Click once, on the Replace All button

    You’ll get this temporary text :

    dmg_sm0993_event_summonedtable_0039_event_damage_hit_defend_fail_se_0039_type_slash_low_damage_fail_type_defend_fail

    Now, using this second regex S/R :

    SEARCH (?i-s)(([a-z0-9]+)_.*)_\2(?:(_)|\R|\z)

    REPLACE \1?3_

    Click on the Replace All button, several times, till you see the status line 0 occurrences were replaced in entire file ( IMPORTANT )

    And you’ll get the expected text :

    dmg_sm0993_event_summonedtable_0039_damage_hit_defend_fail_se_type_slash_low

    Best Regards

    guy038

  • [Meta] Forum Tweaks

    12
    1 Votes
    12 Posts
    879 Views
    guy038G

    Hello, @artie-finkelstein and All,

    Yes, your different points of view are quite sensible ! It’s just that I still used to think about a laptop as a limited storage device ( My old Win XP machine had two partitions : C: of 10 Gb and D: of 30 Gb, only ! ). So, let me a couple of weeks to fully realize that my new Win 10 laptop has 415 Gb of free space !!

    I first considered to recopy all my 30 Gb pack of photos ( already saved on two different external HDD and on a 64 Gb USB key ) on the SSD disk of my HP machine. But, you’re right ! This operation is useless : I just have to keep the USB key and the tiny 2 Tb HDD, recently purchased, in my laptop bag, for any further photo session !

    Cheers

    guy038

  • Subtractive searching.

    3
    0 Votes
    3 Posts
    411 Views
    Steve HajduS

    @peterjones

    This is great, thank you very much

  • [tip] F7 toggle search panel

    1
    1 Votes
    1 Posts
    350 Views
    No one has replied
  • Is anyone else interested in an Acrolinx plugin?

    1
    1 Votes
    1 Posts
    210 Views
    No one has replied
  • High Processor Usage

    5
    0 Votes
    5 Posts
    837 Views
    pnedevP

    @Guilherme-Gueringh ,

    Do you have your periodic session backup turned on?
    If yes, could you please try disabling it and see if the CPU usage is still high?
    Can you also check the CPU usage when you disable your network connectivity (all of it - Ethernet cable and WiFi)?

  • Latest Update 8.1.9.1 issue

    10
    0 Votes
    10 Posts
    527 Views
    PeterJonesP

    @marlon-dana ,

    As far as I know, files that begin with RIFF and then binary data are Resource Interchange File Format, which are the “container” format used for WAV music files and similar binary data.

    Like I said, it looks like the CFG file at that name has been overwritten with data that isn’t normally in a .cfg. I cannot see how opening it in Notepad++ could have caused that. And if you open it with Windows Notepad (notepad.exe, that came with your OS), I am sure you will see the RIFF and some of the other plaintext, and not be able to see the original CFG data.

  • 0 Votes
    15 Posts
    5k Views
    Alan KilbornA

    @scott-livingston

    sometimes I really have to look to find it’s secret pop-up location!

    points to the Find Dialog’s stealthy appearance

    I use 4 monitors as well most of the time, and I have no such problems. There are no secrets/stealth operations here – the Find dialog will remain where YOU last put it. There should be no need to go hunting for it, just don’t put it in a different location at different times – and if you do, remember where that was.

    if <Ctrl-F> could at least open the dialog on the same monitor

    Think of how many users that would not want that; I’m one of them. I’ll go out on a limb and say that most users of 2+ monitors have N++ full-screen on one of them, and a Find window appearing on that, right in the way of the text they are editing, would be terribly annoying as they now have to grab that Find window and move it somewhere else, to see their text behind it.

  • Double Ctrl-F no longer moves Find dialog

    3
    0 Votes
    3 Posts
    419 Views
    Scott LivingstonS

    @peterjones Thanks for your reply PeterJones, I have taken my response to that thread.

  • K-Lite Codec Pack part of NP++?

    4
    0 Votes
    4 Posts
    1k Views
    ClaBrownC

    OK guys, thanks for the info. Didn’t think NP++ was using any Codecs, but with the install dates matching and the depth of NP++ also couldn’t rule it out. Yes, I checked with the normal player I use, VLC, but they also Nope, all their codecs are built in. Thanks, time for more investigating …