highlight

package
v1.14.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Code

func Code(fileName, code string) string

Code returns a HTML version of code string with chroma syntax highlighting classes

func File

func File(numLines int, fileName string, code []byte) map[int]string

File returns map with line lumbers and HTML version of code with chroma syntax highlighting classes

func NewContext

func NewContext()

NewContext loads custom highlight map from local config

Types

This section is empty.

Jump to

Keyboard shortcuts

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