• FORUM: Posting Queue

    Pinned
    10
    12 Votes
    10 Posts
    8k Views
    Ivy_PearsonI

    Thanks for the update, Peter. Totally understand the need for a posting queue—spam is getting tricky these days. Hopefully, it won’t take long to get posts approved once you earn reputation!

  • Please Read This Before Posting

    Pinned Locked
    1
    4 Votes
    1 Posts
    9k Views
    No one has replied
  • The official repository, download.notepad-plus-plus.org, is down!

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

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

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

    2
    0 Votes
    2 Posts
    73 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.

  • Admin mode changes

    3
    0 Votes
    3 Posts
    417 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.

  • Modleine Parser No Longer Works

    2
    0 Votes
    2 Posts
    66 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
    0 Votes
    3 Posts
    126 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
    0 Votes
    1 Posts
    101 Views
    No one has replied
  • 0 Votes
    2 Posts
    97 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:
    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
    0 Votes
    3 Posts
    110 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.

    green-white.jpg

  • How to show 2 document list windows in vertical?

    3
    0 Votes
    3 Posts
    134 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
    4k 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
    98 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
    94 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
    0 Votes
    3 Posts
    196 Views
    Nazar HotsaN

    Thank you! Problem solved.

  • Name on donation button is not "Don Ho" -- is this okay?

    2
    1 Votes
    2 Posts
    285 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):

    2a1a9747-0e42-4d15-80d0-eb4737ffabd4-image.png

    seems legit to me, but i can’t know for sure. :)

  • 0 Votes
    8 Posts
    396 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
    143 Views
    No one has replied
  • Pascal multi line string highlight

    4
    0 Votes
    4 Posts
    788 Views
    EkopalypseE

    @ViniwDOrazio

    Yes, when working with multi-line matches enclosed by the same pre- and suffix, you should try to match something unique before the prefix.
    If the number of lines is fixed, you could also adjust the offset configuration parameter accordingly.