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.
    • GubithG
      Gubith
      last edited by Gubith

      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

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

        @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.

        GubithG 1 Reply Last reply Reply Quote 3
        • GubithG
          Gubith @PeterJones
          last edited by

          @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.

          EkopalypseE Alan KilbornA 2 Replies Last reply Reply Quote 0
          • EkopalypseE
            Ekopalypse @Gubith
            last edited by Ekopalypse

            @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
            • Alan KilbornA
              Alan Kilborn @Gubith
              last edited by Alan Kilborn

              @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
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors