lex

package
v0.0.0-...-b98da92 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterCJson

func RegisterCJson()

This is a slightly modified version of github.com/alecthomas/chroma/blob/master/formatters/json.go

Types

type ColoredElement

type ColoredElement struct {
	Content    string `"json":"content"`
	Whitespace bool   `"json":"whitespace"`
	Comment    bool   `"json":"comment"`
	Red        uint8  `"json":"red"`
	Green      uint8  `"json":"green"`
	Blue       uint8  `"json":"blue"`
	Underline  bool   `"json":"underline"`
	Italic     bool   `"json":"italic"`
	Bold       bool   `"json":"bold"`
}

func FromFile

func FromFile(path string, style string) []*ColoredElement

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL