|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SourceCodeFormatter
Strategy for converting a block of source code into pretty-printed HTML. SourceCodeFormatters MUST be forgiving: they will be dealing with user-supplied input, so they can't afford to blow up on bad data.
Method Summary | |
---|---|
String |
format(String code,
String language)
Convert source code into HTML. |
String[] |
getSupportedLanguages()
Inform the CodeMacro which languages this formatter supports. |
Method Detail |
---|
String[] getSupportedLanguages()
String format(String code, String language)
code
- the source code as a stringlanguage
- the programming language that it is believed this code is written in
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |