• Modleine Parser No Longer Works

    2
    2
    0 Votes
    2 Posts
    255 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)
  • np++ and USB moving to another PC

    3
    3
    0 Votes
    3 Posts
    305 Views
    PeterJonesP
    @cashfields , Your post would have been much easier to read if you actually typed your text in the post, rather than typing your text in the image. It looks like what you would like is the ability to have the file history be set to “relative” instead of “absolute”. Unfortunately, the developer already rejected a feature request which requested that you be able to store a session (File > Save/Load Session… commands) automatically as relative. And if sessions were too complicated to do that for, in his mind, then doing it for the file history is definitely right out. However, if you save a session, and then edit it to be relative, I believe it works … so you could then load the relative session anytime your USB changes drive letter, and it would hopefully work for you. (I know it’s not exactly what you’re asking for, but given his rejection of that feature request, it’s the best you’re going to get.) Or, for a poor-man’s session: make a batch file that opens each file relatively in the batch file.
  • Redact Selection feature

    1
    2
    0 Votes
    1 Posts
    342 Views
    No one has replied
  • 0 Votes
    2 Posts
    300 Views
    PeterJonesP
    @pasha-19 said in styler.xml/WordsStyle/keywordClass association with langs.xml/Language/Keyword/Name: I was looking to add a WordsStyle with a keyword list to an existing language. That’s not the way it works. Existing languages are hardcoded (compiled) internally with a list of available styleIDs, and only particular styleIDs have keyword lists associated with them. You cannot just add a WordsStyle with its own styleID and a list of keywords, and hope that the lexer will magically see them. It will not. My question concerns the styler.xml/WordsStyle/keywordClass that appears to match langs.xml/Language/Keyword/Name. There are some seemingly standard keywordClass values instre1, instre2 and type1 to type7 and maybe type8. Do these seemingly standard values have any additional meaning besides providing a link from the keywordClass in styler.xml to the Language/Keyword/Name in langs.xml? They have an integer value (0-8). Those correspond to the 9 available keyword lists inside the lexer, which any given lexer may reference zero or more of. If you use the wrong keywordClass, Notepad++ will not be able to pass the list of words to the lexer. And if you make up a keywordClass or use one that’s not already defined for a given language, the lexer won’t see it, and those keywords won’t get highlighted. [can] any keywordClass/Name that matches could be used? Nope, sorry. Each lexer has a predefined list that Notepad++ will pass on to the lexer and that the lexer will recognize. To sum up: the official list of available keywordClass/name values for any given lexer are listed in the copy of langs.model.xml that ships with a given version of Notepad++: that will always list all the ones that Notepad++ knows about, and if you try to define others than those for any given language, Notepad++ cannot pass it on to the lexer. However, it may be that your langs.xml or stylers.xml are out of date. If you haven’t updated to v8.9.1 yet, run that update, and the first time you run, Notepad++ will update langs.xml and stylers.xml (or any other active theme) to include any missing styles. You might find that the language you want to customize has more keyword lists available in the Style Configurator now. If a given language doesn’t have enough different styles to give you differently-colored sets of keywords, you cannot just trick Notepad++ into creating more for you. However, using the EnhanceAnyLexer plugin (you can install it using Plugins Admin from the Plugins menu), you could define a regular expression to match the keywords you wanted. For example, for a given lexer language, if you wanted to add three keywords with red foreground and four with a blue foreground, you could use the following in the EnhanceAnyLexer configuration file (whcih you can easily access using Plugins > EnhanceAnyLexer > Enhance current language. [LexerName] 0x0000FF = \b(red1|red2|red3)\b 0xFF0000 = \b(blueA|blueB|blueC|BlueD)\b This will give: [image: 1770937917433-ad688e24-5716-46a9-beae-934a6017df82-image.png] The EnhanceAnyLexerConfig.ini has documentation in its comments, explaining that it’s 0xBBGGRR for the hex colors, and how to get those colors to only apply within certain parent styles, etc. And https://github.com/Ekopalypse/EnhanceAnyLexer/ is the homepage for the plugin.
  • Highlight color not correct

    3
    1
    0 Votes
    3 Posts
    330 Views
    David Smith 2D
    @Alan-Kilborn Current line background colour is now white, also tried minty green Selected text is now the minty green Multi-selected text color is also minty green minty green for all 3 then Current line background colour white. [image: 1770930766616-green-white.jpg]
  • How to show 2 document list windows in vertical?

    3
    0 Votes
    3 Posts
    360 Views
    W TXW
    @FreeMeow Thank you!
  • How can you copy or move 2 or more files at once into any folder?

    16
    0 Votes
    16 Posts
    5k Views
    Hugo84-ChitownH
    @Coises This is an excellent solution. Not only did it solve this specific issue for me (as I transition away from my job, and need to save out many learning notes), but this taught me new tricks that I didn’t know Notepad++ was capable of. Thank you so much for sharing your knowledge.
  • How to change the colors used for html/css that is exported

    2
    0 Votes
    2 Posts
    268 Views
    David Smith 2D
    This issue has been fixed: I did the following. As I use a inline style sheet I created a “css color.css” file in Notepad++. Just a blank page that I can do the following: I can now paste my HTMLPad 2025 css code into Notepad++ with the colors I changed under Settings> Style Configurator. I also created a “html-colors.html” blank file and I can copy the html code with colors that Notepad++ provides that has been updated in the Style Configurator. Next I highlight the text then go to “Plugins” on the toolbar then “NppExport” then “Copy all formats to clipboard”. I can now paste in the html/css code into Word with the colors I want. I still cannot create a style in Word 2024 with colors as I suspect it would be too complicated for Word to figure what parts the different text it should color.
  • Session migration

    2
    0 Votes
    2 Posts
    225 Views
    PeterJonesP
    @Magic-Mugs , Assuming all your open files are real files, and all in the exact same folders on old and new machine, then just copy over %AppData%\Notepad++\session.xml If some of your files are the unsaved new # tabs, you will also need to copy over everything in %AppData%\Notepad++\backup\ But if you want all the same settings from your old to your new, just copy over everything from %AppData%\Notepad++\
  • Strange highlighting in PHP files

    3
    2
    0 Votes
    3 Posts
    466 Views
    Nazar HotsaN
    Thank you! Problem solved.
  • Name on donation button is not "Don Ho" -- is this okay?

    2
    1 Votes
    2 Posts
    507 Views
    shane knappS
    @David-Brown i came here to let you know that my receipt had what appears to be his email address on it (which i’ve blocked out here for privacy): [image: 1770251302182-2a1a9747-0e42-4d15-80d0-eb4737ffabd4-image.png] seems legit to me, but i can’t know for sure. :)
  • 0 Votes
    8 Posts
    972 Views
    S
    @PeterJones Hello, Here is a demonstration of what altsnap does You can press the ALT key, or the “hot click” which on my mouse is mouse button #5. And this allows moving and resizing a window from anywhere. https://youtu.be/Wzt7hSyGGmc It is very ergonomic as you don’t have to position the cursor on the thin window edges. I think this is quite rare and cutting edge practice, most people I think just maximize their window and use one application at a time. But I have a very large desktop of 4x 40 inch 4K monitors and I needed more efficient way to move the windows around. As for the scrolling, there are two “middle-click” based scrolling methods I know about. There’s the autoscroll round thing which I don’t really like, it’s like using a thumbstick. It’s good if you want to let it scoll at a constant speed like the text scroll at the beginning of star wars but it is otherwise clumsy and slow to use, not “dextrous”. I prefer the “scroll anywhere” method which is similar to like you would scroll a touch tablet interface. I demonstrate both of these modes here https://youtube.com/shorts/yHuWI4f1rOg So, what I am asking is like scroll anywhere but in a left-right direction to move the center divider around.
  • 4k resolution

    4
    0 Votes
    4 Posts
    2k Views
    J
    @Maxitrol-Mat said in 4k resolution: While some things look good, some other things look microscopic. One thing that may help: In Preferences > Toolbar, try choosing a “large” UI option.
  • 0 Votes
    1 Posts
    246 Views
    No one has replied
  • The problem with notepad.runMenuCommand

    10
    1 Votes
    10 Posts
    1k Views
    W
    @PeterJones said in The problem with notepad.runMenuCommand: Simple and light is often the opposite of universal. This is often the case, but not always. @PeterJones said in The problem with notepad.runMenuCommand: If you solution is “universal enough” for you, fine; Of course, when there is no ideal option, you have to choose the one that is most suitable for the situation. @Alan-Kilborn said in The problem with notepad.runMenuCommand: Good luck achieving all of those all of the time. Or do you have a “pick any 2” or “pick any 3” type rule? ;-) Thanks. It happens to everyone at some point ;) But it must be universal and fast, even if it means making the code complex.
  • Search Dialog Adding `\r\n` to pasted search queries.

    3
    0 Votes
    3 Posts
    430 Views
    H
    @PeterJones Thanks so much for the quick reply. Installing the release candidate fixed the issue for me. Much appreciated!
  • 0 Votes
    1 Posts
    192 Views
    No one has replied
  • TABS CTRL+TAB, CTRL+TAB+SHIFT

    2
    0 Votes
    2 Posts
    435 Views
    PeterJonesP
    @El-Greco-0 , The Ctrl+Tab / Ctrl+Shift+Tab is the “Document Switcher” feature. By default, Settings > Preferences > Misc > Document Switcher has ☑ Enable MRU behavior checkmarked, which turns on Most Recently Used (MRU) order for the Ctrl+Tab order. If that is unchecked, then the Ctrl+Tab order is determined by the order of the tabs in the view, so if you turn off that option and use Window > Sort By > Name A to Z, then Ctrl+Tab will follow alphabetical order. The reason why Ctrl+Tab defaults to MRU, is because it is often (maybe even mostly) used as the quick/simple “swap between this tab and the last tab I used”, rather than cycling through the entire list. Also, there is a separate set of keystrokes, Ctrl+PageDown for next-tab and Ctrl+PageUp for previous-tab, which already follows the order of tabs in the view (so also affected by the Window > Sort By > … sorting), so it’s already easy to navigate between tabs in the view order by another similar means – so again, it makes sense to default the Document Switcher Ctrl+Tab to use Most Recently Used behavior…
  • UNIgetUI update shows 2 instances of notepad++

    1
    1
    0 Votes
    1 Posts
    227 Views
    No one has replied
  • Open container folder in cmd but as a toolbar button ?

    4
    1
    0 Votes
    4 Posts
    505 Views
    S
    Hello Thank you for the responses ! @Ekopalypse I have tried this method After installing PythonScript, it was unclear where I could add the script open_containing_folder_in_cmd.py I tried C:\Users\user\AppData\Roaming\Notepad++ (no) C:\Users\user\AppData\Roaming\Notepad++\plugins (no) C:\Program Files\Notepad++\plugins\PythonScript\scripts (maybe) It still wouldn’t appear, until restart (this should, auto refresh I believe, when you open configuration at least ?) It appeared in the menu [image: 1768356923637-0ac210cc-ad88-4800-87c7-58a74d503428-image.png] But not in the configuration page [image: 1768356942740-322dddaa-81f2-486f-a484-d2097340a938-image.png] Click on Plugins->Python Script-> Scripts -> open_containing_folder_in_cmd.py Did open cmd.exe in the right location Ah ok, from clicking the “new” script button The path is C:\Users\user\AppData\Roaming\Notepad++\plugins\config\PythonScript\scripts The folder was not created during installation apparently ! Now it does appear ! [image: 1768357171622-cd365908-f84e-46cf-8ff8-9ae887336bc6-image.png] And yes this works ! [image: 1768357246736-493bdea5-d298-4f7b-869c-b2918b47ebf8-image.png] Thanks ! @PeterJones Thanks for this suggestion I gave this a try as well [image: 1768357370965-ab026774-25a1-450d-8212-b4bc999595d7-image.png] Then I edited C:\Users\user\AppData\Roaming\Notepad++\plugins\config\CustomizeToolbar.btn I pasted your suggested command changed the file to a screenshot of the cmd.exe icon I took I also added you suggested extra space fix File,Open Containing Folder,cmd,,fRgHGCzWpi.png,fRgHGCzWpi.png,fRgHGCzWpi.png View,Show Symbol,Show All Characters,,Icons\allChars.bmp,Icons\allChars_off.ico,Icons\allChars_off_dark.ico This did not work yet I used webservice https://www.icoconverter.com/ To create a .ico file with these settings [image: 1768358066419-c7397a0a-1735-44fc-a70e-b4b6e891d909-image.png] and I downloaded the 3 files from the github issues https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/icons/standard/toolbar/allChars.bmp https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/icons/light/toolbar/regular/allChars_off.ico https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/icons/dark/toolbar/regular/allChars_off.ico And I placed them in folder C:\Users\user\AppData\Roaming\Notepad++\plugins\config\Icons Restarted notepad++ The icon appears and works but the icon is wrong [image: 1768358107727-f9a8a675-ab97-4ff9-931f-bb7bc7497520-image.png] I tried these settings [image: 1768358206633-a95b67a9-69de-4527-9a06-aa6cbbbac32f-image.png] Also does not work [image: 1768358253062-0c0e31a7-ed98-4597-a728-94df39b63ab7-image.png] also no [image: 1768358274231-d5274fe9-e9c7-422b-b35b-93844462b236-image.png] also no ??? Oh wait File,Open Containing Folder,cmd,,cmd.ico,cmd.ico,cmd.ico should have been File,Open Containing Folder,cmd,,Icons\cmd.ico,Icons\cmd.ico,Icons\cmd.ico Icon has disappeared ! [image: 1768358445494-54d68466-f8bd-4877-803e-82916cc556ec-image.png] ok, instead move the file to C:\Users\user\AppData\Roaming\Notepad++\plugins\config [image: 1768358478776-51f48583-924a-4e0b-be1d-9df87f8909a3-image.png] change it back to File,Open Containing Folder,cmd,,cmd.ico,cmd.ico,cmd.ico restart npp icon is back, but still question mark [image: 1768358822785-580fc2d1-b691-4081-916b-935a9805cdce-image.png] Maybe the file is not 16x16 256 colours ? [image: 1768358796670-b7aa94fa-7748-42b8-8e51-49e507acb631-image.png] Looks like it is as specified Maybe something is wrong with the file … [image: 1768358970466-e0b2e4e5-7210-4687-881d-69eebba78699-image-resized.png] I’m not good enough to mentally decode this, looks normal Hmm https://en.wikipedia.org/wiki/ICO_(file_format) 0x02 idType is 1 , which is ICO good 0x04 idCount is 1, just 1 image 0x06 ICONDIRENTRY struct bWidth is 10 , which is width 16 bHeight is 10, which is width 16 bColorCount 0. does not use a pallette wPlanes is 1, has color plane , whatever that is, 0 is black and white ? wBitCount, it is 8 bit per pixel dwBytesInRes, 1384 bytes ?? idk … onion.bmp,onion.ico,onion.ico ah wait you have BMP in there ?? [image: 1768360143367-2f4a2017-f18f-4b16-af27-0fa951d8d002-image.png] File,Open Containing Folder,cmd,,cmd.bmp,cmd.ico,cmd.ico restart [image: 1768360162379-72f5b447-bfe2-46c1-a8b4-fc22137f42ad-image.png] woohoo ! Wow, I was about ready to give up there ! Thanks both of you, I will go with the CustomizeToolbar plugin as it give me that distinctive icon !