Bug 320406 - [Patch] Improve MediaWiki highlighting
Summary: [Patch] Improve MediaWiki highlighting
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: syntax (show other bugs)
Version: Git
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-29 05:22 UTC by Adrián Chaves (Gallaecio)
Modified: 2013-05-30 19:19 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.11
Sentry Crash Report:


Attachments
Patch implementing the proposed improvements. (6.30 KB, patch)
2013-05-29 05:24 UTC, Adrián Chaves (Gallaecio)
Details

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