• display only the delta

    5
    0 評價
    5 貼文
    665 瀏覽
    Magnus BerglundM

    @pnedev
    Ok, i’ll look into this.
    Thansk for your reply!
    //berglund

  • Strange characters while using column select

    3
    0 評價
    3 貼文
    288 瀏覽
    Pierre van der VenP

    @Alan-Kilborn That looks exactly like my issue. Thanks!

  • I wish to make C programs, what compiler can I use ?

    2
    0 評價
    2 貼文
    214 瀏覽
    EkopalypseE

    @Cloud-Stray

    Using npp on Linux to program in C is like using a fork to eat soup, I guess. The compilers installed depend on the operating system you are using.

  • Good Morning. How to see find and see only the lines duplicated in a file ?. Thanks

    13
    0 評價
    13 貼文
    1k 瀏覽
    Terry RT

    @Jose-Emilio-Osorio said in Good Morning. How to see find and see only the lines duplicated in a file ?. Thanks:

    I just need to verify which are the duplicates before they are deleted.

    Since you say that you aren’t interested in getting the lines back to the original order it makes the solution much easier. It also means that you should not be concerned about which line is actually marked for deletion (question #1).

    So the first step is to sort the file. You can select either ascending or descending lexicographical order, it makes no difference, except to the visual aspect (possibly easier on the eye when sorted ascending). This is achieved by selecting the “Sort Lines lexicographically Ascending” or “Sort Lines lexicographically Descending” which is under “Line Operations”, under the Edit menu.

    Next we just need to mark (bookmark) the lines which are duplicates. This is achieved by using the “Mark” function, under “Search” menu.
    Find What:(?-s)^(.+)\R(?=\1)
    Make sure "Bookmark line is ticked. The cursor should be on the first line of the file, otherwise some duplicates might get missed. Wrap around should not be ticked (as we don’t want to consider the last line as a duplicate of the first). Search Mode must be “regular expression”. Click on the “Mark All” button.

    The file will now show a number of lines that have a mark in the left margin, normally a blue circle. You can use “F2” or “Shift-F2” to move to the next (or previous) bookmarked line for viewing. These bookmarks might be erased if performing some more operations on the file, such as another sort. If this happens just run the Mark operation again.

    To delete the bookmarked lines use the “Remove Bookmarked Lines” listed under “Bookmark” which is under the “Search” menu.

    Terry

  • 0 評價
    10 貼文
    1k 瀏覽
    Michael VincentM

    @Alan-Kilborn said in How to visually differentiate 2 files in editing with the same file name but coming from 2 different folders:

    Point to a tab and hover and after a brief delay it will show you the path to that tab.

    BRILLIANT! I don’t think I ever knew that. Funny how I use Notepad++ daily, script with it, for it, write plugins … yet I still discover simple new “features” every now and again.

    Cheers.

  • Missing .CSV Save As Extension

    5
    0 評價
    5 貼文
    11k 瀏覽
    Alan KilbornA

    @PeterJones said in Missing .CSV Save As Extension:

    With all that said, there is another option (literally): if you are opening lots of files that have no extension to start with, you might consider changing the Settings > Preferences > MISC. > Set Save dialog file extension filter to .* instead of .txt for Normal Text option, which will make the default Save As type as . instead of *.txt, so then you can default to typing the extension for plain text files.

    As someone (“bReathl3sS”) points out HERE it appears that setting is going to get a tweak soon. Not sure if that impacts anything said right here, but I wanted to point it out for future readers, in case it does.

  • Add specific line to a large quantity of .nfo files

    4
    0 評價
    4 貼文
    400 瀏覽
    Alan KilbornA

    @PeterJones said in Add specific line to a large quantity of .nfo files:

    Matching only at the beginning of a file isn’t always easy…

    But, isn’t it easy now? (Now meaning 7.9.1 and later)
    At that point, N++ regex got a fix for \A which allows that sort of replacement to work, without a ^ hanging off the end, or other tricks.

    From the 7.9.1 announcement is item number 3:

    3. Fix RegEx look behind operations and \A and and \b and \z (Fix #713, #1870, #2216, #2360, #9004, #4855).

    Of course, OP in this thread could be using some earlier version…

  • Is there an option to Collapse on indent?

    2
    1 評價
    2 貼文
    349 瀏覽
    daffy fD

    Hey phenomenal11.
    I was able to make collapsable tabs by using the Nimrod language.
    I came to the forum for an answer, found this unanswered one and then noticed that my language is one of the predefined ones (Normal Text originally) as compared to your user-defined one. Thought I’d give the others a try and the first one i picked was Nimrod and it worked.
    And because I’m like this, I went through all of the predefined languages and found that Python and Visual Basic weren’t so bad either. YAML was almost ok, except it writes everything in red.
    Nimrod still made format changes like bolding and as a keyword and coloring everything after a double quotation mark, but switching to “vibrant ink” in the style configurator made it all go away.
    So although no one answered your question, it did inspire me to find my own. I hope my solution can help you in the same way.
    Cheers

  • open Tabs as Dropdown List

    3
    0 評價
    3 貼文
    1k 瀏覽
    Alan KilbornA

    @eyeq-git

    a better overview…I had over 40 Files open

    Not really sure what you’re looking for; only you know that for sure.
    Perhaps it is a 100% replication of what you mentioned (of which I have no knowledge), and nothing else will satisfy. If that’s the case, stop reading right now. :-)

    Otherwise, here are some options in Notepad++:

    Press Ctrl+Tab and you’ll get something like this (yellowish vertical popup):

    b36f73ef-ad9e-4a63-a789-abb685903a82-image.png

    Perhaps that meets the (unknown) need?

    Otherwise, look to the left for something called Doc Switcher.
    Perhaps that meets the need?

    My screenshot shows ~40 tabs open, but the tab bar leaves something to be desired as it is single-line by default. What you can do is turn “multiline” on to (eat up some real estate and) look like this:

    01bba356-944c-49ba-a956-6a0b340e0739-image.png

    You can show open tabs vertically if you’d like, although that is mainly for the sadistic:

    013125a7-ac6d-4741-a1b2-2a539545edb9-image.png

    The bottom line is that you have options, but we don’t know what you’ve tried and discarded, or what you’re really after.

    search within all the tabs

    Have you tried the Find dialog’s Find All in All Opened Documents button?

  • 1 評價
    9 貼文
    6k 瀏覽
    Sasha BondS

    @Ed-Eaglehouse I am not sure what it fixes, but I see that cs file cannot be parsed if it contains interpolation string like

    var s_command = "some"; var s_target= "some 2"; var s_command_info= "some 3"; jsSupportLines.Add($" echo('not implemented: {s_command} ({s_target})'); // {s_command_info}");
  • How to change default language for file extension

    8
    0 評價
    8 貼文
    8k 瀏覽
    PeterJonesP

    @dbdonb ,

    hope that this is how it’s supposed to be done.

    You are given access to plaintext (XML) config files in Notepad++ because the developers want you to be able to have as full control over the application as you can. Edit config files to your heart’s content. :-)

  • PowerShell parenthesis matching

    4
    0 評價
    4 貼文
    1k 瀏覽
    PeterJonesP

    @PeterJones said in PowerShell parenthesis matching:

    The SciTE brace-matching (^E = Ctrl+E = Edit > Match Brace) works on the second line, but not on the first line.

    However, more examples show: if I use real quotes rather than smart quotes:

    $($s.replace(”’","’’")) ( ( ) ) $($s.replace("'","'"))

    The third line, which has true ASCII " and ', the brace matching works fine in SciTE 4.2.0.

    In Notepad++, if I leave that first line there, but add the third, it still thinks it is inside a string, which confuses things. But if I remove the first line and just have

    ( ( ) ) $($s.replace("'","'"))

    … then Notepad++ brace-matching with Ctrl+B works for me.

    @magoo104 , could you paste in some actual PowerShell syntax that shows the problem – once you paste it in the forum, highlight the text and click the </> button in the forum entry toolbar,

    so that your PowerShell will be properly in a black box, and the Forum won’t try to “fix” your " " to “ ” or similar smart-quotes.

    And I did confirm: in v7.9.2, with the most recent text shown, it properly highlights matching braces, as shown in this screenshot
    08e8ec17-3a95-4497-b48e-adbf7a464f00-image.png
    … and Ctrl+B works correctly as well.

    So it was only with mismatched quotes and “smart quotes” that the problem occurs for me. With balanced ASCII quotes, it works just fine.

  • 0 評價
    5 貼文
    329 瀏覽
    Grigore IG

    @Alan-Kilborn said in Searching a word in a large directory caused N++ crash and loss of auto-saved open documents:

    Regardless, if you want YOURS to be seen, you’ll need to open a new issue on it on github; developers don’t read bug reports here.

    Ok, thanks.

  • Ubuntu, copy paste, works half the time

    4
    0 評價
    4 貼文
    2k 瀏覽
    gstaviG

    Moved back from Linux to Windows ~12 months ago, hope that memory serves.
    There could be multiple issues.

    If you are talking about problems of copy-pasting between Notepad++ and terminal (or other Linux app) then you are likely facing the problem of Linux PRIMARY and SECONDARY paste buffers. Go read about it.
    Notepad++ over wine is copying into SECONDARY buffer and to paste into terminal you need special shortcut: ctrl-shift-v.
    For the other way around copy with ctrl-ins from terminal and paste with ctrl-v into Notepad++.

    From your description, I assume you are copy-pasting from Notepad++ into Notepad++.
    Don’t remember an issue like you described.
    I could guess that ctrl-ins and shift-ins are global shortcuts in the Linux system. This may lead into race where 2 entities, Notepad++ and “Linux”, manipulate the clipboard (or paste buffers) which leads to unpredictable results.
    Using ctrl-c and ctrl-v should workaround THAT issue since they are far less global.
    If that is indeed the problem then disabling global effects of ctrl-ins shift-ins will be VERY difficult. These shortcuts are embedded deep into the system.

    There are also helper applications that should do automatic synchronization between PRIMARY and SECONDARY buffers to help. I didn’t install any of them myself. But as many kinds of “help” they may leave you off worse than you started.

  • subtitle lines

    2
    1 評價
    2 貼文
    225 瀏覽
    Terry RT

    @kracovwolf said in subtitle lines:

    ^.Subtitle

    For your regex, you were very close. If you look at the * at the end, it refers to the e character whereas at the front you have it associated with the . which is special and means most, if not all, characters. So just add the . before the last * and it should grab the whole line. In fact the second * could be a + IF there are always characters behind the word subtitle.

    Terry

  • Replace only specific word within quotes in Notepad++

    6
    0 評價
    6 貼文
    2k 瀏覽
    Phat HuynhP

    @astrosofista @Terry-R Perfect, thank you so much, it worked! Cheers.

  • v7.9.2 NPPM_SETLINENUMBERWIDTHMODE

    5
    1 評價
    5 貼文
    314 瀏覽
    PeterJonesP

    @PeterJones said in v7.9.2 NPPM_SETLINENUMBERWIDTHMODE:

    I’ll file a bug tomorrow

    #9338

    Thanks for the research, @Ekopalypse

  • SHort cut key to backward search Ignore specific path in the find in files option

    14
    -1 評價
    14 貼文
    4k 瀏覽
    PeterJonesP

    @Alan-Kilborn said in SHort cut key to backward search Ignore specific path in the find in files option:

    Does the installer ask and then only install one localization (the one chosen)?

    Yes, the installer only installs one language by default (I rarely have used the installer, so I forget whether it can optionally do more)… That’s why https://npp-user-manual.org/docs/binary-translation/ says to download the additional language files yourself if you want more translations available.

  • how can i merge lines with condition ?

    7
    0 評價
    7 貼文
    512 瀏覽
    Hai PhamH

    @astrosofista That’s exactly what im talking about,Thank u so much,appreciate that !!!

  • UDL: Suffix Mode

    54
    1 評價
    54 貼文
    21k 瀏覽
    EkopalypseE

    @bruh

    … and it works

    Great, if anything is unclear or I can do, let me know.