• 0 Votes
    4 Posts
    188 Views
    PeterJonesP

    @Michkovy said in Customizing toolbar buttons and non default icons:

    A final question, what format settings do the fluent icons have? Mine are lacking transparency at the moment.

    Sounds like yours have 24bpp. You need 32bpp to have transparency.

    The Plugins > Customize Toolbar > Help - Custom Buttons actually tells that you need the 32bpp, though it doesn’t explain why. And it also just mentions the 32x32 size – but that means that it has to be downscaled to 16x16 when running with small toolbar icons, so I recommend having both.

    (Note on icon editors: VS2022’s icon editor will show the 32bpp image types in the ico file, but won’t let you create a new one with transparency. I generally use GIMP for icon editing, which has no such limitation; a dedicated icon editor like IcoFX will generally work, too. [I believe you have to find a copy of 1.4.6 or older to have a freeware version; the newer versions are commercial products and will stop being able to save after a 30day trial.])

    Actually, I didn’t answer your question as asked, I answered what I thought you really meant. But to answer the actual question, the fluent icons in the source code actually use 8bpp with one color index being dedicated to 100% transparent pixel. So if your icon editor will allow that, and 255 colors are sufficient for your icon (probably should be), then you could try that, instead (I believe VS can do transparent in 8bpp mode). If you want to use the same palette as Notepad++'s fluent icons, you could even grab one of the fluent icons from the source code and use that as the basis for your icon(s) – just replacing the image for each of the sizes.

    update: the user manual now explains that you need 24bpp or 8bpp to get the transparency.

  • 0 Votes
    3 Posts
    145 Views
    CoisesC

    @PeterJones said in Korean script letters do not group in Notepad and Notepad++ (Help Wanted):

    I tried pasting 하ᄂ구ᄀ into LibreOffice Writer, and it combines some of the pieces but not all:
    9b81f20d-99dd-4e01-82e8-986bc761c8d4-image.png – it also uses NSimSum font when I paste those characters. And though I pasted them in as the six characters next to each other, once they are in, Writer treats them as 3 characters

    I’ve been trying to figure out what is going on here. I know nothing about the Korean language, but I did come across the Hangul jamo while implementing the Unicode rules for determining grapheme cluster boundaries as part of my Unicode-based search.

    I don’t recommend trying to read that unless you have a lot of free time and brain power. The bottom line for this purpose is that Hangul syllables are written as separate characters, each of which can be composed of multiple Unicode code points. The most common sequence is LeadingConsonant+Vowel+TrailingConsonant, though there are extensions and complications.

    Like many other Unicode characters, Korean characters come in composed and decomposed forms. I think all the modern Korean characters have a single-code-point composed form. They’re usually typed in a decomposed form, though, and assembled into composed form by an Input Method Editor, though decomposed form is permitted in Unicode.

    The reason pasting that combination into LibreOffice Writer produces three characters rather than two — which, as you might notice, is also true in the web browser rendering — is because the original poster’s decomposition is wrong. The canonical decomposition of 한국 (\ud55c\uad6d) is ᄒ ᅡ ᆫ ᄀ ᅮ ᆨ (\u1112\u1161\u11ab\u1100\u116e\u11a8), not ᄒ ᅡ ᄂ ᄀ ᅮ ᄀ (\u1112\u1161\u1102\u1100\u116e\u1100). The latter version uses all leading forms for the consonants, but the third and sixth code points should be the trailing forms.

    However, the correct decomposition still doesn’t compose visually in any font I can find in Notepad++.

    I downloaded the current version of Scite and set the font to NSimSum by using Options | Open User Options File, typing:

    font.base=font:NSimSum,size:12

    there, and saving. I opened an empty tab and chose File | Encoding | UTF-8. Then I pasted:

    한국 á ç

    (You can’t see it here, but that is the canonical decomposition of all those characters.) Just as in Notepad++, the Latin letters with diacritics display as composed, but the Korean syllables do not.

    Therefore, I think this is a Scintilla limitation. Why it doesn’t compose visually, when LibreOffice Writer and web browsers do, I have not yet been able to determine.

    All this might not be as related to the problem @SalviaSage described as it appears to be. Notice that the original post says:

    For example, I want to get (한국).

    Those two characters are composed. They don’t consist of individual jamo. You can determine that by pasting them into Notepad++. You can also determine that neither the forum nor the web browser is performing the conversion to composed form by pasting this: 한국 into Notepad++. It looks the same here, but it’s six separate characters in Notepad++.

    So I think the original poster’s problem has more to do with using, or not using, or misusing, an Input Method Editor. Unfortunately, I don’t know anything about those. Notepad++ will display the composed Korean characters just fine; for some reason, the individual jamo are going directly from the keyboard to Scintilla without composition. I’m thinking perhaps an inline IME is a default for a web browser, but not for Notepad++? I have to leave pursuit of that possibility to someone else.

  • 4 Votes
    68 Posts
    24k Views
    PeterJonesP

    Notepad++ v8.8.6 Plugins Admin links to CollectionInterface v1.2.0

    comes with Dark Mode support and bulk-mode download (actually from v1.1, which I mentioned over here) v1.2.0 has better handling of -settingsDir and Cloud Directory. (It was implementing the -settingsDir handling which lead to the new v8.8.6 plugin message NPPM_GETNPPSETTINGSDIRPATH , which my plugin uses when Notepad++ version is new enough (though it does have a workaround that works even if you manually install it on an older N++).)

    CollectionInterface v1.3.0 is now available for manual installation:

    When downloading functionList defitions(s) (either on the FunctionList tab, or in bulk along with the UDL), the plugin will ask if you want to update the overrideMap.xml, which allows the functionList to be fully installed through the automatic process, so that functionList will immediately start working, without requiring you to manually update overrideMap.xml to link to the definition. I wasn’t fast enough with this feature to get it in the v8.8.6 Plugins Admin, so it’s manual installation only, for now.
  • 3 Votes
    2 Posts
    146 Views
    guy038G

    Hello, @coises and All,

    I’ve just tried your last ColumnsPlusPlus v1.3 release and indeed, the search is now considered as a true Unicode search, whatever the individual encoding of each file !

    Let’s consider this simple UTF-8 text :

    This ‟ is a † very • small ‰ text ‱ for › test 201F 2020 2022 2030 2031 203A in Unicode UTF-8 enoding

    And this ANSI text :

    This ? is a † very • small ‰ text ? for › test ? 0086 0095 0089 ? 009B in Windows-1252 encoding

    IMPORTANT Don’t forget, when this second text is opened in N++, to run the Encoding > Convert to ANSI option, first !

    Now, we can create the following table, which recapitulates the Non-ASCII characters used in my examples :

    •--------•-----------------•-----------------• | | Windows-1252 | Unicode | | •--------•--------•--------•--------• | Char | Dec | Hex | Dec | Hex | •--------•--------•--------•--------•--------• | ‟ | ? | ? | 8223 | 201F | | | | | | | | † | 0134 | 0086 | 8224 | 2020 | | | | | | | | • | 0149 | 0095 | 8226 | 2022 | | | | | | | | ‰ | 0137 | 0089 | 8240 | 2030 | | | | | | | | ‱ | ? | ? | 8241 | 2031 | | | | | | | | › | 0155 | 009B | 8250 | 203A | •--------•--------•--------•--------•--------•

    In Notepad++ :

    Within an ANSI file, the regexes [†-‰] or [\x86-\x89] would only find the characters and but not the whose Win-1252 code ( \x95 ) is after \x89

    Within an UTF8 file, the regexes [†-‰] or [\x{2020}-\x{2030}] would find the characters and and also the whose Unicode code-point is between 2020 and 2030

    In Columns++ :

    Within an ANSI file, the regexes [†-‰] or [\x{2020}-\x{2030}] would find the characters and and also the whose Unicode code-point is between 2020 and 2030

    Within an UTF8 file, the regexes [†-‰] or [\x{2020}-\x{2030}] would find the characters and and also the whose Unicode code-point is between 2020 and 2030

    Note that using the range [†-›] within an ANSI file, a N++ search of the char would have been successful as its code-point ( 2022 ) lies within the 2020 and 203A range !

    Now, @coises, I cannot test easily the CJK behaviour of your new search engine as it’s obvious that I do not a default CJK code-page, needed for such a study ! However, I do not see why your new search behavior couln’t be applied to any kind of Unicode chars ;-)

    Best Regards,

    guy038

  • 0 Votes
    12 Posts
    15k Views
    Diego RaguindinD

    Actually, I initially took Kedar’s XML, which I assume is based on Chris K’s

  • 0 Votes
    6 Posts
    2k Views
    T

    @rdipardo I just ran into this when I tried pasting a webpage of emoticon codes into a new installation of Notepad++ and was very surprised and pleased to see them rendered in color! In my daily NotePad++ they always look like line drawings. I tried playing with preferences but didn’t figure it out, so I Googled it and found the AI summary told me how to enable direct write to achieve this. Apparently when I installed my NotePad++ GDI was the default, but now it’s DirectWrite that is the default! Hooray! 😀

  • 1 Votes
    5 Posts
    139 Views
    PeterJonesP

    @mpheath said in Tall tops/bottoms of Devanāgarī letters are clipped in monospace fonts:

    The line height can be altered by increasing the extra ascent or descent with using the LuaScript plugin.

    Or using PythonScript plugin: add to startup.py:

    editor.setExtraAscent(8) editor.setExtraDescent(6)

    And make sure Plugins > Python Script > Configuration has Initialisation set to ATSTARTUP.

    Or ExtSettings plugin, using the Upper Line Spacing and Lower Line Spacing fields.

  • Window sort back to original tab order (default) ...

    General Discussion
    5
    0 Votes
    5 Posts
    154 Views
    Alan KilbornA

    @James-Wisecup-0 said:

    Maybe it’ll be a feature in the near future .

    Likely not.

  • 0 Votes
    14 Posts
    17k Views
    T

    @Stefan said in Text anti-aliased since 6.7.9(.2?):

    I just tested with 6.8. Enabling / Disabling windows clear type will change how the N++ menu is displayed but not where i read and edit the document. The “Enable smooth font” switch does nothing on my machine. “SCI_SENDMSG 2611 1” in NPPExec does help but is not persistent. This is really frustrating… Am i doing something wrong ?

    Thank you!

    Still an issue 10+ years later… Luckily NPPExec supports running scripts on startup:
    https://i.imgur.com/DC94mqV.png

  • Notepad++ DLL Hijacking Vulnerability (CVE-2025-56383)

    Security
    5
    0 Votes
    5 Posts
    566 Views
    Lycan ThropeL

    @xomx ,
    You’re right, and as I understand, the idiots submitting AI bug reports has the author a cURL very upset with people wasting their time with these issues. AI is not intelligent, nor is the idiot submitting reports of bugs “found” by it. :-)

  • 0 Votes
    2 Posts
    55 Views
    PeterJonesP

    @Greg-Wille ,

    There’s a workaround: if you use Window > Sort By > Content Length Ascending/Descending, it will sort the tabs by content length, which also sorts the Document List.

    Because that sort feature exists through a different menu, it’s not likely that the developer would add it to the Document List panel as well (and it’s guaranteed that it won’t happen if you only have a post here, because as our FAQ explains, this is not the place for feature requests).

  • All the off-topic go here

    Pinned Praise Notepad++
    4
    1 Votes
    4 Posts
    7k Views
    Aubin HeroutA

    salut les petits gwerrrr

  • Notepad++ v8.8.5 Release

    Announcements
    15
    2 Votes
    15 Posts
    16k Views
    Сергей 0С

    Hello. In version 8.7 and earlier (including version 8.8.5), the cursor appears out of place. Please fix this.
    https://iimg.su/i/xy7x0S

  • 3 Votes
    3 Posts
    2k Views
    donhoD

    @Bas-de-Reuver Not yet. I’m working on it.

  • 0 Votes
    3 Posts
    409 Views
    Lycan ThropeL

    @PeterJones,
    First time posters, dropping links, is never a good combination, legit or not. It’s presumptive and intrusive, since the only purpose seems to be to dump and run.

  • 0 Votes
    31 Posts
    4k Views
    James Burke 0J

    @PeterJones Good idea. Regardless, NPP is much nicer to use after your “how-to-fix-it” script, and I’m thankful that you could provide a way to fix it.

  • Session Fails ? ? ?

    Help wanted · · · – – – · · ·
    12
    0 Votes
    12 Posts
    627 Views
    PeterJonesP

    @Kendall-DeMott said in Session Fails ? ? ?:

    @Terry-R
    Terry TY for your help and suggestions.

    I don’t know anything about Notepad++'s own backup system,

    Then read the FAQ, as @Terry-R suggested. Understanding is always better than not understanding.

    PS, when I looked in Notepad++'s backup folder, all there is is just file that load a single tab from mods that I edited, but none of the file were the (5) that I use all the time,

    That “backup” folder is where Notepad++ keeps the unsaved changes for any files that have unsaved changes. As soon as you save a file, it will delete the backup, because the periodic backup copies are only intended for tracking unsaved changes; once you save a file, it has no unsaved changes, so there is nothing to track. Similarly, if you close a new 1-style never-saved tab, Notepad++ will prompt you to make sure you aren’t about to lose all your changes with never saving it; but it trusts you: once you tell it you don’t want the file, it will accept your decision, and close that file and remove the periodic backup because the periodic backup is only for files that are actively open in Notepad++.

    funny how it backed up all these single files, but not one of them is one of the five tabs that I would open on almost a daily basis.

    It backs up exactly the ones that are currently being edited in Notepad++, no more and no less.

    I was keeping (backing up) the session file from Notepad++ install Dir, this has never failed in the past.

    That very much surprises me, since in a normal installation where your settings files (and backup directory) are in AppData (which yours is, as shown by your Debug Info), then the active session.xml file is the one in AppData, not the one in c:\program files\Notepad++\session.xml

    This is the session file, you can clearly see the (5) lines are there, they just not longer load from this file when the default session file from Notepad++'s install Dir is overwritten by my BU file copied from the install Dir:

    You seem to be saying different things about the session.xml file. When you try to “restore” you session file from the backup, where do you copy it from? Where do you paste the file to? What order do you do things? Because some of your phrasing implies you are backing up your session file into the installation directory, and other of your phrasing implies you are using the one in the installation directory as the backup. And I’m confused what you’re actually doing.

    Assuming you have some directory that I will call c:\backup\ which contains c:\backup\session.xml that looks like what you pasted in your reply, then the steps to get back that session would be:

    Exit all copies of Notepad++ Copy c:\backup\session.xml to %AppData%\Notepad++\session.xml Open Notepad++ Assuming those files still exist on the I: drive and the drive is accessible, those files will open at this time

    However, any usaved changes that didn’t get saved to the files before will obviously not be there, because whatever went wrong earlier that caused your session to get messed up caused Notepad++ to think it was safe to delete the snapshot from the backup\ folder, so your unsaved changes for those files no longer exist. Going forward, you need to keep in mind that Notepad++'s backup folder is really misnamed and should be called a “snapshot” folder – it’s where a “snapshot” of the unsaved changes are stored, but it’s highly temporary, and should never be relied up for long term backup.

    My recommendation, and the recommendation of most of the regulars here, is that you take an active role in backing up your data, and don’t rely on backup settings that you don’t understand. This is the advice I have incorporated in to the FAQ.

    If a file or data is critical: 1) save to a known location, often; 2) have an established backup system that is independent of Notepad++; 3) when appropriate, use revision control software like svn or git, so you can better track changes over time. Doing anything less than that says that you don’t actually think the data is critical.

  • 1 Votes
    6 Posts
    430 Views
    Mark OlsonM

    JsonTools maintainer here.

    The sort_keys setting in JsonTools should be set to True when pretty-printing JSON for comparison.

    This is because the order of keys in a JSON object doesn’t matter: {"foo": 1, "bar": 2} and {"bar": 2, "foo": 1} are the same, but a general-purpose diff tool like ComparePlus doesn’t know that.

  • 1 Votes
    3 Posts
    238 Views
    Erik OlsonE

    @Coises Thank you for the information. It is not happening on 8.6.6 on my machine either. I will stick with this version for the time being.

  • 1 Votes
    2 Posts
    2k Views
    Vitalii DovganV

    There is one more thing that requires an explicit mentioning in the documentation:

    When exactly NPPN_CMDLINEPLUGINMSG is sent to plugins? In particular, is it sent before or after NPPN_READY? (Currently it is sent before NPPN_READY. But will it be so in the future?)