Bug 234846 - [Patch] Support \Verb in syntax highlighting
Summary: [Patch] Support \Verb in syntax highlighting
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: syntax (show other bugs)
Version: unspecified
Platform: Mandriva RPMs Unspecified
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-20 00:09 UTC by Nikos Platis
Modified: 2011-06-25 18:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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