• Login
Community
  • Login

Hearts Should Be Shown In Color

Scheduled Pinned Locked Moved General Discussion
5 Posts 4 Posters 455 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    networkproblemsolver
    last edited by Oct 4, 2023, 2:38 PM

    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”… : (

    M 1 Reply Last reply Oct 4, 2023, 3:01 PM Reply Quote 0
    • M
      Mark Olson @networkproblemsolver
      last edited by Oct 4, 2023, 3:01 PM

      @networkproblemsolver
      From main menu:
      Settings->Preferences->MISC.->Use DirectWrite

      dabfd935-1380-4922-af9e-298edf6cb413-image.png

      A 1 Reply Last reply Oct 4, 2023, 4:00 PM Reply Quote 2
      • A
        Alan Kilborn @Mark Olson
        last edited by Oct 4, 2023, 4:00 PM

        Hmmm, how to do it in the Find what box of the Find window?:

        92f1a29a-0319-4c30-a743-36cc46bf9b7d-image.png

        :-)

        M 1 Reply Last reply Oct 4, 2023, 5:33 PM Reply Quote 0
        • M
          mkupper @Alan Kilborn
          last edited by mkupper Oct 4, 2023, 5:34 PM Oct 4, 2023, 5:33 PM

          @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.

          A 1 Reply Last reply Oct 4, 2023, 5:36 PM Reply Quote 1
          • A
            Alan Kilborn @mkupper
            last edited by Oct 4, 2023, 5:36 PM

            @mkupper

            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.

            1 Reply Last reply Reply Quote 1
            5 out of 5
            • First post
              5/5
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors