Community
    • Login

    Changing foreground color of strings

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 176 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.
    • Karl PerryK
      Karl Perry
      last edited by

      Long-time NP++ user, first time poster.

      In both .HTML and .PY files, and presumably others, strings are displayed in a light grey color that is very hard to read on some displays. I’d like to change to a different color, but I cannot find the correct setting in Settings / Style Configurator. I’ve read the help, and looked everywhere that seems sensible to me, but there is no String type I can find.

      I uninstalled NP++ and re-installed it with no change in behavior.

      Here are two screengrabs that illustrate.
      First, a .HTML file:
      dc08253a-9740-47c6-8561-28ca53f972b1-image.png

      Second, a .PY file:
      2552288c-3c63-4c75-bddb-426e629d935e-image.png

      Here is debug info from ? / Debug …
      Notepad++ v8.6.9 (64-bit)
      Build time : Jul 12 2024 - 05:09:25
      Path : C:\Program Files\Notepad++\notepad++.exe
      Command Line :
      Admin mode : OFF
      Local Conf mode : OFF
      Cloud Config : OFF
      Periodic Backup : ON
      OS Name : Windows 11 Pro (64-bit)
      OS Version : 23H2
      OS Build : 22631.4037
      Current ANSI codepage : 1252
      Plugins :
      mimeTools (3.1)
      NppConverter (4.6)
      NppExport (0.4)

      Thanks in advance.

      PeterJonesP 1 Reply Last reply Reply Quote 1
      • PeterJonesP
        PeterJones @Karl Perry
        last edited by

        @Karl-Perry said in Changing foreground color of strings:

        I’ve read the help, and looked everywhere that seems sensible to me, but there is no String type I can find.

        Style Configurator > HTML > DOUBLE STRING or SINGLE STRING for "double" or 'single'

        0f31db1e-af39-4390-b61a-5d9d9b943be7-image.png

        But what you show is actually a javascript string, not an HTML string. That is in the Style Configurator > Javascript (embedded), with "DOUBLE STRING" or 'SINGLE STRING' as the styles you want to change.

        Style Configurator > Python

        • "STRING"
        • 'CHARACTER'
        • '''TRIPLE'''
        • """TRIPLE DOUBLE"""
        • and the F-variants lower down for python3 f-strings

        5bcdcab8-d7db-4842-9982-3111e24ddbaf-image.png

        Karl PerryK 1 Reply Last reply Reply Quote 3
        • Karl PerryK
          Karl Perry @PeterJones
          last edited by

          @PeterJones Thank you! I’m not a web developer, I’m a software product manager so didn’t know about the embedded JavaScript.

          All fixed now.

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