Community
    • Login

    How to style an element in a pre-made UDL? (dark mode problem)

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 394 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.
    • Geoff BaysingerG
      Geoff Baysinger
      last edited by Geoff Baysinger

      I’m trying to use a community defined AutoHotkey language definition along with Dark Mode.

      My eyes reaaaally prefer a black background, so I’ve defined a global black background (instead of the dark grey).

      One element in this custom language definition, worse it is strings, is black foreground. Which on black background is … bad :)

      Screenshot included (shows the default grey, not black, background for now as I overwrote that temporarily)

      I’ve looked through the language XML to try and find how to style it but didn’t see anything there, which makes some sense.

      I don’t see the custom language as an option in the Settings > Style Configurator … so I can’t see how to change how this element is styled.

      Any help? Screenshot showing black text for the MsgBox string is what I would like to change the style of … and not on an individual basis … I need to change the style for all strings.

      Screenshot 2021-11-18 155525.png

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Geoff Baysinger
        last edited by PeterJones

        @geoff-baysinger

        I don’t see the custom language as an option in the Settings > Style Configurator … so I can’t see how to change how this element is styled.

        All of the attributes of User Defined Languages, including styling, are controlled from the Language > User Defined Language > Define Your Language dialog box, whether you started the UDL from scratch or you used a pre-made one: go to that dialog, select the “AutoHotkey” language from the pulldown, and edit any of the Styler settings that you want.

        If you want to edit any of the colors so that they inherit the default color for your selected theme, use the right-click in the color box, which will put diagonal lines through the color box to indicate it’s inherited:
        7e174752-59d3-44f0-8e29-e597e419c17a-image.png

        ** References **

        • https://npp-user-manual.org/docs/user-defined-language-system/
        Geoff BaysingerG 1 Reply Last reply Reply Quote 1
        • Geoff BaysingerG
          Geoff Baysinger @PeterJones
          last edited by

          @peterjones Thank you. Got it from there, and the inherit mode on the default style worked like a charm.

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