gitea: code.gitea.io/gitea/modules/highlight Index | Files

package highlight

import "code.gitea.io/gitea/modules/highlight"

Index

Package Files

highlight.go

func FileNameToHighlightClass Uses

func FileNameToHighlightClass(fname string) string

FileNameToHighlightClass returns the best match for highlight class name based on the rule of highlight.js.

func NewContext Uses

func NewContext()

NewContext loads highlight map

Package highlight imports 3 packages (graph) and is imported by 26 packages. Updated 2019-08-10. Refresh now. Tools for package owners.