• import libreries notepad++ in a python script

    3
    0 Votes
    3 Posts
    477 Views
    Michael VincentM

    @Ismael-Santana said in import libreries notepad++ in a python script:

    I installed NppExc to run python

    My guess without seeing any of your installation or how you did the things you say you did is that you need to updated your NppExec script to use the python.exe that is in the virtual environment; otherwise, you are just running the system Python, where presumably, you do not have pandas installed.

    Cheers.

  • After Update to 8.6.2 it takes 2 sec. to load any file

    4
    0 Votes
    4 Posts
    323 Views
    xomxX

    @Helmut-Mueller

    From what Notepad++ version you have upgraded to the v8.6.2?

    Can you go few versions back to where the error does not show up like that? This could help us to determine a specific change in the N++ code causing this problem. Try with portable versions from the N++ repository.

    Close heidiSQL, Open File: ok
    Start heidiSQL: Open File: 3 sec

    Maybe you could also ask here if there is not a possible file IO conflict in between the N++ and heidiSQL.

  • Finding out install location - could you try on cmd?

    7
    0 Votes
    7 Posts
    2k Views
    mpheathM

    @OpossumPetya said in Finding out install location - could you try on cmd?:

    C:\>for /f "tokens=2 delims=REG_SZ" %i in ('reg query HKLM\SOFTWARE\Notepad++ ^| findstr /i /l /c:"Default"') do @echo %i 2> NUL C:\Program Files\Notepad++ C:\>

    delims operates on characters, not words so a path that contains any character of R, E, G, _, S, Z will echo a incomplete path. For example in a batch file:

    for /f "tokens=2 delims=REG_SZ" %%A in ( 'echo (Default^) REG_SZ C:\Program Files\rReEgG__sSzZ' ) do ( echo %%A )

    echoes C:\Program Files\r as R is a delimiter and e is the next token.

    This is what I have tried so far to echo both x86 and x64 install paths of Notepad++

    setlocal if defined ProgramW6432 ( set "bit=/reg:32 /reg:64" ) else ( set bit="" ) for %%Z in (%bit%) do ( for /f "tokens=1,2,*" %%A in ( '2^>nul reg query HKLM\Software\Notepad++ /ve %%~Z' ) do if "%%~A" == "(Default)" if "%%~B" == "REG_SZ" ( if not "%%~C" == "(value not set)" ( echo "%%~Z" "%%~C" ) ) )

    It also echoes the bit arg to let you know where the data came from. The bit arg will be empty if ProgramW6432 is not defined. I cannot specify if the bit arg is valid on Windows Vista or XP as no records available and do not have a VM for those OSes setup currently to test.

  • reset search results window to what it was originally

    5
    0 Votes
    5 Posts
    277 Views
    PeterJonesP

    @Zephaniah-Waks-0 said in reset search results window to what it was originally:

    how can i mark this as solved

    This forum doesn’t have a mechanism for marking something as “solved”.

  • Cambio de color del fondo del editor

    4
    0 Votes
    4 Posts
    69k Views
    RobetutoR

    Para el Modo Oscuro: Settings>Dark Mode

  • Split at "Mark" into new file

    2
    0 Votes
    2 Posts
    163 Views
    Mark OlsonM

    @Andria-Baunee
    Nobody can help you unless you provide more specific information, like some example data and a detailed explanation of what you want.

  • Find > Selection Mode Extended; Help About

    7
    0 Votes
    7 Posts
    650 Views
    Alan KilbornA

    @TechnicalSup said in Find > Selection Mode Extended; Help About:

    I don’t understand how to use it.

    Sorry, I really can’t spend my time trying to help people that can’t follow instructions I’ve already provided. Good luck to you.

  • Strange Tab order when opening multiple files

    4
    0 Votes
    4 Posts
    269 Views
    mkupperM

    This should be split out into a new thread as it’s not a v8.6.4 regression.

    @Gianluca-De-Gluck - At “2 - some files are automatically opened at app startup” isn’t Notepad++ started? If so, what is the tab order?

    Regarding "3 - two or more files are selected in the desktop (anywhere by Windows file manager) and then opened by right click menu’ “edit with notepad++”

    If from Windows File manager you right click and select “edit with notepad++” then Notepad++ will select the file/tab if it is already opened within Notepad++. If the file is not yet open then a new tab is added to the right for this file.

    If from File Manager you select two or more files and then do “edit with notepad++” then the results are less predictable. One of the files selected in File Manager will become the active tab in Notepad++. All of the files will be tabs in Notepad++. The ones already opened in Notepad++ will be somewhere in the list of tabs and the newly opened ones will e on the right.

    I suspect you were hoping or expecting that Notepad++ would shift newly opened files to be the rightmost tabs. That is not the case. This behavior has not changed and I don’t think it has ever changed.

  • Adding File Types

    5
    0 Votes
    5 Posts
    3k Views
    Lycan ThropeL

    @PeterJones ,
    Thanks, @PeterJones , I didn’t know that either. Although it never really bothered me much doing the Save As and putting the extension on, I usually create my files in the dBASE IDE to create the forms and method stubs, and then edit the methods with Notepad++ when I’m working on making a program work in the IDE at the same time, because I don’t have to close NPP like I do the IDE editor to run the program. It makes compile,run,edit much quicker to work on the code of the program, that way. I just tried the language switch, and it did start using my UDL without even having to name the file first, so…kudos for the tip. :-)

    I started to answer @Fred, but realized the File Associations might not have been what he was looking for, so I deleted it.

  • How to use VS Code keymap in Notepad++?

    2
    0 Votes
    2 Posts
    2k Views
    PeterJonesP

    @Ooker ,

    You would have to figure out the mapping between every VSCode command, and its Notepad++ equivalent, and then figure out how to translate the VSCode keymap syntax into Notepad++ shortcuts.xml syntax, using that mapping table. It would be a huge effort.

    As far as I know, no one has ever posted in this Community forum that they have such a mapping already, so you’d likely have to do this yourself.

    (For some reason, I doubt that you’ll be willing to…)

    Sorry to be the bearer of bad news.

    The article FAQ: List of Notepad++ key combinations, available for shortcuts doesn’t seem to provide anything.

    If you had said “it doesn’t answer my question”, that would have been at least accurate. As it stands, that phrasing claims that there is no information in that FAQ, when in reality, there is lots of information in that FAQ, which has proven useful to many people – it’s just not the information you were looking for. But since the FAQ specifically says it’s about the key combinations available to shortcuts, I think it accomplishes exactly what it claims.

    That FAQ doesn’t have anything specific on the shortcuts.xml file format, because that format is already documented in the User Manual’s Config File Details, and our FAQs aren’t going to replicate the entire User Manual, as they serve two different purposes.

  • 0 Votes
    2 Posts
    2k Views
    dr ramaanandD

    @Srinivasan-k-d Simple, type Srini\RVasan in the Find what field and Srini Vasan in the Replace with field, tick the Regular expression mode and hit Replace, you will get Srini Vasan. Then, type Sachin\RTendulkar in the Find what field and Sachin Tendulkar in the Replace with field, tick the Regular expression mode and hit Replace, you will get Sachin Tendulkar. If there are some white spaces in between Srini and Vasan and Sachin and Tendulkar, use \s* instead of \R. Then, press ctrl + h (Shortcut for replace). Then, in the Find what zone, type ^\R ( for empty lines only) or ^\h*\R ( for empty lines with blank spaces only) and leave the Replace with zone empty. Then, tick the Wrap around option. Then, select the Regular expression search mode. Then, click on the Replace All button and all the blank lines will be removed.

  • search doesn't find words outside the view anymore

    3
    0 Votes
    3 Posts
    197 Views
    Joan BosJ

    @pnedev Thank you for the info.

  • Edit 1 line and another line gets edited as well (copy - pasted text)

    7
    0 Votes
    7 Posts
    526 Views
    PeterJonesP

    @A-Former-User said in Edit 1 line and another line gets edited as well (copy - pasted text):

    I’m gonna revert to 8.5.8 until they provide a option to deactivate it.

    Already exists. Notepad++ v8.6.3 and v8.6.4 have Settings > Preferences > Editing 2 > ☑ Enable Multi-Editing, as mentioned in the v8.6.3 and v8.6.4 announcements and already updated in the User Manual.

  • How to eliminate auto tabs?

    6
    0 Votes
    6 Posts
    1k Views
    PeterJonesP

    @Nicholas-Piazza-0 said in How to eliminate auto tabs?:

    The spacebar would only insert that line of tabs after I started a new line.

    Spacebar does not insert a line of tabs, even after hitting enter to start a new line.

    When you have auto-indent turned on, hitting ENTER at the end of one line will create a new line, automatically indented with either spaces or tabs, depending on your active language’s tab settings (Settings > Preferences > Language > Tab Settings). It’s the creating-new-line-using-ENTER that puts in the indentation spaces or tabs.

    Your screenshot was insufficient for me to tell you what’s going on:

    You didn’t include the line numbers, so I cannot see if you have line wrap on You didn’t include context, so I cannot see the line before where you hit ENTER, so I cannot guess how far it should be indented You didn’t include the status bar at the bottom, so I don’t know what file language you have active

    Also, you should share your settings for Settings > Preferences > Language > Tab Settings for the language of your active file, because then we know what your tab settings are for that language.

    Even better, a screen-capture-video animated gif, showing your current file, then you clicking and hitting ENTER, then showing you typing the space, would show us exactly what’s going on. (I use screentogif to capture and automatically upload to imgur, then embed the imgur image using syntax ![](https://i.imgur.com/nASYsAz.gif) to have the forum show the animated gif from imgur’s site – making sure to use the i.imgur.com URL. Unfortunately, while the forum allows pasting in static images like gif or png directly, without using an external host, animated gifs must be externally hosted. You can use any such tool you want; this is just a suggestion if you don’t already have one to use.)

    As it is, I just think your previous line is hugely indented (possibly with View > Word Wrap turned on, so you might have thought you were on a different line, even though you’re really just wrapped on the same line), and you hit ENTER, and since you have the active language set to indent using Tab characters, it indents with the correct number of tabs based on the previous line. I don’t think it’s the spacebar at all.

    update: actually, you might have a plugin that helpfully converts N leading spaces into another tab character, so maybe after you’ve typed 4 (or whatever N is for that plugin) spaces, the plugin automatically converts those to a single tab, and as you continue to hold down the spacebar, the plugin continues to convert the groups of N into another tab. Sharing your ?-menu’s Debug Info will show which plugins you have, and maybe someone here knows of a plugin that behaves that way (I do not, off the top of my head).

    update 2: And I have confirmed that something similar is true, natively: if your language is set to tab-indent, and you have mixed tabs and spaces at the beginning of a line (like cb803e9c-cfbc-4eab-811d-fe04e1017d0f-image.png ), if you hit TAB at the end of that line, it will convert them all to tabs (874df7ec-d40b-4fe8-8535-4cdc164f69b3-image.png )

  • help thanks

    9
    0 Votes
    9 Posts
    570 Views
    mkupperM

    I assume the OP’s cat or young child has has discovered the screen shot button. The list of open tabs is fascinating, are they trying to randomize their own disk or are they lost? It reminds me of “On a clear disk you can seek forever.”

    Thank you @Mark-Olson for the \h tip. I had forgotten about that one when replying on another thread where someone used \s not realizing it also includes the end of line characters. I had not thought about it but \h is the horizontal spaces, \v is the vertical spaces, and \s is space in general.

  • regex regex

    3
    -3 Votes
    3 Posts
    210 Views
    PeterJonesP

    @sozdan53 / @DGS-DGS ,

    Stop spamming the forums with multiple copies of the same posts.

    One of your accounts is in the process of being banned, and if you continue this anti-social behavior, your other will be too

  • Notepad last all session not opening

    3
    0 Votes
    3 Posts
    277 Views
    xomxX

    @utkarsh-patil said in Notepad last all session not opening:

    I using notepad ++ version v7.8.6 (64bit)

    You need to upgrade at least to v8.4.7 (better v8.4.9+), where that Windows shutdown/restart Notepad++ bug has been fixed.

    Its due abort shutdown??

    Yes.

  • Possible to Change Color of Hyperlinks in Text File?

    Locked
    2
    0 Votes
    2 Posts
    237 Views
    Alan KilbornA

    @DeeTNBlazer

    Please don’t post the same thing twice, in two different threads. REF
    Realize that it is the weekend and people are taking time off to do other things than be behind the keyboard.
    I’m sure that someone will reply to your query before too much longer.
    And if not, reposting in a new thread isn’t going to do anything but annoy…

  • Possible to Change Case using Search/Replace or Other

    4
    1 Votes
    4 Posts
    246 Views
    Dennis SchroederD

    Mark…THANK YOU!!! I checked this is my quick sample and it worked perfectly. I will test it in the live export file on Monday.

  • Help with Find please?

    2
    1 Votes
    2 Posts
    156 Views
    Alan KilbornA

    @Teresa-Mendoza

    A couple of ideas, if your word is apple:

    do a Find Next in Regular expression mode for ^.*apple.* with . matches newline unchecked – this will select the entire line of a match, so it is ready for Ctrl+c copy or Ctrl+x cut

    do a Find All in Current Document (in any search mode) for apple – this will opening the Search results panel which presents results on an entire line basis; right-click a hit line(s) and choose Copy Line(s) from the popup menu (sorry, no way to “cut” the original line with this method)