• Login
Community
  • Login

Request for normal language style.

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
5 Posts 4 Posters 1.4k 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.
  • G
    Gubith
    last edited by Gubith Mar 21, 2021, 7:45 PM Mar 21, 2021, 7:44 PM

    It seems the only way to configure txt files is to set the global-default style?

    If I set the default font just for txt files, then I have to use override for other languages?

    fb0187f9-b8d4-4f59-a033-22c2a6249006-image.png

    P 1 Reply Last reply Mar 21, 2021, 10:03 PM Reply Quote 0
    • P
      PeterJones @Gubith
      last edited by Mar 21, 2021, 10:03 PM

      @Gubith ,

      txt files are the normal lanugage style, which are set up in the Default Style section. It does not technically override other languages; the Global override section is the only section that overrides what’s in another language.

      That said, if a given language has its font-name set to blank, it will inherit its font name (but not color) from the Global Style > Default Style.

      So if you want to change normal text to use one font (say a cursive font), but want C to use some other font (maybe the CodenewRoman NF you have listed), then you have to change the C from blank to the font that you want for C, and then change the Default Style to pick your normal-text font.

      It was intentially designed that way, because most people have a favorite monospace coding font, which they want as the default across most or all languages, and they only want to program the few exceptions.

      G 1 Reply Last reply Mar 23, 2021, 7:38 PM Reply Quote 3
      • G
        Gubith @PeterJones
        last edited by Mar 23, 2021, 7:38 PM

        @PeterJones No.

        Changing ‘default’ should change XML, if not specified in XML settings.
        Changing ‘normal’ should NOT change XML!

        If it is default, why is it called normal?

        “Default is normal”? “Normal is default”? This is abnormal.

        This issue seems an obvious no-brainer. My request for change stands.

        E A 2 Replies Last reply Mar 23, 2021, 8:22 PM Reply Quote 0
        • E
          Ekopalypse @Gubith
          last edited by Ekopalypse Mar 23, 2021, 8:23 PM Mar 23, 2021, 8:22 PM

          @Gubith

          Since a text file does not have a lexer associated with it, it MUST use the default style.
          If you want to have text file styling that differs from the default, you have to create a lexer (UDL) for them.

          1 Reply Last reply Reply Quote 1
          • A
            Alan Kilborn @Gubith
            last edited by Alan Kilborn Mar 23, 2021, 8:24 PM Mar 23, 2021, 8:23 PM

            @Gubith said in Request for normal language style.:

            This issue seems an obvious no-brainer. My request for change stands.

            Yes, but where is the no-brain?
            How this works, as described by @PeterJones makes perfect sense to me, with perhaps a slight quibble about “normal” and “default”…but I’m not going to let that minor aspect bother me.

            You are free to request change, but if you are doing it here, you are doing it in the wrong place because no one with the ability to effect any sort of change will see it here. You need to consult the FAQ section of this site and follow advice there for making a change request.

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