org.tinyjee.maven.dim.sh
Class HighlighterScriptFacade
java.lang.Object
org.tinyjee.maven.dim.utils.JavaScriptFacade
org.tinyjee.maven.dim.sh.HighlighterScriptFacade
public class HighlighterScriptFacade
- extends JavaScriptFacade
Makes the SyntaxHighlighter from 'http://alexgorbatchev.com/SyntaxHighlighter/' available to Java.
- Version:
- 1.0
- Author:
- Juergen_Kellerer, 2010-09-03
HighlighterScriptFacade
protected HighlighterScriptFacade()
throws IOException
- Constructs a new thread bound HighlighterScriptFacade.
- Throws:
IOException
- In case of the initial scripts needed for the SyntaxHighlighter cannot be loaded.
highlightToHTML
public String highlightToHTML(String brushName,
String code,
Map<String,String> params)
- Highlights the given code using a HTML representation.
- Parameters:
brushName
- the name of the SyntaxHighlighter brush to use.code
- the code to highlight.params
- the params to pass to the SyntaxHighlighter.
- Returns:
- the highlighted HTML representation of the code.
getBrushResolvers
public final Iterable<BrushResolver> getBrushResolvers()
finalize
protected void finalize()
throws Throwable
-
- Overrides:
finalize
in class Object
- Throws:
Throwable