KristenXu / editra

Automatically exported from code.google.com/p/editra
Other
0 stars 1 forks source link

feature request - lexer for wikitext #195

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
would it be possible to create a lexer for wikitext?  basically, this 
incorporates most elements of 
html, as well as a set of wiki-specific features.  short list of examples:

* local wiki links using doubled square brackets: [[pagename]]
* external links using single square brackets: [URI]
* system variables, templates, and parser functions using doubled curly quotes: 
{{NAME}}
* template parameters with triple curly quotes: {{{param}}}
* single quotes for italic, bold, and bold italic: ''italic'', '''bold''', 
'''''bold italic'''''

you might start with http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet to get a 
feel for it.

thanks!

Original issue reported on code.google.com by twrig...@uci.edu on 17 Nov 2008 at 5:41

GoogleCodeExporter commented 8 years ago

Original comment by CodyPrec...@gmail.com on 17 Nov 2008 at 5:53

GoogleCodeExporter commented 8 years ago
MediaWiki has a full page on how to do
this:http://meta.wikimedia.org/wiki/MediaWiki_lexer

Original comment by GDoerm...@gmail.com on 22 Jul 2009 at 4:29

GoogleCodeExporter commented 8 years ago
I believe each wiki parser has it's own syntax. Which means that this issue 
should actually be called lexer for Mediawiki wikitext. Still quite useful, 
though, since Mediawiki is seemingly the most popular wiki.

Original comment by davito...@gmail.com on 25 Jul 2011 at 3:00