• 0 Votes
    11 Posts
    4k Views
    Alan KilbornA

    If you’ve used a script in this thread, you might want to double check your copy of it for a bug I’ve discovered.
    Look to previous postings in this topic thread where the script has been changed – find the text moderator edit (2024-Jan-14).
    There’s a link there that describes the bug in more detail, and shows what needs to be changed in an old copy (or you can simply grab a copy of the current version).

  • Sort by the largest number of the same results (frequency)

    10
    0 Votes
    10 Posts
    993 Views
    Alan KilbornA

    If you’ve used a script in this thread, you might want to double check your copy of it for a bug I’ve discovered.
    Look to previous postings in this topic thread where the script has been changed – find the text moderator edit (2024-Jan-14).
    There’s a link there that describes the bug in more detail, and shows what needs to be changed in an old copy (or you can simply grab a copy of the current version).

  • Replace a word in a line with different words

    10
    0 Votes
    10 Posts
    2k Views
    Alan KilbornA

    If you’ve used a script in this thread, you might want to double check your copy of it for a bug I’ve discovered.
    Look to previous postings in this topic thread where the script has been changed – find the text moderator edit (2024-Jan-14).
    There’s a link there that describes the bug in more detail, and shows what needs to be changed in an old copy (or you can simply grab a copy of the current version).

  • Copying sentences and pasting them elsewhere

    10
    0 Votes
    10 Posts
    533 Views
    dr ramaanandD

    @dr-ramaanand said in Copying sentences and pasting them elsewhere:
    <p[^<>]*+>(You[^<>]++)(</p>

    finds <p................. >You................. </p>

  • Startup script to check "Highlight All" box on Incremental Search

    4
    1 Votes
    4 Posts
    356 Views
    M

    @Alan-Kilborn

    Doh! I’m not sure how I missed that so thank you for posting it for me.

  • How to fold code block that use the same keyword

    2
    0 Votes
    2 Posts
    230 Views
    supasillyassS

    @byzod You can add EndHotIf to the Close section of Folding in comment style, then comment the closing tag:

    #HotIf WinActive("ahk_exe Nienix.exe") a:: { Send "{b}" } c::{ Send "{d}" } #HotIf ; EndHotIf
  • Upgrade application when both bits application installed on single machine

    11
    0 Votes
    11 Posts
    2k Views
    CoisesC

    @Terry-R said in Upgrade application when both bits application installed on single machine:

    it seems that the knowledge of which plug-ins are available is directly from the program files folder for each NPP folder. Is that correct as you see it?

    Yes. My recollection is that on startup, Notepad++ will look for a plugins folder in the same folder as the executable; it will then enumerate folders within the plugins folder, then check each folder for a dll with the same name as the folder. It will then attempt to load those dlls and make some calls to specific entry points in those dlls that must proceed as expected to register the plugin (else a message about an invalid plugin will be shown).

    There was some discussion in this forum — I think not too long ago — about the possibility of individual users in a multi-user environment being able to enable or disable individual plugins, with the ability to install plugins still being limited to administrators; but that proposal was never pursued.

  • 0 Votes
    5 Posts
    562 Views
    Loui KuperijL

    @PeterJones
    Sometimes problems are difficult to understand, but this one is exactly what I wanted to achieve, thank you very much for this.

  • 2 Votes
    10 Posts
    1k Views
    Barış UşaklıB

    This should be fixed in the latest update, thanks for reporting @PeterJones

  • CTRL copy behaviour

    8
    1 Votes
    8 Posts
    536 Views
    Samantha TraynorS

    @Coises Oh so thats what was wrong, i forgot that cut in common, its the same as copy from and paste but with the deletion, my mistake, after doing some changes on the shortcuts to the same setup that i had before now everything works good as before thank you and @mkupper too for the help still

  • Can I sort IP addresses in numeric value

    20
    0 Votes
    20 Posts
    10k Views
    supasillyassS

    @guy038 Edit > Line Operations > Sort Lines As Integers Ascending 😉

    Oh wow, necro thread 💀

  • How To Export Line & Column Coordinates to Clipboard ?

    16
    0 Votes
    16 Posts
    1k Views
    L

    @mkupper Here is a screenshot of a test I ran today of the extraction tool I’m working on :)
    [https://drive.google.com/file/d/1F8zmZpvFWtudVecKA-FCyGxjcOziYd9F/view?usp=sharing](link url)

  • Replace entire line based on first characters

    6
    1 Votes
    6 Posts
    1k Views
    guy038G

    Hello, @silvermew22, @mkupper, @mark-olson and All,

    I suppose that the following version should be better as it reduces the replacements to the syntaxes like 50.880001068115234 or 50.5 only !

    SEARCH (?-i)((?<!\\)"X"\s*:\s*50\.)(?!0,)\d+

    Replace ${1}0

    Now, in order to only get modifications, in the right "Events" array, we could use this version :

    SEARCH (?-i)(?:"Events"|(?!\A)\G)(?s:(?!\x5D).)*?\K((?<!\\)"X"\s*:\s*50\.)(?!0,)\d+

    REPLACE ${1}0

    So :

    Paste your JSON file OR the example, below, in a new tab { "Tests": [ { "Delta": 0, "EventType": "MouseDown", "Timestamp": 603, "X": 50.0, "Y": 79.61000061035056 }, { "Delta": 0, "EventType": "MouseMove", "Timestamp": 891, "X": 50.880001068115234, "Y": 41.540000915527344 }, { "Delta": 0, "EventType": "MouseMove", "Timestamp": 939, "X": 50.5, "Y": 36.61000061035056 }, ] }, { "Events": [ { "Delta": 0, "EventType": "MouseDown", "Timestamp": 603, "X": 50.0, "Y": 79.61000061035056 }, { "Delta": 0, "EventType": "MouseMove", "Timestamp": 683, "X": 50.0, "Y": 79.50000213623050 }, { "Delta": 0, "EventType": "MouseMove", "Timestamp": 891, "X": 50.880001068115234, "Y": 41.540000915527344 }, { "Delta": 0, "EventType": "MouseMove", "Timestamp": 939, "X": 50.5, "Y": 36.61000061035056 }, { "Delta": 0, "EventType": "MouseUp", "Timestamp": 1950, "X": 50.95000076293945, "Y": 6.659999850412109 } ] }

    Move the caret to the very beginning of the file ( Very IMPORTANT )

    Open the Replace dialog ( Ctrl + H )

    Untick all the box options

    Click once on the Replace All button

    Voila ! There were only 3 replacements in the unique "Events" array… and none in the "Tests" array !

    Best Regards,

    guy038

  • Remove unwanted LF in large file

    2
    0 Votes
    2 Posts
    3k Views
    Mark OlsonM

    @Joshua-Goodman
    Go to the find/replace form.

    Check the Regular expression box in the bottom.

    Find what: (?<!\r)\n
    Replace with: leave blank.

    This will remove all LF not preceded by CR.

  • wrong sintax

    3
    1 Votes
    3 Posts
    260 Views
    mkupperM

    @Altevir-Gomes said in wrong sintax:

    i need help with my sintax, i have already tried this : (?-is).+(?<=|\x20)(.+)(?=\x20-\x20EMAIL:).+
    but not work

    Try this:
    Search: (?-i)^Aprovada *\| *([^ |]*) *\| *([^ |]*) *\| *Verificação:.*
    Replace: \1\|\2

    Reading from left to right the search part does:

    (?-i) - Make this a case sensitive search so that Aprovada will not match aprovada or other variations in the letter case for both Aprovada and Verificação. ^Aprovada - Starting at the beginning of a line expect the word Aprovada. *\| * - Match zero or more spaces followed by a | followed by zero or more spaces. ([^ |]*) - This is the first capture group and will be the e-mail address. It scans/skips over everything that is not a space or |. I used * to allow the e-mail field to be empty. *\| * - Match zero or more spaces followed by a | followed by zero or more spaces. ([^ |]*) - This is the second capture group and is the name field. It too can be empty. *\| * - Match zero or more spaces followed by a | followed by zero or more spaces. Verificação: - Expect the word Verificação followed by a colon : .* match and thus delete everything else on the line.
  • Strange happenings with notepad

    2
    0 Votes
    2 Posts
    220 Views
    PeterJonesP

    @Trevor-Appleton ,

    “Notepad” is a Microsoft app, which is not the topic of this forum. “Notepad++” is the superior text editor written by Don Ho and discussed in this forum.

    Based on your first sentence, I think you are really talking about the Microsoft app, not Notepad++, because it recently added the ability to do tabs, which it’s never done before, whereas Notepad++ has done tabs (unless you go out of your way to turn them off) for decades.

    If you are talking about the Microsoft app, you need to find a different place to ask your questions, because this forum is not about the Microsoft app.

    If you just mis-typed and really meant “Notepad++”, you will have to give more details about your expectations vs your “strange happenings”, including screenshots and showing your ?-menu’s Debug Info (if the app you are using has neither a ? menu nor a Debug Info action in that menu, then you are not asking about Notepad++ and your question is off topic here).

  • Not copy from clipboard by key Shift+Insert

    5
    1 Votes
    5 Posts
    2k Views
    CoisesC

    @Владимир-Беспечный
    @tseGIT
    @Paolo-Linx
    @Alan-Kilborn

    The workaround in 8.6.1 is given in this GitHub issue.

    This pull request indicates that the changes which caused this will probably be reverted in the next release.

  • UDL Background Issue?

    13
    0 Votes
    13 Posts
    633 Views
    PeterJonesP

    @Jonathon-Wisnoski said in UDL Background Issue?:

    I deleted all these before, and restarted dozens of times. But for some reason it never worked until now.

    Order of operations is significant. If Notepad++ was still open when you deleted it from the userDefineLang.xml, then when Notepad++ exited, it re-saved userDefineLang.xml when Notepad++ exited, thus undoing your supposed edit. Editing Notepad++ config files from inside Notepad++ requires following the specific sequence in the User Manual.

  • Set 'replace TAB with spaces' for user defiend language

    2
    0 Votes
    2 Posts
    179 Views
    PeterJonesP

    @Stefanius67 ,

    UDL just uses the default tab settings. It would make the most sense to be a per-UDL setting, but UDL seems to be cast in stone, without feature updates, so I live with it.

  • Help for...........

    2
    -1 Votes
    2 Posts
    186 Views
    dr ramaanandD

    @Loui-Kuperij it looks like you replaced some matter with unwanted stuff on a webpage. If you don’t have a back up, it can’t be recovered. For example, if I mess up the source codes of a webpage, I will copy it back from my pendrive/USB drive where I generally store a copy. If that is also not saved, you can go to your webpage and copy the source of the same.