• Notepad++ release 8.9.7

    Pinned Announcements
    1
    0 Votes
    1 Posts
    21 Views
    No one has replied
  • Search++: A work in progress

    Notepad++ & Plugin Development
    109
    5 Votes
    109 Posts
    30k Views
    CoisesC
    @guy038 said: But you found out the culprit : it’s just because the GDI ( most compatible) option was selected !. Luckily, for any other option of the rendering mode, after closing an re-starting N++, this special character does not display, anymore ! Thanks for documenting that! It should appear correctly in GDI mode too, of course. I suspect the problem will turn out to be that GDI mode doesn’t support alpha transparency, so my setting the opacity to zero is doing nothing. I’ll have to find another way.
  • 1 Votes
    7 Posts
    739 Views
    CoisesC
    @Alan-Kilborn said: But it isn’t exactly obvious what its function is, based only upon the UI text. @MarkusBodensee said: Yes, exactly what I thought while taking the screenshots The option is on the “New Document” panel, no doubt, because it is only available when the default encoding for new documents is set to UTF-8. Yet it doesn’t apply to new documents, it applies to existing files. What is really means is, when Notepad++ opens an existing file that contains only ASCII characters, it should treat it as UTF-8 rather than as ANSI. Which, for me, raises the question: Why is this only available when UTF-8 is the default encoding for new files? Background in case anyone reading this doesn’t know: ASCII comprises 128 codes, from 0-127. All the characters on a standard US keyboard are ASCII, but most languages other than English use characters that ASCII lacks. UTF-8 is a standard method for encoding Unicode, a set of over one hundred thousand characters that includes very nearly every character needed for every known language. ANSI refers to any of several dozen legacy “code pages” that were used in Windows to support different languages before Unicode was developed. These encodings are still in common use. In Notepad++, ANSI always refers to the “system default code page,” the one the Windows system on which Notepad++ is running recognizes as the “normal” encoding for files on that system. The specific code page that is default varies by country. The first 128 codes in all ANSI code pages and in UTF-8 are the same as the 128 ASCII characters. Because of all this, when opening a file that contains only ASCII characters, there is no way to distinguish whether it is ANSI or UTF-8 (or some code page other than the system default code page). The results are identical. When Notepad++ loads a file into an editing area, it has to determine which encoding to use. For a pure ASCII file, it will only matter if and when you edit the file by adding characters that are not in the ASCII range. Once you do that, the results will differ depending on which encoding was chosen. This setting lets you tell Notepad++ whether it should load pure ASCII files so that, if you add non-ASCII characters to them, they will wind up as ANSI, or so that they will wind up as UTF-8.
  • 0 Votes
    11 Posts
    3k Views
    PeterJonesP
    because it appears those actually return from the enum UniMode, which is enum UniMode {uni8Bit=0, uniUTF8=1, uni16BE=2, uni16LE=3, uniCookie=4, uni7Bit=5, uni16BE_NoBOM=6, uni16LE_NoBOM=7, uniEnd}; according to the source code. In N++ commit 8149f72 in v8.8.8 (Nov 2025), uniCookie has been renamed as uniUTF8_NoBOM inside the N++ source. Thus, I just put in PythonScript Issue #421 to request that there’s a BUFFERENCODING.UTF8_NOBOM, either as replacement or alias of the old meaninglessly-named BUFFERENCODING.COOKIE … I don’t know if it will happen, but at least the request is in. :-)
  • 0 Votes
    8 Posts
    1k Views
    sevem47S
    @ThosRTanner said: This doesn’t seem terribly useful for an installation package though. This is exactly my use case: I download the zip archive end selectively extract only changed files. Some of the files in my installation I explicitly do NOT want to get overwritten. In the end it is really just a matter of taste. And I really appreciate the possibility to choose my desired format. From this I support the current situation, that both format are presented for download.
  • 0 Votes
    13 Posts
    2k Views
    dr ramaanandD
    @guy038 Merci beaucoup!
  • Notepad++ v8.9.7 Release Candidate

    Announcements
    5
    5 Votes
    5 Posts
    2k Views
    donhoD
    FYI: Notepad++ v8.9.7 RC2 is available now: https://github.com/donho/notepad-plus-plus/releases/tag/RC2
  • 4 Votes
    9 Posts
    6k Views
    dr ramaanandD
    Another example can be seen at https://community.notepad-plus-plus.org/topic/27601/with-the-help-of-a-regex-how-to-find-code-preceded-by-a-only-if-code-is-absent-between-style-and-style-in-the-css-section-which-is-below/4
  • 0 Votes
    7 Posts
    1k Views
    PeterJonesP
    @rafaello , IANAL, and I don’t own the trademark, but with your clarifications and updates, I believe you’re probably not violating the trademark (IMO). It’s good to see someone who is willing to accept such feedback (rather than digging in your heels for a while, like happened with the aforementioned fork).
  • 0 Votes
    3 Posts
    1k Views
    R
    @PeterJones Perfect thank you very much!
  • 0 Votes
    15 Posts
    4k Views
    mpheathM
    The Python script I posted is expected to handle single byte errors from UTF8 decoding. Asian languages can be 2 byte for ANSI and so the script may need to get the following byte too to decode both bytes properly. Probably will not find recovery tools and the like that will fix mixed encoding errors as the solution in some cases might be worse then the problem though in this case tested OK. Once saved, then there might be no going back and so creating a backup before the operation would be wise. Inspect the results to confirm is OK.
  • 1 Votes
    3 Posts
    1k Views
    R
    @rdipardo thank you for pointing that out. I will check and do the needful.
  • 0 Votes
    4 Posts
    2k Views
    PeterJonesP
    @Sylvester-Bullitt , Release Candidate is available. You probably want to test this version, and report any continued problems with the Open File feature ASAP.
  • Modern text file icon

    Notepad++ & Plugin Development
    1
    1
    0 Votes
    1 Posts
    565 Views
    No one has replied
  • 1 Votes
    11 Posts
    3k Views
    P
    @PeterJones Worked perfectly, thank you.
  • 0 Votes
    2 Posts
    1k Views
    PeterJonesP
    @Mario-Lemelin , everything work fine except for the equations in latex Not all Markdown processors understand LaTeX. (For example, the Markdown processor for this forum does not.) It appears that MarkdownViewer++ does not have that feature (which doesn’t surprise me). I visited this site (https://github.com/npp-plugins/plugintemplate) but was unablew to find help. That site is just the repository for the C++ template for creating a plugin. It’s not going to have information on how to use any specific plugin. The home for MarkdownViewer++ is https://github.com/nea/MarkdownViewerPlusPlus , so that’s where you’d have to go. But the author has recently set the repo to “read only”, indicating that they are unwilling to support that plugin any more. However, there are other Markdown plugins available from Plugins Admin. I’ve never used them, but two I see include NppMarkdownPanel @ https://github.com/mohzy83/NppMarkdownPanel AnotherMarkdown @ https://github.com/ezyuzin/NppAnotherMarkdown this appears to be a fork of NppMarkdownPanel with a different feature set. when I look at its README, it mentions the ability to use katex for math (I think it’s an option that you’d have to enable by editing a config file for the plugin; you’d want to experiment and read the documentation for that plugin to be sure) – and a quick look at the katex description implies to me that it’s essentially LaTeX compatible syntax. You can install either of those from the Plugins Admin interface. It may be that one of those will do what you need (my bet would be on the second as your best chance).
  • 0 Votes
    2 Posts
    914 Views
    PeterJonesP
    @blueicehaller , Plugin commands, like Plugins > MIME Tools > URL Encode cannot be recorded in a macro. However, we have a sub-FAQ: “Using Plugin, Run-menu and Macro Commands in Macros” which explains how you can manually edit a recorded macro to include such a command (noting that caveat that if you add or remove plugins, you might have to update your macro to refer to the new menuCmdID for the plugin command).
  • Translate plugin

    Notepad++ & Plugin Development
    22
    0 Votes
    22 Posts
    44k Views
    J
    Thank you again for your help.
  • 0 Votes
    3 Posts
    1k Views
    Lycan ThropeL
    @Howard-Brown @peterjones has given you the necessary information to get back the default DarkMode settings, so you should learn from this issue and do what I did, and make your own DarkMode settings by copying that file, and giving it a different name. I called mine MyDarkModeDefault to avoid the confusion, and played with it to my hearts content. Doing this trick, even with your new default version, you can make another copy and continue to fine tune what you need to, without damaging the default, or your own new default versions. Call it MyExperimentalDarkMode, and have fun without worrying. As @peterjones and many of us around here always say, “back up what you don’t want to lose or recreate” - though that is paraphrasing. :-)
  • 0 Votes
    3 Posts
    1k Views
    Jon FlemingJ
    Thanks, your script works perfectly.