Bug 320406

Summary: [Patch] Improve MediaWiki highlighting
Product: [Applications] kate Reporter: Adrián Chaves (Gallaecio) <adrian>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: Git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 4.11
Sentry Crash Report:
Attachments: Patch implementing the proposed improvements.

Description Adrián Chaves (Gallaecio) 2013-05-29 05:22:15 UTC
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
Comment 1 Adrián Chaves (Gallaecio) 2013-05-29 05:24:25 UTC
Created attachment 80147 [details]
Patch implementing the proposed improvements.
Comment 2 Dominik Haumann 2013-05-30 19:19:38 UTC
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