• 0 Votes
    12 Posts
    3k Views
    PeterJonesP

    @waskoma said in Cant change cursor color, and latest version shortcut to start batch file claims it cant find it:

    while we’re at it, some years ago probably it was you helping me to get code folding working I want to use:

    ;blockbegin
    ;blockend

    but that doesnt work again, looking at it at 8.9.2 it seems to recognize it only when there are like above right in the next row to eachother.

    allow folding of comments is checked. comment line is set to “,”

    line comment position is allow preceding white space

    I am quoting and replying to this here, because this is where it belongs:

    It still works for me in v8.9.2, using the same color descriptions as I used three years ago:

    1ad97c38-63dc-49e1-8e73-4cd67f843f79-image.png

    60c23da2-7e57-428c-a3dc-bdcbb8861f3f-image.png

    If you think you have text that doesn’t work with that, click the </> button in the forum, and paste that text between the ``` lines

    update: note that 8.9.2 actually has some bugs with regards to entering keywords: it would crash on long keywords. And, if my experiences just now were any indication, it also doesn’t necessarily save the edits to other fields, like the open/close for the folding or comment-line fields. But when I tried the bugfix build for my #17520 issue report, it allowed me to enter those other fields, and save them. So if you’re editing UDL, I actually recommend v8.9.1, not v8.9.2 (until the v8.9.3 is released with a fix)

  • 0 Votes
    5 Posts
    123 Views
    PeterJonesP

    @waskoma said in Cant change cursor color, and latest version shortcut to start batch file claims it cant find it:

    <Command name="Wikipedia Search" Ctrl="no" Alt="yes" Shift="no" Key="87"> c:\64start.bat $(FILE_NAME) $(NAME_PART).prg &quot;$(CURRENT_DIRECTORY)&quot;</Command>

    I cannot replicate the problem (so far)

    content of c:\64start.bat:

    @echo ran command `%0 %*` @pause

    content of shortcuts.xml entry:

    <Command name="Waskoma Command" Ctrl="no" Alt="yes" Shift="no" Key="87">c:\64start.bat $(FILE_NAME) $(NAME_PART).prg &quot;$(CURRENT_DIRECTORY)&quot;</Command>

    I tried with two files each, once with v8.4.1 and once with v8.9.2.

    For ...\FileNameNoSpaces.txt:

    v8.4.1 results: ran command `"C:\64start.bat" FileNameNoSpaces.txt FileNameNoSpaces.prg "C:\usr\local\apps\npp\npp.8.4.1.waskoma"` Press any key to continue . . . v8.9.2 results: ran command `"C:\64start.bat" FileNameNoSpaces.txt FileNameNoSpaces.prg "C:\usr\local\apps\npp\npp.8.9.2.waskoma"` Press any key to continue . . .

    For ...\File Name With Spaces.txt:

    v8.4.1 results: ran command `"C:\64start.bat" File Name With Spaces.txt File Name With Spaces.prg "C:\usr\local\apps\npp\npp.8.4.1.waskoma"` Press any key to continue . . . v8.9.2 results: ran command `"C:\64start.bat" File Name With Spaces.txt File Name With Spaces.prg "C:\usr\local\apps\npp\npp.8.9.2.waskoma"` Press any key to continue . . .

    So both worked for me, and Notepad++ had no trouble running the 64start.bat, whether in v8.4.1 or v8.9.2

    However, this works on the assumption that there wasn’t really the newline before c:\64start.bat in your XML. It shouldn’t matter, but it also shouldn’t be there; so if there is the extra newline, delete it.

    Also, my test works on the assumption that your 64start.bat will do the “right thing” with spaces in the filename without quotes, which I am highly dubious of. My working theory is that the problem is actually either the missing quotes, or something that’s being called inside your batch file.

    Notepad++ has been undergoing changes in which XML reader library it is using for parsing the config files like shortcuts.xml… so if you’ve actually got that newline, or if you have more entities than &quot; which you haven’t told us about, it might be behaving differently between the two, and that might explain the difference in behavior.

    As an experiment, if removing the newline wasn’t enough to fix it, you might want to try renaming your 64start.bat and putting in a new version that’s got my contents. If it properly runs and gives similar results to what I showed in my experiment, then the problem is likely the quoting. If it doesn’t properly run, even though you are using the same <Command...> entry, then I am betting you edited your command entry before posting it here, and whatever you edited out is the culprit.

  • 0 Votes
    5 Posts
    130 Views
    Guy PrzytulaG

    @PeterJones yes, many thanks : global override was the cause
    now all highlighting is correct as set/wanted
    best regards, Guy

  • Notepad++ VERY slow to open

    Help wanted · · · – – – · · ·
    21
    0 Votes
    21 Posts
    13k Views
    PeterJonesP

    @Gerard-Kiekens said in Notepad++ VERY slow to open:

    I agree with you that the size should not change, but it did.

    Hard to argue my side cogently when you provide no data.

    Editing a fresh Darkmode_Default afterwards solved the problem. This one also increased in size, but kept working as fast as it should.

    But not from 220kB to 500MB.

    If you want to "play"with it, you can find it here:
    https://www.key-can.nl/Info/DarkModeDefault.xml

    The file you linked there is only about 220kB as well. And the reason it’s a different size than the actual DarkModeDefault is because it obviously started from an old version of Choco.xml, as evidenced by the copyright notice starting:

    <?xml version="1.0" encoding="Windows-1252" ?> <!--// choco Copyright (c) 2008 Fabio Zendhi Nagao <http://zend.lojcomm.com.br/>

    I can tell it’s an old copy of choco, though, because it is still “Windows-1252”. That was changed to UTF-8 in v7.9.3 from 2021.

    DarkModeDefault was originally derived from Zenburn.xml, since the time it was created (it started with the full zenburn preamble, but eventually pared it down to

    <!-- Dark mode default style for Notepad++. This file is based on Zenburn them (zenburn.xml) License: GPL2 -->

    As you will probably know you can find the themes in %users%\Appdata\Roaming\Notepad++\Themes

    That’s where you find your customizations. The originals (kept up to date with each update of the program) are in c:\program files\Notepad++\themes. Historically, Notepad++ would just leave your customized themes completely alone, so they would never show you any of the new styles that had been added/enabled over the last 5 years; in the recent Notepad++ releases (starting in v8.8.9, though I recommend skipping 8.8.9 and 8.9.0 and going directly to 8.9.1-or-newer because of bugs in the first two releases of this feature), it will add any missing styles or missing languages to your active theme, so that way, your Style Configurator will allow you to edit colors for new styles or languages without losing all your old theme customizations.

    So the small size difference between your Choco-based theme and the actual DarkModeDefault can be explained by being based on the old Choco. The huge 500Mb size that you reported from earlier cannot be explained by anything that’s been said yet, and I still don’t understand how it could have happened inside Notepad++. And without a hint as to what the edited XML looked like for the super huge file, there’s really no way that mystery will ever be solved.

  • 0 Votes
    2 Posts
    34 Views
    PeterJonesP

    @Tangfolio ,

    From a Windows command line, to pass a filename with spaces to an application, you need to put quotes around the filename. This is the way that Windows defines the command-line interface, and not something specific to Notepad++

    update: sorry, that was an abbreviated response. Real life interrupted, so I posted what I had so far, at the time. continuing where I left off:

    So, from the command line, notepad++.exe word1 word2.txt would try to open word1 and word2.txt in the current directory, which presumably don’t exist, whereas notepad++.exe "word1 word2.txt" would properly try to open the file with spaces in the name.

    If you are using the right-click context menu in Explorer, the normal Edit with Notepad++ (which gets added via NppShell.dll, when you do a normal Notepad++ installation), then it should handle the spaces just fine. But if you created your own Notepad++ entry using regedit or a registry .reg file, you have to make sure that your entry says, "c:\Program Files\Notepad++\notepad++.exe" "%1", with the quotes around each, otherwise it will behave as you described.

    Again, requiring the quotes around the filename is just the way Windows OS has defined the command-line interface (but similar is true in other operating systems, as well, because any OS must be able to tell the difference between program file1 file2.txt trying to work on two different files and program "word1 word2.txt" trying to work on one file with a space in the name.)

  • 0 Votes
    14 Posts
    3k Views
    Mario KorvaM

    @Mario-Korva

    Finally I found some time to try to fix C++ Function List parser regex (cpp.xml) to show all constructors.
    Modification of the mainExpr in the <classRange> element of <parser>:

    Original expression:

    mainExpr="(?x) # use inline comments ... )? \s* # trailing whitespace \{ # class/struct body "

    Modified expression:

    mainExpr="(?x) # use inline comments ... )? \s*(:[^:]*)? #<- trailing whitespace and initializers \{ # class/struct body "

    I did equivalent modification of the mainExpr in the <function> element of <parser>. This modification enable that function list shows constructors with initializers.
    I found also that functions defined with the call convention keyword, for example:

    void __fastcall function(parameter) { ...

    are also missing in the function list. This is solved with the addition of the

    (__[\d\l]+\s+)? #<- call convention __fastcall, __stdcall, etc.

    immediately after second “# type pointer/reference” part of mainExpr in the same two elements.

    After this modificatoins the Function List of my C++ source files appears complete! I hope that I didn’t break something.
    I tried to include modified cpp.xml here, but the post becomes too long.
    I hope this will be useful for someone.

  • Why is the forum so scary?

    Moved Boycott Notepad++
    7
    -3 Votes
    7 Posts
    195 Views
    PeterJonesP

    @Mister-Smitt ,

    As you are just here to whine and complain and curse, I will move this “topic” to “Boycott Notepad++”, where such belongs.

    And then, since I have that Category set so that I never see new posts there, I can hopefully just ignore anything else you post.

    Good luck with your whining, ad hominem attacks, and anti-social behavior. <sarcasm> It will serve you well in life. </sarcasm>

  • [New Plugin] MultiReplace

    Notepad++ & Plugin Development
    77
    3 Votes
    77 Posts
    55k Views
    Thomas KnoefelT

    A new version of MultiReplace (v5.0.0.35) is ready and will be available with the next Notepad++ release. For early testing, it can already be downloaded here.

    The focus of this release is on a new Settings Panel, improved Search Results visualization, and overall usability enhancements.

    Key Features & Improvements Settings Panel: A comprehensive configuration dialog replaces manual INI file editing. All options are now organized into clear categories: Search & Replace, List View, CSV Options, Export, and Appearance. Refined Toolbar Icon: The icon has been updated to improve clarity. List Search Bar: Press Ctrl+F while focused on the replacement list to open a search bar. Quickly find entries in large lists by searching through the ‘Find’ and ‘Replace’ columns. Search Results Window Enhancements: Color-coded matches (up to 28 colors) for easy visual distinction per list entry. Double-click the Matches count to jump directly to the results. Duplicate Line Detection: Identify and mark duplicate CSV rows. Delete or inspect duplicates with optional bookmark navigation. Binary Escape Sequence: Extended mode now supports \bNNNNNNNN for binary values. tonum() Function: New helper to convert strings to numbers, supporting both dot and comma as decimal separators. MATCH and CAP Variables: Now always return strings. Use tonum(CAP1) for calculations. Selection Mode: The ‘In Selection’ radio button no longer disables itself, enabling smoother repeated searches. Document Filtering for Open Docs: Find and Replace in Open Documents now supports wildcard-based filename filtering. Unified Filter Syntax: Filters now use semicolons (;) as separators in both ‘Open Documents’ and ‘Find in Files’ modes. This enables filtering for filenames containing spaces. Performance: Various optimizations for Replace All, Find All, and FlowTabs alignment on large files.

    New Settings Panel with organized categories
    17ec400c-8dde-4b03-94ec-c2f2a25bc600-image.png
     
    Double-click the Matches count to quickly navigate through results
    ba478eec-321e-42f3-ad63-d2c9239eca42-image.png

    Enjoy!

  • Notepad++ v8.9.2 Release

    Pinned Announcements
    8
    1 Votes
    8 Posts
    4k Views
    MarkusBodenseeM

    @PeterJones said in Notepad++ v8.9.2 Release:

    If you uncheck the Plugins Admin and Auto-Updater checkboxes, the gup.exe will not be installed, and Plugins Admin will not work. (I know there was a recent conversation and/or issue and/or PR about also having that remove the old gup.exe if it’s unchecked in the installer, but I cannot find it, and cannot remember whether the removal has been implemented yet or not.)

    It is fixed and implemented in Notepad++ v8.9, see fix for no 3 in the list Commit e89b0be.

  • 0 Votes
    5 Posts
    206 Views
    mr10008M

    @mr10008 @Snabel42 @PeterJones
    Thanks for your comments.
    Looks like I got it fixed - I right-click on the installation file and run as administrator. Installation goes very quickly and the proper N++ context menu appears now.

  • 0 Votes
    9 Posts
    289 Views
    วีรภัทร ทวีทรัพย์

    @PeterJones Finally, I found a collection of NPP binary releases. I will share this collection when I have my free time.

  • 0 Votes
    3 Posts
    102 Views
    guy038G

    Hello, @vitalii-dovgan,

    By choosing Your option, I meant that the @peterjones’s option , with a link to the remote version, seems the best choice !

    Best Regards,

    guy038

  • gup.exe - never seen that process on my pc

    General Discussion
    2
    0 Votes
    2 Posts
    90 Views
    PeterJonesP

    @akurzawa ,

    gup.exe is the binary that Notepad++ uses when it is asking the server if there are updates available, and when you are installing plugins using Plugins Admin.

    The destination IP that your screenshot shows is the current IP for norepad-plus-plus.org

    I am not an expert on the format of your output, but everything I see seems legit to me.

  • 0 Votes
    5 Posts
    208 Views
    Jerry DJ

    @PeterJones Thank you so much. It is looking MUCH better now.

  • Admin mode changes

    General Discussion
    3
    0 Votes
    3 Posts
    432 Views
    X

    @PeterJones Thank you so much for the detailed explanation! 🤗
    I understand now why it behaves differently than before and can totally relate.
    Keep up the great work! 👍

    btw, i am simply using the superbly integrated ‘Read-Only’ functionaility! So I get the the safety AND convenience (no restart required).

    All the best.

  • Unsaved?

    Help wanted · · · – – – · · ·
    2
    0 Votes
    2 Posts
    69 Views
    PeterJonesP

    @jpatterson-ATL said in Unsaved?:

    But, as a general rule, are you saying that if I didn’t manually save the file, that the cached changes just disappeared when I made the save choice, whatever that was?

    See our periodic backup FAQ. Essentially: Notepad++ believed you when you gave it the answer. The “session snapshot and periodic backup” feature was never meant as a long-term backup (there’s the backup-on-save option for that), but as a “try to protect me, if you can, if something goes wrong on the computer between my reasonable-duration saves” feature.

    The notes.txt file is stored in OneDrive but the file version history shows the newest date to be over a year ago.

    It boggles my mind that you would have a named file that you cared about, and not noticed that it hadn’t saved to the OneDrive in more than a year. And not noticed that the icon on the tabbar had been saying “unsaved changes” for all that time. And that you can go that long without ever thinking about hitting Ctrl+S or clicking the Save menu or toolbar button.

    Given your habit, I would highly suggest installing and configuring the AutoSave plugin, so that you don’t lose data again in the future. How to set up that plugin is described in detail in the FAQ.

  • 0 Votes
    5 Posts
    129 Views
    Bob SmithB

    @PeterJones Thank you.

  • Modleine Parser No Longer Works

    General Discussion
    2
    0 Votes
    2 Posts
    74 Views
    PeterJonesP

    @LaMar-M said in Modleine Parser No Longer Works:

    I’ve been using “ModelineParser_0.2” for several years to automatically select the language. This parser is still available here.

    Yes. But it hasn’t been updated in 13 years. Notepad++, on the other hand, releases a new version about once a month.

    Recently my NP++ version got auto updated (by IT) to version Notepad++ v8.7.4.

    Your IT department chose a version from 14 months ago? It will still be missing security updates found in more recent Notepad++ versions.

    But yes, in the intervening 13 years, Notepad++ has made multiple changes to the documented interface for communication between a plugin and Notepad++. There have been some changes that were known to break older/unsupported plugins. But Notepad++ cannot stop all progress just because there are legacy plugins still published out there.

    When I open a program that used to default to a specific language, no language is set. I have to manually set it.

    Fortunately, the NppFileSettings plugin has modeline support, including recognizing filetype, ft, syntax, and syn for setting which syntax highlighting lexer to use. And its Releases page has 32bit and 64bit downloads, so it will work in your 32-bit edition of Notepad++.

    (And also, if you have a consistent filenaming convention with extensions that match the filetype, you can just set the User ext: box in the appropriate language(s) in the Style Configurator to make Notepad++ recognize the file type by extension, rather than by modeline. But if you need modeline support, hopefully NppFileSettings will work for you.)

    Notepad++ v8.7.4 (32-bit)

    In the modern world, where Windows OS is only maintained in 64-bit, there is virtually no reason to use 32-bit applications. For Notepad++, the only good reason for 32-bit instead of 64-bit is because you have a legacy plugin that only comes in 32-bit, that has no 64-bit version or alternative plugin with the same features.

    Looking at your other non-default plugins:

    CSVLint (0.4.6.7) PythonScript (0.9.2)

    Both of those come in 64-bit versions now.

    And PythonScript’s latest official release is up to v2.1.0, which uses Python 2.7.18, with significant bugfixes and feature improvements in both the plugin itself, and in the underlying Python interpreter (interpreter 2.7.1 from plugin 0.9.2, vs interpreter 2.7.18 from plugin 2.1.0). (Given your IT department’s apparent reticence to upgrade, I am not going to suggest moving to the “alpha” version of PythonScript 3.0.24, which uses Python interpreter 3.12.10, even though unless you use a lot of non-unicode files, I personally recommend using the version of the plugin that uses a modern Python interpreter rather than an interpreter that’s past its end of life.)

    And assuming that NppFileSettings plugin works as a replacement for the unsupported and incompatible modelineparser plugin for you, then all three of the non-preinstalled plugins that you have shown an interest in will work with 64-bit Notepad++ as well.

    As such, if you can confirm that PythonScript v2.1.0 and NppFileSettings will work for you, then I highly recommend that you talk with your IT:

    Ask if they can switch to 64-bit Notepad++. Ask if they will support a newer Notepad++. I desparately want to recommend the newest version, because of all the recent security fixes, but if you use UDL, then v8.9.2 probably won’t work for you, so you might have to stick with v8.9.1 until the regression fix for UDL is released in v8.9.3 (hopefully soon)
  • 0 Votes
    2 Posts
    96 Views
    CoisesC

    @harmansinghdeepkandhari:

    When you install through Plugins Admin, Notepad++ verifies that the hash of the downloaded zip file containing the plugin matches the hash that was supplied when the plugin was added to or updated in the plugins list.

    That is all that is done. Aside from the three plugins included with Notepad++ (MIME Tools, Converter and NppExport), the author/maintainer of Notepad++ does not vet plugins.

    Realistically, he could not do that comprehensively. And — in my opinion, wisely — he does not make a halfway, superficial attempt (like running them through a “virus checker”) which would only give a false sense of security and open up the project to claims that it didn’t do “enough.”

    Further, it should be understood that plugins in Notepad++ are fully capable of doing anything Notepad++ itself can do. They are C++ programs (or the equivalent) running in the same security context as Notepad++. The architecture is very flexible, but it presumes one only installs plugins worthy of trust.

    The user (or system administrator, in a managed system) is completely responsible for establishing the suitability of Notepad++ plugins (just as the same responsibility applies regarding Notepad++ itself). Nearly all are open source; you can examine the code, the issues, and so on. You cannot assume that inclusion in the plugins list means any plugin is “safe”; your own due diligence is required.

  • 0 Votes
    5 Posts
    1k Views
    Bob SmithB

    @iChal2112 That worked. Thank you :).

    I will add the steps in case anyone finds this post with google.

    Click the settings icon in the notepad ++ ftp plugin, profile settings, click a profile you want to edit, cache, click the … button by add new button, set a local path I chose C:\Users\user_name\Downloads, set a external path I chose /, click the add new button

    An odd thing to note. I am using Windows 11. I also have admin privileges on my computer but still needed to do this. Not sure why I was having trouble. This issue occurred on a red hat server. The red hat server has time out issues all the time.

    I have zero problems on my sunos servers. I did not change my cache settings at all on my sunos servers.

    Someone that is good with copilot pointed out another option is to use winscp with notepad ++. This required no setup. Just use winscp to open your remote file in notepad++. I have notepad ++ setup as my default text editor. Not sure if this is the case for all Linux/Unix servers but scp is more stable on the red hat server I am using.