The patch provides the following improvements over the current MediaWiki syntax highlighting file: • Highlight # within wiki links. • Make templates syntax highlighting work within links. • Allow tables within tables. • Highlight the content between “source” or “syntaxhighlight” XML tags the same as within “pre” XML tags (in the future, this can be extended to support syntax highlighting of other languages within these tags). • Proper highlighting for definition list. Reproducible: Always The results can be tested with the following wiki syntax examples: [[Solution Browser#Business Reports|Solution Browser, Business Reports]] [[Overview of the {{Product}} User Types|user types]] {| | 1 | 2 |- | 3 | {| | 4.1 | 4.2 |- | 4.3 | 4.4 |} |} <source> Inside tags like <pre> are not hightlighted. </source> ; Definition Header : Definition Content ;Definition Header:Definition Content
Created attachment 80147 [details] Patch implementing the proposed improvements.
Git commit 86d39fb83187254f3c494c784e129b98ecb54f81 by Dominik Haumann. Committed on 30/05/2013 at 21:12. Pushed by dhaumann into branch 'master'. Improve MediaWiki highlighting The patch provides the following improvements over the current MediaWiki syntax highlighting file: - Highlight # within wiki links. - Make templates syntax highlighting work within links. - Allow tables within tables. - Highlight the content between "source" or "syntaxhighlight" XML tags the same as within "pre" XML tags (in the future, this can be extended to support syntax highlighting of other languages within these tags). - Proper highlighting for definition list. Thanks to Adrián Chaves Fernández for the patch. FIXED-IN: 4.11 M +24 -3 part/syntax/data/mediawiki.xml http://commits.kde.org/kate/86d39fb83187254f3c494c784e129b98ecb54f81