Hearts Should Be Shown In Color
-
I know this is a trivial request… but DonHO… please tell me how to show the “hearts in color” like Notepad3 does… : ) I’ve pasted from my “hearts.txt” file below… which you can see are in color:
❤ 🧡 💛 💜 💚 💙 🖤 🤍 🤎
But, if you copy those into a txt file using Notepad++… it’s all “grey scale”… : (
-
@networkproblemsolver
From main menu:
Settings->Preferences->MISC.->Use DirectWrite
-
Hmmm, how to do it in the Find what box of the Find window?:
:-)
-
@Alan-Kilborn said in Hearts Should Be Shown In Color:
Hmmm, how to do it in the Find what box of the Find window?:
For backwards compatibility with decades of applications Microsoft chose to not support the extra attributes that are now available in Unicode such as changing the text direction, size, animations, line spacing, etc. Rather than potentially breaking existing applications Microsoft added a new API, DirectWrite(), that supports the current Unicode definitions. The bulk of Windows still uses the legacy API. You can see this by naming a file “Hearts ❤ 🧡 💛 💜 💚 💙 🖤 🤍 🤎.txt” It will show as a gray, monochrome, and sometimes transparent, filename throughout Windows.
The Windows API includes support for dialog boxes and those use the legacy API. Someone could write the code for a custom dialog box, such as to rename a file, that uses DirectWrite. You would need to include code to adapt the box on the fly based on the text data you are processing.
Something else to consider is that the DirectWrite system is slower than the legacy API. You won’t notice the slowness on a modern computer with GPU support but it can be annoying on an older machine.
Also, while we call it Notepad++, the editor is Scintilla. Notepad++ passes the DirectWrite configuration setting on to Scintilla. Notepad++ itself uses generic legacy Windows functions.
-
I was hinting that as the Find what box data is tightly related to data in the editing window of Notepad++, perhaps the Find what box should also be a Scintilla control.