chromalexers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(name string) chroma.Lexer

Get returns a lexer for the given language name, nil if not found. This is just a wrapper around chromalexers.Get that caches the result. Reasoning for this is that chromalexers.Get is slow in the case where the lexer is not found, which is a common case in Hugo.

Types

This section is empty.

Jump to

Keyboard shortcuts

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