|
||||||||||
| 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 | |
|---|---|
java.lang.String |
format(java.lang.String code,
java.lang.String language)
Convert source code into HTML. |
java.lang.String[] |
getSupportedLanguages()
Inform the CodeMacro which languages this formatter supports. |
| Method Detail |
|---|
java.lang.String[] getSupportedLanguages()
java.lang.String format(java.lang.String code,
java.lang.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 | |||||||||