Dear all, FYI the issue was indeed a bug in ktexteditor. I reported it here: https://bugs.kde.org/show_bug.cgi?id=398393 and it was fixed by this commit: https://phabricator.kde.org/D15370
Cheers, Pierre Le mardi 4 septembre 2018, 16:09:08 CEST Pierre de Villemereuil a écrit : > Hi Meik, > > Hm... So, you're saying that, contrary to "Headlines", the "Alerts" like > TODO, NOTE, etc. are not defined in RKWard code, but in Kate (or KTextEdit)? > > That means more investigation. I'll follow up on the Kate side when I'll have > some time. > > Cheers, > Pierre. > > Le dimanche 2 septembre 2018, 00:37:23 CEST meik michalke a écrit : > > hi pierre, > > > > Am Samstag, 1. September 2018, 18:52:53 CEST schrieb Pierre de Villemereuil: > > > On the same note as for "headline": > > > https://mail.kde.org/pipermail/rkward-devel/2018-April/005013.html > > > the comment keywords TODO and NOTE (are there others?) are reported as > > > TRUE > > > using the isCode javascript function of KTextEdit. > > > > > > As for headlines, those keywords being comments, I don't think they should > > > be considered code. Is this the same bug? > > > > i suspect this to be the section to blame: > > > > <context attribute="Headline" lineEndContext="#pop" name="Headline"> > > <IncludeRules context="##Alerts" /> > > </context> > > <context attribute="Comment" lineEndContext="#pop" name="Comment"> > > <IncludeRules context="##Alerts" /> > > </context> > > > > the highlighting for TODO, NOTE etc. is not defined in r.xml but imported > > from > > the alerts.xml rules of kate. > > > > later on: > > > > <comments> > > <comment name="singleLine" start="#" end=""/> > > </comments> > > > > i.e., as far as i understand it, all lines starting with "#" are to be > > taken > > as comments. if they are seen as code, i'm not sure how that can be > > addressed > > from within RKWard? > > > > > > viele grüße :: m.eik > > > >