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.
    • Lionel LagardeL
      Lionel Lagarde
      last edited by

      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
      .

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse @Lionel Lagarde
        last edited by

        @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
        • Lionel LagardeL
          Lionel Lagarde
          last edited by

          Thanks, it works.

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