<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body>
<p>Bump, no-one got an idea on this?</p>
<p>Very much appreciated!</p>
<p>Enrico</p>
<p><br>
</p>
<p>---</p>
<hr>
<pre>Hi all,
I am trying to add code folding to the RSI IDL syntax highlighting [1],
for multi-line loops
(syntax:
for XXXX do begin
YYYY
endfor)
Following the documentation [2] and the example for a C source file [3],
I have added the following lines to the "Normal" context in the xml file:
<StringDetect attribute="Keyword" context="#stay" String="begin"
beginRegion="Control"/>
<StringDetect attribute="Keyword" context="#stay" String="endfor"
endRegion="Control"/>
<StringDetect attribute="Keyword" context="#stay" String="endif"
endRegion="Control"/>
But it doesn't work (no foldable sections are created in Kate).
Any ideas on what I'm doing wrong? (Kate 17.12.3, KDE Frameworks 5.44,
Kubuntu 18.04.5).
Thanks a lot!
Enrico
[1] <a href="https://kate-editor.org/syntax/data/syntax/rsiidl.xml">https://kate-editor.org/syntax/data/syntax/rsiidl.xml</a>
[2] <a href="https://docs.kde.org/stable5/en/applications/katepart/highlight.html">https://docs.kde.org/stable5/en/applications/katepart/highlight.html</a>
[3] <a href="https://kate-editor.org/syntax/data/syntax/c.xml">https://kate-editor.org/syntax/data/syntax/c.xml</a>
</pre>
</body>
</html>