• 'In Selection' grayed out in the find/replace box

    3
    1 Votes
    3 Posts
    1k Views
    PeterJonesP

    @mkupper ,

    I could be wrong, but this sounds like this recent discussion and also this earlier discussion. On those, I don’t know if anyone has bothered putting in an official github issue or not. But if what you describe is the same as those (especially the first I mentioned), and if there isn’t an existing issue in the repo, then maybe you would be willing to submit the report.

  • Why won't NPP open .txt files

    10
    0 Votes
    10 Posts
    8k Views
    EkopalypseE

    @wwwdeals said in Why won't NPP open .txt files:

    I’m surprised after 5 years this issue is still around.

    Unless there is a way to reproduce the cause, it is hard to fix I guess.

  • Delay in saving files after latest upgrade

    8
    0 Votes
    8 Posts
    1k Views
    pnedevP

    @Mario-Valle ,

    To avoid a potential data corruption in case of sudden power loss, Notepad++ since version 7.9.1 writes files directly to disk on save - no operating system RAM caching is used. This ensures that your files are really safely written to disk when you save them but writing to disk is slower than writing to RAM buffer.
    Now if your “disk” is slow in write speed then that might be the reason you are seeing such delay. By “disk” here I mean the non-volatile (persistent) media where your files are located.
    Mapped network drives, SD cards, USB drives are examples of medias (“disks”) that are relatively slow on write.

  • uploading files to nitrado

    4
    0 Votes
    4 Posts
    424 Views
    dinkumoilD

    @Kerry-Down

    I don’t know anything about nitrado, but i guess it’s a web hosting provider. Read the FAQ or the wiki of nitrado to learn how to configure SFTP or FTP access to your server. This forum is a support forum for Notepad++.

  • Notepad++ v 7.9.2 ignores "Print Line Number" preference

    3
  • repeating code with increment in time

    3
    0 Votes
    3 Posts
    198 Views
    Alan KilbornA

    I’m not usually one for guessing, but could be the OP wants the second occurrence of <o> to be turned into 1, the third turned into 2, etc. ?

    But yes, I agree, the problem could be stated better, and real text provided as a starting point for someone that wants to try working on it.

  • Locking file from other editing while opened in Notepad++

    5
    0 Votes
    5 Posts
    7k Views
    PeterJonesP

    @Alan-Kilborn ,

    Thanks for that clarification. Yes, the Set Read Only is a toggle (I guess it uses a ✔, not a ⦿). And Clear Read-Only Flag might be better phrased Clear OS Read-Only Flag.

  • Problem with Simplified Chinese in localization

    2
    0 Votes
    2 Posts
    183 Views
    astrosofistaA

    Hi @im-FL

    It’s a known issue and will be fixed on next release. Here is a workaround.

    Take care and have fun!

  • Comment left align

    2
    0 Votes
    2 Posts
    291 Views
    PeterJonesP

    @Jürgen-Nießen ,

    Sorry, auto-indent keeps comments at the same level of indentation as the code block the comment is a part of (because the auto-indentation is a feature coded at the editor level, whereas the marking of “comment” is coded at the lexer/syntax-highlighter level).

    That said, alternatives include:

    running code through an external “pretty print” utility – @Michael-Vincent gives examples of how to do that in an old post <edit>: in this old post (which was linked from the other; sorry.)</edit> using one of the scripting plugins (like PythonScript) to set up a hook to watch what you type, and if you type the comment indicator on a line that has only whitespace before that indicator, the script could un-indent for you. Similar things have been done recently, and if you need help, we could dig up links to those previous discussions, and/or someone might be willing to hack up a script engineer a solution for you, if it catches their fancy
  • Load stylers.xml failed

    3
    0 Votes
    3 Posts
    4k Views
    Paulius BrazauskasP

    @PeterJones said in Load stylers.xml failed:

    I am assuming your tomorrow.xml file is somehow corrupted. I suggest re-downloading it from https://raw.githubusercontent.com/chriskempson/tomorrow-theme/master/notepad%2B%2B/tomorrow.xml, with the steps:
    3. Download from https://raw.githubusercontent.com/chriskempson/tomorrow-theme/master/notepad%2B%2B/tomorrow.xml and save as %AppData%\Notepad++\themes\tomorrow.xml

    Thank you @PeterJones for helping me sort it out. I now know what the problem was for me.

    On the Github, I would right-click tommorow.xml file and save as and for some reason, that file would give me an error message that I posted. When I right-clicked on your link that had raw. in the beginning and saved as it worked fine. I use Google Chrome I don’t know if that has to do anything with it.

    So for the rest variations of the style instead of right-clicking on the tommorow.xml I clicked on it then selected RAW and then saved the page as and it worked for all the rest of the styles.

    Thank You

  • display only the delta

    5
    0 Votes
    5 Posts
    560 Views
    Magnus BerglundM

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

  • Strange characters while using column select

    3
    0 Votes
    3 Posts
    242 Views
    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 Votes
    2 Posts
    169 Views
    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.

  • 0 Votes
    13 Posts
    1k Views
    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 Votes
    10 Posts
    849 Views
    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 Votes
    5 Posts
    10k Views
    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 Votes
    4 Posts
    319 Views
    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 Votes
    2 Posts
    280 Views
    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 Votes
    3 Posts
    1k Views
    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 Votes
    9 Posts
    5k Views
    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}");