Bug 234846

Summary: [Patch] Support \Verb in syntax highlighting
Product: [Applications] kate Reporter: Nikos Platis <nplatis>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: cullmann
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Unspecified   
Latest Commit: Version Fixed In:

Description Nikos Platis 2010-04-20 00:09:44 UTC
Version:            (using KDE 4.4.2)
Installed from:    Mandriva RPMs

It seems that the current syntax highlighting for Kate supports the fancyvrb package, since it handles correctly the environments Verbatim, BVerbatim and LVerbatim.

Unfortunately, it does not handle correctly the inline form, \Verb (which works similarly to the built-in \verb or the (also highlighted correctly) \lstinline), e.g. \Verb!int main()!

The change required in latex.xml is, I think, minimal: in line 126 (version 1.41 of latex.xml, http://websvn.kde.org/trunk/KDE/kdelibs/kate/syntax/data/latex.xml?view=markup&pathrev=1073457) add the string 'Verb' in the regular expression.
Comment 1 Christoph Cullmann 2011-06-25 18:52:25 UTC
Done for KDE 4.7, better late than never .P