80 lines
1.8 KiB
YAML
80 lines
1.8 KiB
YAML
|
name: Prism Highlighter
|
||
|
version: 2.0.6
|
||
|
description: "This plugin provides code highlighting functionality via the [Prism.js](http://prismjs.com/) syntax highlighter with lots of themes and plugins."
|
||
|
icon: code
|
||
|
author:
|
||
|
name: Trilby Media
|
||
|
email: hello@trilby.media
|
||
|
url: https://trilby.media
|
||
|
homepage: https://github.com/trilbymedia/grav-plugin-prism-highlight
|
||
|
keywords: highlight, plugin, code, prism.js
|
||
|
bugs: https://github.com/trilbymedia/grav-plugin-prism-highlight/issues
|
||
|
license: MIT
|
||
|
|
||
|
form:
|
||
|
validation: strict
|
||
|
fields:
|
||
|
enabled:
|
||
|
type: toggle
|
||
|
label: PLUGIN_ADMIN.PLUGIN_STATUS
|
||
|
highlight: 1
|
||
|
default: 0
|
||
|
options:
|
||
|
1: PLUGIN_ADMIN.ENABLED
|
||
|
0: PLUGIN_ADMIN.DISABLED
|
||
|
validate:
|
||
|
type: bool
|
||
|
|
||
|
theme:
|
||
|
type: select
|
||
|
label: CSS Theme
|
||
|
default: prism-base16-ocean.dark.css
|
||
|
size: large
|
||
|
data-options@: '\Grav\Plugin\PrismHighlightPlugin::themeOptions'
|
||
|
|
||
|
all-pre-blocks:
|
||
|
type: toggle
|
||
|
label: All Pre Blocks
|
||
|
highlight: 1
|
||
|
default: 1
|
||
|
options:
|
||
|
1: PLUGIN_ADMIN.ENABLED
|
||
|
0: PLUGIN_ADMIN.DISABLED
|
||
|
validate:
|
||
|
type: bool
|
||
|
|
||
|
section_plugins:
|
||
|
type: section
|
||
|
title: Plugins Options
|
||
|
underline: true
|
||
|
|
||
|
plugins.line-numbers:
|
||
|
type: toggle
|
||
|
label: Line Numbers
|
||
|
highlight: 0
|
||
|
default: 0
|
||
|
options:
|
||
|
1: PLUGIN_ADMIN.ENABLED
|
||
|
0: PLUGIN_ADMIN.DISABLED
|
||
|
validate:
|
||
|
type: bool
|
||
|
|
||
|
plugins.command-line:
|
||
|
type: toggle
|
||
|
label: Command Line
|
||
|
highlight: 0
|
||
|
default: 0
|
||
|
options:
|
||
|
1: PLUGIN_ADMIN.ENABLED
|
||
|
0: PLUGIN_ADMIN.DISABLED
|
||
|
validate:
|
||
|
type: bool
|
||
|
|
||
|
plugins.command-line-prompt:
|
||
|
type: text
|
||
|
size: small
|
||
|
label: Command Line Prompt
|
||
|
|
||
|
|
||
|
|