enlightjs

package
v0.0.0-...-8aeec60 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnlighterJS

func EnlighterJS(h *wp.Handle)

Types

type Config

type Config struct {
	Selectors Selectors `json:"selectors"`
	Options   Options   `json:"options"`
}

type Options

type Options struct {
	Indent           int64  `json:"indent,omitempty"`
	AmpersandCleanup bool   `json:"ampersandCleanup,omitempty"`
	Linehover        bool   `json:"linehover,omitempty"`
	RawcodeDbclick   bool   `json:"rawcodeDbclick,omitempty"`
	TextOverflow     string `json:"textOverflow,omitempty"`
	Linenumbers      bool   `json:"linenumbers,omitempty"`
	Theme            string `json:"theme,omitempty"`
	Language         string `json:"language,omitempty"`
	RetainCssClasses bool   `json:"retainCssClasses,omitempty"`
	Collapse         bool   `json:"collapse,omitempty"`
	ToolbarOuter     string `json:"toolbarOuter,omitempty"`
	ToolbarTop       string `json:"toolbarTop,omitempty"`
	ToolbarBottom    string `json:"toolbarBottom,omitempty"`
}

type Selectors

type Selectors struct {
	Block  string `json:"block,omitempty"`
	Inline string `json:"inline,omitempty"`
}

Jump to

Keyboard shortcuts

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