• Login
Community
  • Login

Markdown in dark mode looks wrong

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 3 Posters 3.2k 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.
  • M
    Mivaro482
    last edited by Jun 18, 2021, 1:43 PM

    Hi,

    I’m running the latest version of Notepad++ (8,1 64-bit). When I open a markdown file in dark mode, words are highlight in a soft of off-white color. In ‘white mode’ it looks fine, but dark mode is almost unreadable due to this setting. Other filetypes look find, so I think it is something wrong with preinstalled Markdown ‘style highlighter’.

    I’m wondering if this is a bug or that I did something wrong in my settings. I don’t know where to edit the preinstalled markdown style. The problem occurs with other dark themes as well.

    Can somebody confirm whether this is an individual issue or a generic issue with the markdown style?

    Thanks,

    Mivaro

    D 1 Reply Last reply Jun 18, 2021, 2:39 PM Reply Quote 0
    • D
      dinkumoil @Mivaro482
      last edited by Jun 18, 2021, 2:39 PM

      @Mivaro482

      The Markdown lexer is implemented as user defined language (UDL). All UDLs are not synchronized with the selected theme of the editor area. You have to create your own Markdown UDL to adapt it to the color scheme of your favorite theme.

      To do so go to (menu) Language -> User Defined Language -> Define your language. In the dialog that pops up go to combobox User langugae and select Markdown from its drop-down list. Now you can cycle through the 4 tabs Folder & Default to Operators & Delimiter. At each of these tabs you will find buttons with the caption Styler. Click on them to open another dialog where you can set foreground and background colors for the related syntax elements.

      1 Reply Last reply Reply Quote 4
      • M
        Mivaro482
        last edited by Jun 19, 2021, 12:15 PM

        Thanks, that helped me to create a readable version of the markdown UDL in dark-mode.

        1 Reply Last reply Reply Quote 0
        • M
          mere-human
          last edited by Jun 19, 2021, 6:23 PM

          Don’t confuse dark mode with “dark” theme.
          Dark mode is only about the UI elements (everything except the document area).
          Dark theme is about the document area.

          This is a known problem, it is related to the dark theme.
          There are numerous issues about this:
          https://github.com/notepad-plus-plus/notepad-plus-plus/issues/6140
          https://github.com/notepad-plus-plus/notepad-plus-plus/issues/9649

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