This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Kate syntax highlighting nor working in 17.12

Tags: None
(comma "," separated)
tk
Registered Member
Posts
7
Karma
0
I have a syntax highlighting setup in Kate/Kpart which doesn't seem to work anymore:

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!-- Syntax highlighting that I want applied to all text files -->
<language name="Normal Text Files with Headers" version="1.00" kateversion="2.4"
          section="Other" extensions="*.txt"
          license="public domain" mimetype="text/plain">
   
  <highlighting>
    <contexts>
      <context name="Normal" attribute="Normal Text" lineEndContext="#stay">
        <!-- Match header lines like ***Buying Process*** -->
        <RegExpr String="^\*\*\*\S.*" attribute="topLevelHeader" />
        <!-- Match header lines like **January 2017** -->
        <RegExpr String="^\*\*\S.*" attribute="secondLevelHeader" />
        <!-- Match header lines like *Quantitative Analysis* -->
        <RegExpr String="^\*\S.*" attribute="thirdLevelHeader" />
      </context>
    </contexts>
    <itemDatas>
      <itemData name="Normal Text" defStyleNum="dsNormal" />
      <itemData name="topLevelHeader" defStyleNum="dsNormal" bold="true" underline="true" />
      <itemData name="secondLevelHeader" defStyleNum="dsNormal" bold="true" />
      <itemData name="thirdLevelHeader" defStyleNum="dsNormal" underline="true" />
    </itemDatas>
  </highlighting>
</language>


The problem is that underlining doesn't show up in recent versions of Kate. I have a screenshot, but can't see anywhere to upload it to this forum


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], q.ignora, watchstar