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 -- dipl. psych. meik michalke institut f"ur experimentelle psychologie abt. f"ur diagnostik und differentielle psychologie heinrich-heine-universit"at d-40204 d"usseldorf
signature.asc
Description: This is a digitally signed message part.