Community
    • Login

    How to set "Font Name" for specific language?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 508 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.
    • Сергей ДрузьС
      Сергей Друзь
      last edited by

      Hello dear friends!

      I have lexer called AutoHotkey Black.xml I’ve set up keyword fonts for him.

      …Language > User Defined Language > Define your language… > Comment & Number > Comment line style > Font Options:
      Name: Consolas
      Size: 7
      Foreground color: #71AE71

      …and also examples:

      … > > > Keywords Lists > 2nd group:
      Name: Trebuchet MS
      Size: 10
      Foreground color: #0060FF

      … > > > Keywords Lists > 4nd group:
      Name: Fira Code
      Size: 8
      Foreground color: #808000

      However, there may be other different text in the file and it looks lousy because there is no font installed for them!
      That’s how it’s gonna work out:

      menu > Settings > Style Configurator… > Font Style > Trebuchet MS

      But the font is set for all languages globally! In this window I don’t have language as AutoHotkey:
      AutoHotkey

      !! I want the font to apply to the whole code except for keywords. Any ideas on how to solve the problem?

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

        @Сергей-Друзь said in How to set "Font Name" for specific language?:

        I want the font to apply to the whole code except for keywords. Any ideas on how to solve the problem?

        If I understand correctly, then don’t mess with global styles.
        Define your DEFAULT style of the UDL LANGUAGE

        d0e361ff-289e-4697-8ac1-1b207d34827d-image.png

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