• Upgrade application when both bits application installed on single machine

    11
    0 Votes
    11 Posts
    1k 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
    533 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
    978 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
    472 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
    910 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
    954 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
    238 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
    198 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
    1k 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
    535 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
    165 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
    160 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.

  • 0 Votes
    2 Posts
    523 Views
    supasillyassS

    @jacko-png You need to disable DirectWrite to directly use those fonts, but Cascadia Mono (or Cascadia Code with programming ligatures [if DirectWrite is enabled]) will still look much better.

  • How to stop searching or replacing after a string?

    24
    1 Votes
    24 Posts
    2k Views
    mkupperM

    @dr-ramaanand I think the people on regex101 are using ChatGPT or other artificial intelligence applications to generate regular expressions.

    The expressions you get from regex101 are extremely difficult to follow do not come with any explanation of how the logic works or why certain choices were made. It’s likely that the regex101 people also have little to no idea of what the expressions do.

    That’s a large part of why using ChatGPT or other artificial intelligence applications is banned on this forum. Ideally, we call can learn from the answers we see posted on this forum.

    As I posted earlier, it would be much better for you to so stick with things you know and understand well. It’s ok to push the limits a little at times as you can learn from those. Trying to make sense of what looks like AI generated content is a waste of time.

  • Can I change how control characters are displayed?

    3
    1 Votes
    3 Posts
    283 Views
    leevih123L

    @Coises Hmm, to my knowledge the first screenshot used the exact same file as I did and just opened it in notepad, but I’ll look into that. Thank you for your help!

  • Help REPLACING content with incremental order (by +1)

    7
    1 Votes
    7 Posts
    545 Views
    Joel RodriguesJ

    @Coises

    WOW! Thank you so much!!!
    It worked beautifully!

    btw, I didn´t know your plugin so far. Thank you for sharing it for the public.

    best regards

    JR

  • how to set the font in find and replace boxes to monospace?

    2
    1 Votes
    2 Posts
    258 Views
    CoisesC

    @Ryzen-Virtual said in how to set the font in find and replace boxes to monospace?:

    It’s getting really annoying trying to write regex with a proportional font or copy pasting from the code.

    Settings | Preferences… | Searching:
    check Use Monospaced font in Find dialog.

  • FAQ Says to crosslink issues, But No Reputation?

    3
    1 Votes
    3 Posts
    174 Views