Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrettyCode ¶
type PrettyCode struct {
// contains filtered or unexported fields
}
PrettyCode is a struct that holds the tokens of the code
func NewToken ¶
func NewToken(ts []*models.Token) *PrettyCode
NewToken creates a new PrettyCode struct from tokens
func (*PrettyCode) HighlightConsole ¶
func (p *PrettyCode) HighlightConsole() string
HighlightConsole highlights the code with console
func (*PrettyCode) HighlightHtml ¶
func (p *PrettyCode) HighlightHtml() string
HighlightHtml highlights the code with html tags
Click to show internal directories.
Click to hide internal directories.