<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">I've just tried that, but it didn't
      make a difference unfortunately.<br>
      <br>
      Best regards<br>
      Tim<br>
      <br>
      On 26/07/18 22:53, Dominik Haumann wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALi_srDEROLVc+M1xPFAzfhO9XeaoXix6T7eMa5QP4wDA=KzCQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div dir="ltr">
        <div dir="auto"><span style="font-family:sans-serif">Try
            version="1" instead of "1.00". Does that work?</span></div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr">Tim Edwards <<a
              href="mailto:liststuff@fastmail.com.au" target="_blank"
              moz-do-not-send="true">liststuff@fastmail.com.au</a>>
            schrieb am Do., 26. Juli 2018, 07:48:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
            <br>
            I'm trying to use Kate to provide highlighting for headers
            in text files<br>
            (ending .txt). Basically I want to be able to use 3 levels
            of headers:<br>
            ***Top level - bold and underlined***<br>
            <br>
            **Mid level - bold**<br>
            <br>
            *Lower Level - underlined*<br>
            <br>
            The bold style works as expected, but underlining doesn't
            seem to work<br>
            in 17.12 (Kubuntu 18.04). I have the following in<br>
            ~/.local/share/katepart5/<wbr>syntax/normaltext.xml:<br>
            <br>
            <?xml version="1.0" encoding="UTF-8"?><br>
            <!DOCTYPE language SYSTEM "language.dtd"><br>
            <!-- Syntax highlighting that I want applied to all text
            files --><br>
            <language name="Normal Text Files with Headers"
            version="1.00"<br>
            kateversion="2.4"<br>
                      section="Other" extensions="*.txt"<br>
                      license="public domain" mimetype="text/plain"><br>
               <br>
              <highlighting><br>
                <contexts><br>
                  <context name="Normal" attribute="Normal Text"
            lineEndContext="#stay"><br>
                    <!-- Match header lines like ***Buying Process***
            --><br>
                    <RegExpr String="^\*\*\*\S.*"
            attribute="topLevelHeader" /><br>
                    <!-- Match header lines like **January 2017**
            --><br>
                    <RegExpr String="^\*\*\S.*"
            attribute="secondLevelHeader" /><br>
                    <!-- Match header lines like *Quantitative
            Analysis* --><br>
                    <RegExpr String="^\*\S.*"
            attribute="thirdLevelHeader" /><br>
                  </context><br>
                </contexts><br>
                <itemDatas><br>
                  <itemData name="Normal Text" defStyleNum="dsNormal"
            /><br>
                  <itemData name="topLevelHeader"
            defStyleNum="dsNormal" bold="true"<br>
            underline="true" /><br>
                  <itemData name="secondLevelHeader"
            defStyleNum="dsNormal"<br>
            bold="true" /><br>
                  <itemData name="thirdLevelHeader"
            defStyleNum="dsNormal"<br>
            underline="true" /><br>
                </itemDatas><br>
              </highlighting><br>
            </language><br>
            <br>
            Anything I need to add or change in the XML above to have it
            work? I<br>
            think the underlining was working with Kubuntu 16.04. Could
            the<br>
            difference be something to do with the change to
            KSyntaxHighlighting<br>
            Framework?<br>
            <br>
            Best regards<br>
            Tim<br>
            p, li { white-space: pre-wrap; }normaltext.xml<br>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>