Community
    • Login

    Hearts Should Be Shown In Color

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 4 Posters 376 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

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

      Mark OlsonM 1 Reply Last reply Reply Quote 0
      • Mark OlsonM
        Mark Olson @networkproblemsolver
        last edited by

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

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

        Alan KilbornA 1 Reply Last reply Reply Quote 2
        • Alan KilbornA
          Alan Kilborn @Mark Olson
          last edited by

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

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

          :-)

          mkupperM 1 Reply Last reply Reply Quote 0
          • mkupperM
            mkupper @Alan Kilborn
            last edited by mkupper

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

            Alan KilbornA 1 Reply Last reply Reply Quote 1
            • Alan KilbornA
              Alan Kilborn @mkupper
              last edited by

              @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
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors