On Sep 29, 2008, at 3:41 PM, Sergiu Dumitriu wrote:
Vincent Massol wrote:
Hi,
I'm committing the following change to make it easier for users to
try
the new syntax:
* There's a property in xwiki.cfg to enable different syntaxes:
# [Since 1.6RC1] Defines the list of supported syntaxes
# Available syntaxes are:
# xwiki/1.0, xwiki/2.0, confluence/1.0, jspwiki/1.0, creole/1.0,
# mediawiki/1.0, xhtml/1.0, twiki/1.0
xwiki.rendering.syntaxes = xwiki/1.0, xwiki/2.0
* It defaults to XWiki Syntax 1.0 and 2.0 (because the other syntaxes
are not quite ready)
* I'm adding a new XWiki API: XWiki.getConfiguredSyntaxes()
I don't quite agree with adding new methods to the XWiki class, I'd
rather use the configuration component.
I know but:
1) it's not available from velocity yet (remember that I'm waiting for
you to finish that ;))
2) this is old code and not new code.
3) the idea is not to use the configuration component for this (we
shouldn't) but instead to use the component that manages
"editing" (which doesn't exist)
Thanks
-Vincent
> * Any user will be able to see the list of
configured syntaxes in
> wiki
> edit mode
>
> Please shout quickly if you don't think this is a good idea.