• "File not found" when trying to save a new file

    10
    0 Votes
    10 Posts
    4k Views
    SuperVillainPresidentS

    So, in case anyone is having a similar issue, it was a Windows Defender problem. I guess it was in the last update that there is a Folder Access permission that was set to on. You can either turn it off or set notepad++ to be allowed access. Here is the link that fixed it for me:

    https://answers.microsoft.com/en-us/windows/forum/windows_10-files/file-not-found-check-the-file-name-and-try-again/0734e837-b9f7-485e-93c5-5592f804b4c8

  • Running python

    8
    0 Votes
    8 Posts
    19k Views
    PeterJonesP

    I know that @anand-Mishra hasn’t been back in a couple weeks. But if someone else finds this thread, looking for the same issue, please go to “Trying to run a .py file in IDLE from Notepad++”, where the same problem (or very similar) was solved.

  • "Remember Current Session" - like or dislike?

    22
    0 Votes
    22 Posts
    7k Views
    Alan KilbornA

    @Sunil-Gupta said:

    Name one other application

    Dude, you are seriously not understanding. Let me try one more time: Applications need something that sets them apart from other similar programs. For many many people and Notepad++, a core one of these things is the ability to exit with unsaved files. It makes no difference that other applications don’t do this. Since when do you have to be like the crowd to be correct/innovative?

    Again, I don’t use the feature. But I understand.

  • I see conflicting reports about a UWP version

    Locked
    6
    0 Votes
    6 Posts
    995 Views
    Meta ChuhM

    @Andrew-Perpetua

    I’ve used it without issues on 1440p for quite a while. Unfortunately, I now have a 4k monitor (2160p) and the text is very significantly harder to read on it. Your 1800p is exactly halfway between a 1440p and a 2160p, and it appears fine. So it leads me to believe somewhere between 1800 and 2160 it gets more difficult.

    the windows scaling factor is independent of the physical resolution.
    a higher resolution will only permit you to see a larger area at the same scaling factor.

    the rendering stays the same, albeit your optical reception will depend on the pixel density, compared to your previous display.

    e.g. if your past display was 27" with a resolution of 2560x1440, the most probable visual satisfaction, for all previously used applications, would be achieved with a same size 27" screen, with four times the original resolution, which would be 5120×2880.

    so yes, you are absolutely correct, that the most pragmatic, cost effective, and most logical option, is to find other software that isn’t impossible to read.

    many thanks and best regards.

  • Performance hit due to "Allow undo on reload"

    9
    3 Votes
    9 Posts
    1k Views
    Meta ChuhM

    @Alan-Kilborn

    yes, it has real attention.

    true, the significance has diminished a bit, as the worst thing that can happen to this feature of keeping the buffer after a reload, is to be reverted as suggested, if no-one can figure out and code a better performing and working alternative, than to outsource the undo buffer to disk, or clear the undo buffers manually, or clear them after a dialog triggered by a specific memory threshold.

    any ideas and/or commits are welcome, as we are in a stage of one group saying it’s a cool feature not to remove, and the other group is running into memory issues because of it.

  • Right Justifying Paragraphs

    24
    0 Votes
    24 Posts
    8k Views
    hoji afzalH

    Hi all,

    Just an update: I have been using TextFX in the last 5 months and it does the job pretty well. Was too lazy to try the other methods members graciously provided.

    Thanks!

  • New enhancement for User Defined Language System

    23
    2 Votes
    23 Posts
    21k Views
    Christoph von WittichC

    Copying the userDefineLangs to %ProgramData% does not work.
    And installing the whole application to %ProgramData% is a really bad idea security wise and will be blocked by AppLocker anyway.

  • Is license GPL v2 or v3?

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    nppQuestN

    D’oh! I didn’t even think of checking the issues on the project. Thanks for clearing this up!

  • how to make group chat bruhhhhh

    Locked
    3
    0 Votes
    3 Posts
    470 Views
    Alan KilbornA

    @ur-mum said:

    how do i make a group chat bruhhhhhhh

    BBBBBRRRRRRRRRRRUUUUUUHHHHHHHHHHHHH!

    You do it SOMEWHERE ELSE!

    :)
  • Automatically create folders when opening a new file

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Meta ChuhM

    welcome to the notepad++ community, @raisen

    please go to settings > preferences > default directory and activate use new style dialog as seen at the screenshot below:

    Imgur

    after that, if you save a new file, or if you choose save as, you will have a new folder button, to create a new folder, if it does not exist, as seen at the next screenshot:

    Imgur

    best regards.

  • UDL Coloring From Selected Theme?

    Locked
    4
    0 Votes
    4 Posts
    1k Views
    PeterJonesP

    @Duane-Doutel said:

    UDL for an obscure language. He’ll just have to make do with the default theme while working with it.

    Or he can customize the UDL’s colors to match a single theme that he commonly uses.

  • Минимальная ширина вкладки

    Locked
    1
    0 Votes
    1 Posts
    500 Views
    No one has replied
  • Notepad++ name in Windows Uninstall section

    Locked
    1
    0 Votes
    1 Posts
    354 Views
    No one has replied
  • requisitos de hardware para o notpad ++

    9
    0 Votes
    9 Posts
    5k Views
    Gustavo Alberto HaasG

    Sorry for the delay in answering. I’m doing a personal job researching programs, and I wanted to learn how to use this notpad ++. and as I did not know this program did not know which hardware to use. Thank you all for taking my word for it.

  • Find first occurence feature ?

    Locked
    2
    0 Votes
    2 Posts
    399 Views
    Alan KilbornA

    @Vincent-Morin

    Seems like you could do something like this for that:

    Find (?s)foo.*
    Search mode Regular expression

    (Replace foo with your real search term)

  • Saving style

    Locked
    14
    0 Votes
    14 Posts
    10k Views
    PeterJonesP

    I’ve bumped issue#5415, trying to gain traction on at least adding “portable” in prominent locations on the download page, so that eventually people searching for “portable notepad++” will see the official page, rather than the portableapps, as the first and primary link. (I guess it won’t actually help on this one, because the OP got it from the Windows store… but at least the Windows store points out it’s unofficial.)

  • Ctrl-C to copy again?

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    Thomas BihnT

    Awesome! Thanks Peter, that did it.

  • 7 Votes
    2 Posts
    4k Views
    dinkumoilD

    For some unknown reason the solution @guy038 posted above doesn’t work anymore or at least not always. Thus I want to share an alternative solution. The basics for it have been found by @Ekopalypse in this thread.

    To accomplish the comparison task in a user-friendly way we need the following:

    The Compare plugin (obviously). The NppExec plugin. An NppExec script to start comparison. A Batch script as the controller. A VBScript as launcher for the Batch script to avoid flickering console windows. An Explorer context menu entry. The Compare Plugin

    The Compare plugin can be installed using PluginManager (when using Notepad++ v7.5.9 or below) or PluginsAdmin (when using Notepad++ v7.6 or above). It is also possible to download it from this site (click on releases in the menu bar) and install it manually.

    The NppExec Plugin

    The NppExec plugin can be installed using PluginManager (when using Notepad++ v7.5.9 or below) or PluginsAdmin (when using Notepad++ v7.6 or above). It is also possible to donwload it from this site (click on releases in the menu bar) and install it manually.

    The NppExec Script

    After installing the NppExec plugin navigate in Notepad++ to (menu) Plugins -> NppExec -> Execute.... Copy the following code and paste it into the edit area of the popped up window.

    if $(SYS.NppCommand) == CompareFiles then npp_menucommand Plugins/Compare/Compare endif

    Please note: The npp_menucommand command requieres the path to the menu item it should simulate a click on to be localized. That means you have to provide the name of the Plugins menu in the locale your Notepad++ UI is set to.

    The code checks if there is an environment variable NppCommand with the value CompareFiles. If this is the case it triggers the Compare plugin to start file comparison by simulating a mouse click on the according menu entry.

    Now click on button Save... and enter CompareFilesOnStartup into the combo box. This is the name the script can be called with. Then click the Save button and close the dialog by clicking the OK button.

    Now navigate to (menu) Plugins -> NppExec -> Advanced Options... and select in the combo box under Execute this script when Notepad++ starts the CompareFilesOnStartup script you created above. Close the dialog by clicking the OK button.

    The Controlling Batch Script

    Open a new file in Notepad++ and paste the code below into it. Store it as NppCompareFiles.cmd.

    @echo off & setlocal set "File1Buffer=%TEMP%\NppCompare_File1.txt" if "%~2" neq "" ( set "File1=%~1" set "File2=%~2" ) else if not exist "%File1Buffer%" ( (set /p "=%~1" < NUL & echo.) > "%File1Buffer%" exit /b 0 ) else ( set /p "File1=" < "%File1Buffer%" set "File2=%~1" ) set "NppCommand=CompareFiles" start "" "%ProgramFiles(x86)%\Notepad++\notepad++.exe" "%File1%" "%File2%" del "%File1Buffer%" 1>NUL 2>NUL

    The script can be called once, providing two file paths as parameters. In lines 6 and 7 they are copied to two internal variables.

    The script can also be called twice, providing only one file path each. In this case it checks if a buffer file for storing the first file’s path already exists. If not it copies the provided file path to that buffer file and exits (lines 9 to 11).

    To avoid problems with file paths containing special characters which would be interpreted as control characters by the Batch script interpreter, I use the set /p command to write the file path to the buffer file. This way I can use double quotes, which prevent the evaluation of control characters by the Batch script interpreter, without writing these quotes to the buffer file.

    If the buffer file already exists, the contained file path is read from it and stored into an internal variable to be used as the first file for comparison. The file path of the second file is taken from the provided parameter (lines 13 to 15).

    As a last step an environment variable named NppCommand is created and set to the value CompareFiles (this variable is queried in the NppExec script above). After that Notepad++ is executed with the two file paths retrieved before as arguments (lines 18 to 19). By using the start command it is possible to avoid the script getting paused until Notepad++ is closed. Instead execution continues immediatly.

    Finally the buffer file for the first file’s path is deleted (line 21).

    The VBScript Launcher Script

    It would be possible to use the Batch script created above directly. But that would cause console windows popping up and disappearing immediatly, an ugly flickering effect.

    For that reason we need the following launcher script. Open a new file in Notepad++, paste the code below into it and save it as NppCompareFilesLauncher.vbs.

    If WScript.Arguments.Count = 0 Then WScript.Quit Set objFSO = CreateObject("Scripting.FileSystemObject") Set objWshShell = CreateObject("WScript.Shell") strScriptPath = objFSO.GetParentFolderName(WScript.ScriptFullName) strScriptFullPath = objFSO.BuildPath(strScriptPath, "NppCompareFiles.cmd") strArgs = "" For intIdx = 0 To WScript.Arguments.Count - 1 strArgs = strArgs & """" & WScript.Arguments(intIdx) & """ " Next objWshShell.Run """" & strScriptFullPath & """ " & strArgs, 0, False

    The script collects all the provided command line arguments one by one and generates a new command line consisting of the full path to the NppCompareFiles.cmd script and all the original command line arguments. Then it executes the Batch script in a hidden window, which avoids flickering console windows.

    The Explorer Context Menu Entry

    At first move both the two files NppCompareFiles.cmd and NppCompareFilesLauncher.vbs to a folder of your choice. For this How-To I will use C:\Program Files (x86)\Notepad++\plugins\ComparePlugin\ComparePlugin.

    Open a new file in Notepad++, paste the code below into it and save it as NppCompareFiles.reg. In line 7 you have to provide the folder where you stored the two script files in the last step.

    Please note: Strings in *.reg files have to follow the escaping rules of strings in the C programming language. That means that e.g. " and \ have to be escaped with the \ character, which causes the double-backslashes in the file’s content below.

    Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\CompareWithNpp] @="Compare with Notepad++" [HKEY_CLASSES_ROOT\*\shell\CompareWithNpp\command] @="wscript.exe /nologo \"C:\\Program Files (x86)\\Notepad++\\plugins\\ComparePlugin\\ComparePlugin\\NppCompareFilesLauncher.vbs\" \"%1\""

    Now double-click the resulting *.reg file and confirm the UAC dialog and all other dialogs. This will install an entry named Compare with Notepad++ in the Explorer context menu of all files. After that you can delete the *.reg file, it is no longer needed.

    First Try

    Now close Notepad++. Open an Explorer window, right-click one file, select Compare with Notepad++ from the context menu, right-click another file and do the same. Notepad++ should open and the files should be compared by the Compare plugin.

    Close Notepad++ again. Select two files at once, right-click one of them and select Compare with Notepad++ from the context menu. Notepad++ should open and the files should be compared by the Compare plugin.

  • functionList.xml PureBasic

    8
    0 Votes
    8 Posts
    3k Views
    AZJIO AZJIOA

    <association id= “purebasic_function” userDefinedLangName=“PureBasic” />
    <association id= “purebasic_function” langID=“68” />
    <association id= “purebasic_function” ext=“.pb” />
    <association id= “purebasic_function” ext=“.pbi” />
    <association id= “purebasic_function” ext=“.pbf” />

    ; !i!i!i!i!i!i!i!i!i!i!i!i!i!i!i!i!i!i!i!i!i

    <parser
    displayName=“PureBasic”
    id =“purebasic_function”
    commentExpr=“(?x)(?m-s:^\h*;.*?$) # !Single line comment”

    <classRange mainExpr ="(?x)(?mi)^\h*Module\h+\K[A-Za-z_]\w*\s+.+?(?=EndModule)" > <className> <nameExpr expr="\w+" /> </className> <function mainExpr="(?x)(?mi)^\h*(?:Procedure[CDL$]{0,5}?(?:\h*\.[abcdfilqsuw])?\K|Macro)\h+[A-Za-z_]\w*\h*(?=\()" > <functionName> <funcNameExpr expr="[\w\h.$]+" /> </functionName> </function> </classRange> <function mainExpr="(?x)(?mi)^\h*(?:Procedure[CDL$]{0,5}?(?:\h*\.[abcdfilqsuw])?\K|Macro)\h+[A-Za-z_]\w*\h*(?=\()" > <functionName> <nameExpr expr="[\w\h.$]+" /> </functionName> </function>

    </parser>

  • Something wrong with the latest version

    Locked
    7
    0 Votes
    7 Posts
    873 Views
    PeterJonesP

    @PeterJones said:

    automatic “in selection” box-enabling to be at a lower threshold

    As an addendum: The problem with a lower threshold is that many users want to be able to select two or so lines of text, and search the rest of the document for those same lines. That is possible now… but if the threshold were made too short, it might frustrate that use case.

    It’s hard to make everybody happy at the same time with software design decisions.