• How to interpret the coding of macros?

    3
    0 Votes
    3 Posts
    2k 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
    311 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
    960 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
    665 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
    926 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.

  • Macro: problem to indent

    8
    0 Votes
    8 Posts
    2k Views
    Alan KilbornA

    @Pierfrancesco-Marro said:

    news about this problem?

    There wouldn’t be any news unless there is an open issue for it. See here: https://github.com/notepad-plus-plus/notepad-plus-plus/issues

  • 1 Votes
    3 Posts
    627 Views
    Terry RT

    @Stanislav-Elvenisko-Hoferek
    I’m not sure what your second post was meant to say. Did you even try that?

    My suggestion is start with 1 file opened in NPP and test what I provide. If it works the same method can also work on a bunch of files using the other tab of the Replace function called “Find in Files”.
    So
    Find What:(SOME_COMMON_CONTENT_BEGINNING:)(.+?)(:SOME_COMMON_CONTENT_end)
    Replace With:\1anything\3
    This is using your terminology. Up to you to replace the strings SOME_COMMON_CONTENT_BEGINNING:
    anything and
    :SOME_COMMON_CONTENT_end
    with what your actual data is. Note I did bracket the text we will replace (.+?), this is not necessary, but it won’t change the result.

    Terry

  • npp is crashing after its today's self-update

    Locked
    2
    0 Votes
    2 Posts
    514 Views
    Eko palypseE

    @jano-semo said:

    looks like this

    SourceCookifier

    plugin is making the trouble.

  • Marking over multiple lines.

    Locked
    2
    0 Votes
    2 Posts
    518 Views
    Eko palypseE

    @Richard-Cranium

    not 100% sure but are you looking for a regular expression like this ?
    (?s)class="Action1".*?(?=</property)

  • Problem with Ziped Version and Plugins

    Locked
    3
    0 Votes
    3 Posts
    616 Views
    dtoxic64D

    ok thx for the info, i appreciate it