@NonNls
public class ColorerSyntaxHighlighter
extends java.lang.Object
Constructor and Description |
---|
ColorerSyntaxHighlighter() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getStyle(java.lang.String name)
Returns the style that needs to be embedded in result HTML.
|
static java.lang.String |
highlight(java.lang.String source,
java.lang.String name)
Highlight source and output as styled HTML
|
@Nullable public static java.lang.String highlight(@NotNull java.lang.String source, @NotNull java.lang.String name) throws java.io.IOException
source
- textname
- source file name to help deduce languagejava.io.IOException
- if I/O error occurs@NotNull public static java.lang.String getStyle(@NotNull java.lang.String name)
name
- the file name to help deduce language