Extension:MarkdownExtraGeshiSyntax

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
MarkdownExtraGeshiSyntax

Release status: stable

Implementation Tag
Description Adds support for markdown extra syntax with Geshi support.
Author(s) Anthony Bush
Last version 1.0 (2009-05-08)
License Simplified BSD License
Download http://anthonybush.com/projects/markdown_extra_geshi/#MediaWiki_Extension

Check usage (experimental)

Contents

[edit] What can this extension do?

This extension adds support for markdown extra syntax with GeSHi support. Regular markdown syntax works fine, too. Code blocks within the markdown syntax are syntax highlighted with GeSHi (Generic Syntax Highlighter).

Writing documents in markdown increases their portability (many wiki syntaxes differ) and readability (many wiki syntaxes are harder to read).

[edit] Usage

Wrap markdown syntax with <markdown> tags:

<markdown>
Markdown syntax here
</markdown>

To specify the language of code snippets use {{lang:LANGUAGE}} as the first line in the code snippet:

<markdown>
Markdown example with a GeSHi code snippet:
 
        {{lang:php}}
        echo "Hello World";
</markdown>

[edit] Download instructions

Download the MediaWiki extension from [1] and extract it into $IP/extensions/. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

[edit] Installation

To install this extension, add the following to LocalSettings.php:

require_once("$IP/extensions/MarkdownExtraGeshiSyntax/MarkdownExtraGeshiSyntax.php");

[edit] See also

Extension:MarkdownSyntax

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox