org.xwiki.rendering.parser
Interface HighlightParser

All Superinterfaces:
org.xwiki.rendering.parser.Parser
All Known Implementing Classes:
AbstractHighlightParser

@ComponentRole
public interface HighlightParser
extends org.xwiki.rendering.parser.Parser

Convert provided source to an highlighted version.

Since:
1.7RC1
Version:
$Id$

Method Summary
 List<org.xwiki.rendering.block.Block> highlight(String syntaxId, Reader source)
          Return a highlighted version of the provided content.
 
Methods inherited from interface org.xwiki.rendering.parser.Parser
getSyntax, parse
 

Method Detail

highlight

List<org.xwiki.rendering.block.Block> highlight(String syntaxId,
                                                Reader source)
                                                throws org.xwiki.rendering.parser.ParseException
Return a highlighted version of the provided content.

Parameters:
syntaxId - the identifier of the source syntax.
source - the content to highlight.
Returns:
the highlighted version of the provided source.
Throws:
ParseException - the highlighting failed.


Copyright © 2004-2011 XWiki. All Rights Reserved.