JabberWiki Configuration

The JabberWiki is designed to be easily configured using the web.config of your application.

Config Section Declaration

Section name must be "jabberWiki" (case-sensitve).
{code}
<configSections>
<section name="jabberWiki" type="JabberWiki.Configuration.WikiConfigurationSection,JabberWiki"/>
</configSections>
{code}

JabberWiki Element

The root element of the JabberWiki config section.
{code}
<jabberWiki>
<lex/>
</jabberWiki>
{code}
JabberWiki Child Elements
Element Name Description Required Default
lex The lex configuration element. No Lexer


Lex Element

Defines the type of lexer to use as well as the tokens that are produced by the lexer.
{code}
<lex lexer="">
<tokens>
<add name="star" matchText="*"/>
</tokens>
</lex>
{code}
Lex Child Elements
Element Name Description Required Default
lexer The type of lexer to use. Must implement ILexer. No Lexer
tokens Defines the tokens produced by the lexer No n/a


Tokens Child Elements
Element Name Description Required Default
add A token to add to the lexer. No n/a
name Unique name for the token. Yes n/a
matchText The text to match on in order to produce the token Yes n/a
tokenizer The type of tokenizer to use. Must implement ITokenizer No CompareTokenizer

Last edited Mar 9, 2007 at 5:12 AM by troyschneringer, version 3

Comments

No comments yet.