• Login
Community
  • Login

Syntax highlighting and dark mode

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 2.3k 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.
  • L
    Lionel Lagarde
    last edited by Mar 18, 2022, 7:58 AM

    Hi,

    In the python language, using the default dark mode, some keywords like True, False and None are not highlighted. When dark mode is off, the keywords are highlighted.

    The not highlighted keywords are referenced in the langs.model.xml in a <Keywords name=“instre2”> section.
    The R language has the same behavior. When dark mode is on, “instre1” keywords are highlighted and “instre2” are not. When dark mode is off, everything is fine.

    I have just reinstalled from scratch Notepad++, so I don’t think the issue come from my installation
    .

    E 1 Reply Last reply Mar 18, 2022, 9:14 AM Reply Quote 0
    • E
      Ekopalypse @Lionel Lagarde
      last edited by Mar 18, 2022, 9:14 AM

      @lionel-lagarde

      It seems that the keyword class instre2 is missing and also you have to set a colour for builtins.

      60e6ea0d-f19a-4bce-9c72-b84385d610de-image.png

      If you made the changes like I did, it should work after restarting Npp.

      1 Reply Last reply Reply Quote 2
      • L
        Lionel Lagarde
        last edited by Mar 18, 2022, 10:28 AM

        Thanks, it works.

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