Top Description Methods
io.github.kusoroadeolu.veneer.theme

public Interface SyntaxTheme

Known Direct Implementers
io.github.kusoroadeolu.veneer.theme.TokyoNightSyntaxTheme, io.github.kusoroadeolu.veneer.theme.CatppuccinMochaSyntaxTheme, io.github.kusoroadeolu.veneer.theme.DefaultSyntaxTheme, io.github.kusoroadeolu.veneer.theme.GruvboxDarkSyntaxTheme, io.github.kusoroadeolu.veneer.theme.NordSyntaxTheme
Imports
io.github.kusoroadeolu.clique.spi.AnsiCode

Defines the color scheme used by a io.github.kusoroadeolu.veneer.SyntaxHighlighter. Implement this interface to create a custom theme.

Method Summary

Modifier and TypeMethod and Description
public AnsiCode
annotation()

Returns: the color for annotations e.g. @Override

public AnsiCode
comment()

Returns: the color for comments

public AnsiCode
constants()

Returns: the color for static final fields and enum constants.

public AnsiCode
gutter()

Returns: the color for line number gutter text

public AnsiCode
keyword()

Returns: the color for keywords e.g. public, void, return

public AnsiCode
method()

Returns: the color for declared method and constructor names

public AnsiCode
numberLiteral()

Returns: the color for numeric literals e.g. 42, 3.14f, 0xFF

public AnsiCode
stringLiteral()

Returns: the color for string literals, text blocks, and Javadoc

public AnsiCode
types()

Returns: the color for type references e.g. String, List, MyClass

Method Detail

annotationback to summary
public AnsiCode annotation()
Returns:AnsiCode

the color for annotations e.g. @Override

commentback to summary
public AnsiCode comment()
Returns:AnsiCode

the color for comments

constantsback to summary
public AnsiCode constants()
Returns:AnsiCode

the color for static final fields and enum constants. This can also be used for non-static final fields or key value pairs

gutterback to summary
public AnsiCode gutter()
Returns:AnsiCode

the color for line number gutter text

keywordback to summary
public AnsiCode keyword()
Returns:AnsiCode

the color for keywords e.g. public, void, return

methodback to summary
public AnsiCode method()
Returns:AnsiCode

the color for declared method and constructor names

numberLiteralback to summary
public AnsiCode numberLiteral()
Returns:AnsiCode

the color for numeric literals e.g. 42, 3.14f, 0xFF

stringLiteralback to summary
public AnsiCode stringLiteral()
Returns:AnsiCode

the color for string literals, text blocks, and Javadoc

typesback to summary
public AnsiCode types()
Returns:AnsiCode

the color for type references e.g. String, List, MyClass