• How to automatic open more files with one click

    1
    0 Votes
    1 Posts
    397 Views
    No one has replied
  • Delete all lines except

    16
    0 Votes
    16 Posts
    5k Views
    Meta ChuhM

    @PeterJones

    since two of the forum’s python experts are not actively helping here anymore, I need to up my PythonScript output …

    i really wished there was an easy way to lure both back somehow … for example with a complementary free cake for all returning members 🥧🍰🎂 :D

    i’ve still got the hope that someday maybe one or both will return for either historic, good times reasons, or 'cause you lured them back with future’s most ultimate py guru knowledge 👍
    (ps: no pressure, i think your py is already pretty good and way better than eg. mine)

    reader’s note:
    this was slightly off topic, so i give my sincere apologies to everyone in advance.

  • Issue when copypasting from excel to notepad++

    Locked
    7
    0 Votes
    7 Posts
    7k Views
    Meta ChuhM

    thanks @PeterJones , now i can reproduce.
    (i barely use excel so i didn’t even now that you can put a tab or a new line in a cell ;-) )

    now i definitively second your first suggestion using regex to replace the pairs of quotes:

    If you only want to get rid of matched quote pairs, then enable search mode = regular expression, and set find what=“([^”]*)" and replace with=$1. (edit: to clarify, the quote marks around the parenthesis are part of the search-string, so you should type those, too)

  • Regex to delete sections of XML

    8
    0 Votes
    8 Posts
    3k Views
    Christopher PhillipsC

    @guy038 said:

    Thanks @guy038 you are a star. I misread and thought everything needed to be on a single line. You new regex works perfectly.

  • Encoding

    5
    0 Votes
    5 Posts
    1k Views
    andrecool-68A

    Sometimes instead of UTF-8 it defines windows-1258

  • How to interpret the coding of macros?

    3
    0 Votes
    3 Posts
    3k Views
    GezaShadG

    Alan, Thank You for your answer!

  • Delete all rows of a text file except company names

    Locked
    6
    0 Votes
    6 Posts
    1k Views
    Raymond Lee FellersR

    Thanks to everyone who helped with this question. Each answer contributed to the solution. Special thanks to guy038 who gave me a better understanding of how the code works and his solution worked perfectly.

    Ray Fellers

  • cree un forum

    Locked
    1
    0 Votes
    1 Posts
    329 Views
    No one has replied
  • Disable document switching when mouse4 is pressed

    Locked
    9
    1 Votes
    9 Posts
    2k Views
    Mikhail VM

    @trace-calvin
    XButton1 - 4th mouse button. Typically performs the same function as Browser_Back.
    XButton2 - 5th mouse button. Typically performs the same function as Browser_Forward.

    So NPP cycles back through tabs on both Browser_back event and Xbutton1 event. I didn’t find any option to disable or change it. If it bothers, you can use Autohotkey script to change this button, or block completely with this script:

    #If winActive("ahk_exe notepad++.exe") XButton1::return
  • Search result window

    Locked
    6
    0 Votes
    6 Posts
    1k Views
    guy038G

    Hello, @олег-выползов,

    Just one question :

    When you just mouse select this string $c_word, in current file, do you see, in the status bar, at the bottom of N++ window, the indication Sel 7|1 ?

    If you get a value above 7, this would mean that the string $c_word, itself, contains one or several invisible chars !

    Best Regards,

    guy038

  • Encodage

    10
    0 Votes
    10 Posts
    3k Views
    Meta ChuhM

    @guy038

    there’s more than that broken with the current auto detection !
    same vietnamese detection happens if you save the word “Réservation” to a new utf-8 file and reopen,

    so only the combination of ï and é in the same document is detected correctly, é only will detect it as vietnamese

    this did not happen prior to this commit that @Eko-palypse mentioned.

    You may, also, convert your file to the UTF-8-BOM encoding

    this is not possible in many cases, because those files like in this case are in an open source repository.

    same with spanish, exept if i have an ñ in my documents, so i didn’t notice it before, as most of them have an ñ.
    german characters work ok so far.

  • Can I find missing lines with regular expression?

    Locked
    4
    0 Votes
    4 Posts
    1k Views
    Robin CruiseR

    sorry, both regex are working fine. Thank you very much.

  • Just started using Notepad++... What is SYN?

    7
    0 Votes
    7 Posts
    10k Views
    Aladin ZAIRA

    I am using Autohotkey, and what worked for me is adding an ‘$’ before the hotkey as in ‘$^v::’ (Ctrl+v). Read about the prefix ‘$’ here: https://www.autohotkey.com/docs/Hotkeys.htm

  • Python Module Not Found

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    Eko palypseE

    @PeterJones

    From my vague knowledge of LSP (I’ve run across the term a few times, but never used an LSP-enabled system), I think that’s one of the problems that LSP addresses, but I’m not sure.

    exactly, the goal is to have the “language” responsible to provide such information
    instead of reinventing the wheel by every editor. LSP defines just the protocol how
    a communication of a client and a server has to work, the editor implements
    the client part whereas some other instance provides the server part.

  • Script element not working properly(?)

    Locked
    3
    0 Votes
    3 Posts
    728 Views
    PeterJonesP

    @Harlan-Nguyen ,

    @Eko-palypse answered your initial question, which is probably a reasonable answer.

    But really, this forum is focused on the Notepad++ editor-specific aspects of using Notepad++. It’s not a general “help me debug whatever it is I am using Notepad++ to edit” forum. This is explained with the humorous example of baking cookies in this FAQ.

  • open in administrative mode

    5
    0 Votes
    5 Posts
    7k Views
    Stéphane BoisvertS

    Thank you both very much!

  • how to get current file status saved or not c# NPPN_FILESAVED

    5
    0 Votes
    5 Posts
    1k Views
    Eko palypseE

    @gurikbal-singh

    afaik, there is no npp api function available to find out if a file is dirty or not.
    As said, you can either compare the current buffer with the file on disk
    or check the menu save item if it is disabled or enabled.

  • Save As Command

    8
    0 Votes
    8 Posts
    2k Views
    Meta ChuhM

    @Barry-Alter

    thanks for the thanks ;-)
    if any specific answer(s) were helpful, please don’t hesitate to also give it/them an upvote

    You guys are a rough unforgiving group

    it depends on who is online first, as you can see in my detailed direct response to you.
    i didn’t even look up if you already asked the same question, even if i had a kind of deja vu.

    maybe you guys could lighten up a bit.

    most of us are, including defending your question (i quote myself: maybe it’s his first fresh install in two years and the how to’s got forgotten through time.)
    so don’t hesitate to ask any time again

  • Extra Lines break with Compare tool

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    PeterJonesP

    @Mathieu-Chapoton / @Alan-Kilborn,

    Yes, Npp Compare Plugin does display blank lines for lines that don’t exist; for example:

    Imgur

    Those lines aren’t really there in the file; the plugin just shows the blank lines to line things up visually.

  • How to find "~" and replace with CR LF

    Locked
    3
    0 Votes
    3 Posts
    5k Views
    PeterJonesP

    @Anthony-Doshi ,

    @Terry-R answered your immediate question, but if you have further search-and-replace (regex) needs, you can study this FAQ and the documentation it points to. Before asking a new regex question, understand that for future requests, many of us will expect you to show what data you have (exactly), what data you want (exactly), what regex you already tried (to show that you’re showing effort), why you thought that regex would work (to prove it wasn’t just something randomly typed), and what data you’re getting with an explanation of why that result is wrong. When you show that effort, you’ll see us bend over backward to get things working for you. If you need help formatting the data so that the forum doesn’t mangle it (so that it shows “exactly”, as I said earlier), see this help-with-markdown post, where @Scott-Sumner gives a great summary of how to use Markdown for this forum’s needs.
    Please note that for all “regex” queries – or queries where you want help “matching” or “marking” or “bookmarking” a certain pattern, which amounts to the same thing – it is best if you are explicit about what needs to match, and what shouldn’t match, and have multiple examples of both in your example dataset. Often, what shouldn’t match helps define the regular expression as much or more than what should match.