Moved from 17.12.3 to 19.12.3, and now my highligthing doesn't work anymore
Philipp Hanselmann <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kwrite |
|---|---|
| Message-ID | <CAMQZZ6vuCXYGzCFp_eWoOZVLn1nrtKNrUEJJZDQ0iXbNkEcQLQ@mail.gmail.com> |
Dear Kate developers I wrote an own markup file(see attachment) and used this the last years with Kate 17.12.3 and Ubuntu 18.04 successfully. The file is saved under: ~/.local/share/katepart5/syntax/confluence.xml Now I installed Kate 19.12.3 (snap package) and recognized that Kate can't find the markup anymore :-(. It tried to get it working, but finally I gave up and went back to Kate 17.x.x. Where should I put personal markup file instead under 19.12.3 ? Thanks for your help! Regards Philipp $ snap list | grep kate kate 19.12.3 60 latest/stable kde* $ dpkg -l | grep kate ii kate 4:17.12.3-0ubuntu1 amd64 powerful text editor ii kate5-data 4:17.12.3-0ubuntu1 all shared data files for Kate text editor
confluence.xml
(text/xml, 5.9 KB)
<?xml version = '1.0' encoding = 'UTF-8'?> <!DOCTYPE language SYSTEM "language.dtd" [ ]> <language name="Confluence" version='0.9' kateversion="2.4" section="Markup" extensions="*.confluence;*.txt" minetype="" author="Philipp Hanselmann" license="GPL"> <!-- http://www.regular-expressions.info/reference.html --> <!-- Kate & syntax files - https://www.mail-archive.com/[email protected]/msg50379.html --> <highlighting> <list name="emoticons"> <item> (+) </item> <item> (-) </item> <item> (i) </item> <item> (!) </item> <item> (?) </item> <item> (*) </item> <item> (x) </item> <item> (/) </item> <item> (on) </item> <item> (off) </item> </list> <list name="macros"> <item> code </item> <item> newcode </item> <item> panel </item> <item> tip </item> <item> info </item> <item> warning </item> </list> <contexts> <context attribute="Normal" lineEndContext="#stay" name="aText"> <!-- keywords emoticons --> <!-- <keyword String="emoticons" attribute="KeywordEmoticons" context="#stay"/> --> <!-- * TODO,ASK,TIME,DOCU --> <RegExpr String="(TODO|ASK|TIME|DOCU|WAIT|LATER|NOTE|PRIVAT).*" attribute="Title" context="#pop"/> <!-- emotions --> <!-- <RegExpr String="\((\+|-|i|\!|\?|\*|x|/|on|off)\)\s" attribute="KeywordEmoticons" context="#pop"/> --> <RegExpr String="(:\)|:\(|:P|:D|;\)|\((\+|-|y|n|i|!|\?|\*|\*r|\*g|\*n|\*y|\*b|flag|flagoff|x|/|on|off)\))(\s|$)" attribute="KeywordEmoticons" context="#pop"/> <!-- keywords macros --> <!-- <keyword String="macros" attribute="KeywordMacros" context="#stay"/> --> <RegExpr String="^\{(panel|code|info|tip|warning)(:\w+=[^\|=]*|)}" attribute="Macros" context="#pop"/> <RegExpr String="{color:(red|green|blue|orage|grey)}.+{color}" attribute="Bold" context="#pop"/> <!-- titles h5.,h4.,h3.,h2. & h1. --> <RegExpr String="^(h5\.|h4\.|h3\.|h2\.|h1\.)\s.*" attribute="Title" context="#pop"/> <!-- Table Title --> <RegExpr String="\|\|.+\|\|" attribute="Bold" context="#pop"/> <!-- JIRA Tickets--> <RegExpr String="(GLUE|GLUEBT|FEN|FIT|AIDE|PUBIKE|SYNCPUBI|CHGLG|SUPPORT|INFRA|POSTAUTO)-[0-9]+" attribute="Bold" context="#pop"/> <!-- Trennlinie --> <RegExpr String="\s*----\s*" attribute="Line" context="#pop"/> <!-- *bold* text --> <!-- \w+ : ein oder meherer beliebige Zeichen --> <RegExpr String="\*.+\*" attribute="Bold" context="#stay"/> <!-- *kursiv* text --> <RegExpr String="_.+_" attribute="Italic" context="#stay"/> <RegExpr String="!.*!" attribute="Image" context="#stay"/> <!-- {note} text {note --> <RegExpr String="\{note\}.+\{note\}" attribute="Macros" context="#stay"/> <!-- {code} code {code} --> <RegExpr String="\{code\}.+\{code\}" attribute="Macros" context="#stay"/> <!-- {note} - workaround more than one line --> <RegExpr String="\{code\}" attribute="Macros" context="#stay"/> <!-- List with dots --> <RegExpr String="\*{1,3}\s+" attribute="List_dot" context="#stay"/> <!-- List with numbers --> <RegExpr String="#{1,3}\s+" attribute="List_nummer" context="#stay"/> <!-- Cobinations List with dots or numbers --> <RegExpr String="^(#\*|#\*\*|\*#|\*##)\s+" attribute="List_nummer" context="#stay"/> <!-- Link --> <!-- [title#anchor] Link a page --> <!-- [dev:title] In 'dev' space --> <!-- [http://host.com] Remote link --> <!-- [phrase@shortcut] Shortcut --> <!-- [alias|link] Custom link title --> <!-- [http://confluence.atlassian.com/display/CONFKB/Troubleshooting+Read-Only+problems+in+the+Office+Connector] --> <!-- ^[.] Do not allow these caracters , [word,word] --> <!-- <RegExpr String="\[[^\.]*\]" attribute="Link" context="#stay" /> --> <!-- [^\*,] Do not allow these caracters "*","," like [*] --> <RegExpr String="\[[^\*,]*\]" attribute="Link" context="#stay"/> </context> <!-- _italic_ text --> <!-- Macros {panel:title=About|borderStyle=solid|borderColor} {panel} --> <!-- Image !URL! [plugin|https://plugins.atlassian.com/search/with?q=link&product=confluence] --> <context attribute="Normal" lineEndContext="#stay" name="URL"> <!-- [[ oder [ er --> <RegExpr String="[[]" context="#stay"/> <RegExpr String="(http:|ftp:|mailto:)[\S]*($|[\s])" context="#stay"/> </context> <!-- Detecting Errors --> <context attribute="Normal" lineEndContext="#pop" name="Error"> <!-- <AnyChar String="[]" context="Error" attribute="Error" /> --> </context> <!-- NOT WORKING Errors --> <!-- <RegExpr attribute="Region Marker" context="#stay" String="[" beginRegion="UserDefined" /> <RegExpr attribute="Region Marker" context="#stay" String="]" endRegion="UserDefined" /> --> </contexts> <itemDatas> <!-- blue:#0000FF, darkgreen:#037621 , red: #fd0000, turkis: #00e8fd light blue: #04bffd, dark red:#550206 --> <itemData name="Normal" defStyleNum="dsNormal"/> <itemData name="Unformattted" defStyleNum="dsNormal"/> <itemData name="Link" defStyleNum="dsOthers" color="#00e8fd"/> <itemData name="Image" defStyleNum="dsOthers" color="#00e8fd"/> <itemData name="URL" defStyleNum="dsOthers"/> <itemData name="Macros" defStyleNum="dsOthers" color="#fd0000"/> <itemData name="Bold" defStyleNum="dsOthers" color="#550206" bold="true"/> <itemData name="Italic" defStyleNum="dsOthers" color="#550206" italic="false"/> <itemData name="Line" bold="true" unterline="true"/> <itemData name="KeywordEmoticons" defStyleNum="dsKeyword" color="#fd0000"/> <itemData name="KeywordMacros" defStyleNum="dsKeyword"/> <itemData name="Section" defStyleNum="dsKeyword"/> <itemData name="Error" defStyleNum="dsError"/> <itemData name="List_nummer" defStyleNum="dsKeyword" color="#0000FF" selColor="#FFFFFF" bold="true" italic="false"/> <itemData name="List_dot" defStyleNum="dsNormal" color="#0000FF" selColor="#CCCCCC" bold="true" italic="false"/> <itemData name="Title" defStyleNum="dsOthers" color="#037621" selColor="#0000FF" bold="true" italic="false"/> </itemDatas> </highlighting> <general> <comments> <comment end="//-->" start="<!--" name="multiLine"/> </comments> <keywords casesensitive="0"/> </general> </language>