• 0 Votes
    3 Posts
    6k Views
    glennfromiowaG

    It’s always hard to troubleshoot problems like this, not knowing what another user’s computer environment is. However, if the remember current session for next launch is checked, as @Claudia-Frank suggested, find where the configuration files are saved. There are two helpful articles in the Wiki on this: Notepad++ Install Folder and Where are the files?

    Once you find these, write down the path. Then I’d try copying a random text file to that folder, or perhaps creating a uniquely-named folder there. Then the next time you open Notepad++ and it doesn’t open the last session, check that folder and see if the files there are the same ones that were there before. If that text file and/or folder are also missing, you may be on a system that wipes the folder when some criteria is met.

    As a workaround, you can manually save your session (File -> Save Session) to a folder you know will retain its files, then open the session file when you open Notepad++. You can even include that on the command line in your shortcut to Notepad++ if you want.

  • Set NPP as default for files with no extension

    3
    0 Votes
    3 Posts
    3k Views
    decodermanD

    Solved!
    I have Directory Opus as the default File Explorer on all my Windows machines.
    Directory Opus lets you set how to handle files with no extensions and open them with the program of your choice.
    I have had it set in it’s settings to use NPP but since I removed the 32-bit version that path was no longer available as the handler.

    Here’s the magic setting in Directory Opus:
    https://resource.dopus.com/t/associate-with-no-file-extension/9592

  • Newbie Question

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    jeffrey harrisJ

    Yep. That was the problem. Thanks for being a good cook in addition to being a programmer.

  • What is the largest file size allowed to be opened in Notepad++?

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Scott SumnerS

    @Monica-Toigo-Mesch

    Perhaps this thread contains your answer.

  • Notepad++ 7.5.4 Clickable links no longer work (again)

    Locked
    4
    1 Votes
    4 Posts
    4k Views
    Devarajan SwamiD
    Debug info report is below: Notepad++ v7.5.4 (32-bit)
    Build time : Jan 1 2018 - 01:47:45
    Path : C:\Program Files (x86)\Notepad++\notepad++.exe
    Admin mode : OFF
    Local Conf mode : OFF
    OS : Windows 10 (64-bit)
    Plugins : ComparePlugin.dll DSpellCheck.dll mimeTools.dll NppColumnSort.dll NppConverter.dll NppExport.dll NppTextFX.dll PluginManager.dll Tidy2.dll XMLTools.dll

    But I think I have a better idea about the problem now.
    The problem is that for at least this version of np++, double tapping on the touch keypad does not work in the editor window - ie… does not have any effect in any document in any editor window.
    Other operations on the touch keypad work:

    Single tap positions the cursor at the tapped point Tap and drag works to highlight a range of text
    etc.
    Also, clicking and double clicking on the touch pad BUTTONs work normally.
    In particular, double clicking using the touch pad BUTTONs correctly opens the URL in the default browser window.
    Only double tapping on the touch pad doesn’t work. Double tapping on a word to select/highlight it doesn’t work Double tapping on an underlined URL does not open it in a browser.

    Both of these used to work in previous versions of np++, although my version may have been a few versions back.

    I’ll be posting a separate topic on this.

  • Regex: Copy first 5 lines from all open documents

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    guy038G

    Hi, @vasile-caraus, @Scott-sumner and All,

    Indeed, in that matter, N++ totally fails to solve this simple goal :-(( And this, for two main reasons :

    Firstly, because the N++ regex engine does not handle properly, backward assertions ( as \A , \<, \b before a word,… )

    Secondly, because the results, in the Find result windows, display a single line , even if a multi-lines amount of text had been matched !

    For instance, as a work-around, with the François-R Boyer regex engine, and N++ v6.9.0, I used, successively, the following 5 regexes :

    (?-s)\A(.*\R){0}\K.*\R , which, correctly, match the first line of any opened file

    (?-s)\A(.*\R){1}\K.*\R , which, correctly, match the second line of any opened file

    (?-s)\A(.*\R){2}\K.*\R , which, correctly, match the third line of any opened file

    (?-s)\A(.*\R){3}\K.*\R , which, correctly, match the fourth line of any opened file

    (?-s)\A(.*\R){4}\K.*\R , which, correctly, match the fifth line of any opened file

    After 5 clicks, on the Find All in All Opened Documents button, I, then, copied these 5 search results in a new tab.

    Finally, after a classical sort, depending on the file name and the number of the line matched, I could get the 5 first lines of all my opened files ! Quite boring !

    Here, Vasile, it should be interesting to use, instead, a simple Lua or Python script, for nice and immediate results ! Of course, some external tools, as you said, can realize this work, quite well, too !

    Best Regards,

    guy038

    You may look this alternative solution, in the last part of this post :

    https://notepad-plus-plus.org/community/topic/15058/regex-remove-particular-words-from-tags-in-several-text-pages/11

  • copy 10 lines of code to all open documents

    5
    0 Votes
    5 Posts
    2k Views
    guy038G

    Hello, @angelica-bartoloni,

    As it’s my first post of 2018, allow me to wish you and every N++ user, a very productive year, with our beloved editor, a lot of opportunities and, of course, good health, throughout the year !

    Well, I supposed that all your HTML files are gathered in a specific folder, aren’t they ?

    The next question, Angelica, is : Where the script is supposed to be inserted, in these hmtl files ? I mean, could you give us the context ( a couple of lines before and after that insertion point ! )

    Finally, if not confidential, as it shouldn’t exceed 10 lines, could you, also post the script’s contents !

    With all that information, and the Built-in Replace / Replace in Files feature, it shouldn’t be very difficult to get the job done !

    See you later,

    Best Regards,

    guy038

  • Project View is not Working

    Locked
    8
    0 Votes
    8 Posts
    3k Views
    Claudia FrankC

    @Micah-Rios

    Give it a try to reset the project panel docking settings by

    closing npp and

    open config.xml with a different editor
    depending on your configuration you need to edit the file which is located under
    the installation directory or the one under %APPDATA%*\notepad++.

    delete the 3 lines under DockingManager which look like this

    <PluginDlg pluginName="Notepad++::InternalFunction" id="44083" curr="0" prev="-1" isVisible="yes" /> <PluginDlg pluginName="Notepad++::InternalFunction" id="44082" curr="1" prev="5" isVisible="yes" /> <PluginDlg pluginName="Notepad++::InternalFunction" id="44081" curr="3" prev="4" isVisible="yes" />

    Save the file and restart npp - reopen project panels.

    Cheers
    Claudia

  • Need help with search feature...

    Locked
    2
    1 Votes
    2 Posts
    1k Views
    Scott SumnerS

    @Yangci-Ou

    Sure…welcome to the Community. :-)

    That’s a pretty easy one. You can use the Find All in Current Document feature:

    Invoke the Find feature (press Ctrl+f)
    Find what zone: \b....e\b
    Set Match case to your pleasure
    Search mode: Regular expression
    Action: Press Find All in Current Document button

    Each . in the Find what zone represents a character position where you don’t care about what value it takes on (your “underscores”). The \b at the start and end just means to encase what comes between as a word, thus the example above would match “whale” but not the whale part of “whales” or “whaleboat”.

    This is rather basic “regular expression” stuff so I encourage you to go off and do some reading about what that is and how to use it for your needs in the future.

  • abort or cancel an inadvertent search that is taking forever.

    2
    0 Votes
    2 Posts
    973 Views
    LeeVious MaximusL

    At least bring the cancel window topmost, it was hidden below others.

  • problem error file too big to be opened

    Locked
    19
    0 Votes
    19 Posts
    14k Views
    Claudia FrankC

    Did some further testing, pure ascii text file 2,146GB,
    with 1MB more I do get the limit error.

    Cheers
    Claudia

  • Setting up User Defined Language Comment Section - exclusion issue

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Chip CooperC

    Wow, so reread documentation again, and it appears that Don of Notepad++, worked with, or had developed a section to handle this exception. I’m seeing that making an interpreter like this is problematic. Kudos for UDL working on that, as I’m sure this wheel gets reinvented for every Language Plugin. So, it’s ironic that the section in UDL doesn’t support operators in the interpretation for forward/reverse logic in the comment section. Not that I know this would help here. In starting the UDL, I picked the comment section as the first part to start with, as it seemed to be the first win I could get, this exception really threw me… till I did what Don had to do for C/C++ that I had to do with .lua which is use the ‘delimiter’ section for the exception. “–” to open/(EOL) as a closer. Worked great, just wish it wasn’t needed, and comments keys could go into comment section.

    So, I ‘resolved’ this… if that’s what one could call it. At least it works now. :-) Can I pat myself on the back, or get admonished for posting a problem I solved simply by RTFM again! lol

    Thanks to those who at least poked in to see if they could help! I think this UDL has a lot of promise! Sure wish I could help; but man, I don’t want to pick up on C/C++ again, it’s been too long. Whereas I’ve had to become more flexible in my old age… I remember C/C++ as very strict, even if as I recall it was one of the most sophisticated ways to write Machine Code!

  • BUG: Language/Define Your Language Export doesn't save filename as Type

    Locked
    2
    0 Votes
    2 Posts
    982 Views
    Chip CooperC

    I’d like permission to post this as a Bug report for Notepad++ github as an Issue… I think it’s minor, now that I’m aware; but, a bug it is…

  • Collapse Issue

    3
    1 Votes
    3 Posts
    1k Views
    Chip CooperC

    I’ve seen this recently also… using .lua (built-in). Almost always it does line breaking correctly, but I’ve seen it a least twice now myself. I’ve also examined the code, but wasn’t sure what ‘might’ be causing it,so I was just looking for ‘something obvious?’ in the code, but… no, that wasn’t it. Whatever it is, it seems to be an exception that’s not being handled, as it is rare. I’ll try to remember to post the code next time, and bring it up, as mine was only about 10 to 15 lines… or so. It seems to me that anything in a comment should be ignored completely. Mine had comments, and they appeared to be ignored, no brackets though, except comment brackets --[[ ]]

  • Flickering in Notepad++

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    Chip CooperC

    Regarding my last post, I’m presuming you’ve tried updating your Notepad++ version. Depending on the age of any app running in the background, it may be using old libraries, which could, though not interfere, be increasing the number of memory swaps needed to keep it running, increasing processing time, etc. One of the things I’ve done is to use MSConfig, to reduce background applications running in the system to free up memory, and temporarily reduce overhead. IOW only run what you need. Using that can by process of elimination determine what if anything might be causing the issue.

  • Replace function

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    Dann TruongD

    @Claudia-Frank
    Thanks for the hint. regular expression is the key. It now works perfectly.

  • Please need help decode ai file

    3
    -1 Votes
    3 Posts
    1k Views
    Gogo NeatzaG

    @Myme 651 What is an “ai file” ? Where did you get it from ?

  • Fit Image to Table Cell

    4
    0 Votes
    4 Posts
    2k Views
    chcgC

    See https://sourceforge.net/projects/imgtag/files/, now version 2.0.1 is also available via the Plugin Manager DevList.

  • Why won't the title for my new page show up?

    Locked
    16
    0 Votes
    16 Posts
    5k Views
    David BielbyD

    So the short answer is that I didn’t understand where the title was supposed to show up and was looking in the URL rather than at the top of the tab in m browser. It was working correctly, I just expected a different result that it was supposed to give. Thank you for helping me Claudia!

  • Extracting email addresses

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Claudia FrankC

    @Tim-Peek

    Sure it is a pdf file? pdf files are not supposed to be edited by notepad++.
    Anyway, if you have the file open and already stripped down to lines with email addresses only
    use find dialog and regular expression checked
    Find what:

    .*?(\w+@\w+\.\w+).*

    Replace with:

    \1

    Cheers
    Claudia