Community
    • Login

    Bold, Italic and Underline in UDL style

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 2 Posters 527 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.
    • dshuman52D
      dshuman52
      last edited by

      Notepad 7.8.2 portable 64 bit

      The following assumes that fontstyle in the XML file is the value that controls the Bold, Italic and Underline font attributes.

      With the upgrade to User Defined languages was fontsstyle disabled by design or possibly accident? I tried to create a new UDL and fontstyle appeared to never get set in the XML file (value was always 0). On old UDLs bold, italic and index appear to be no longer effective even when fontstyle is not zero.

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

        I think the attribute names are case sensitive; it is written as fontStyle (with the S capitalized) in all the UDL.xml that I have, and I do see the bold/italic/underlining still follow the fontStyle setting for my UDL.

                    <WordsStyle name="FOLDER IN CODE1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="7" nesting="0" />
        

        (that FOLDER IN CODE1 properly sets all three of bold, italic, and underlined)

        1 Reply Last reply Reply Quote 0
        • dshuman52D
          dshuman52
          last edited by

          The lack of BIU attributes on the old file was due to a global override if BIU, stupid user error.

          The inability to set new entries may also be due to the global override.

          1 Reply Last reply Reply Quote 1
          • PeterJonesP
            PeterJones
            last edited by

            @dshuman52 said in Bold, Italic and Underline in UDL style:

            stupid user error.

            I hate it when that happens to me. :-)

            Glad you found the problem.

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