CopyCodeConfig

Configuration for the CopyCode reveal.js plugin. Only takes effect when PresentationConfig.enableCodeCopy is true.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Set to "always" by default. Can be set to "hover" to only show the button on hover, or "false" to disable the button entirely.

Link copied to clipboard

Label shown immediately after a successful copy (e.g. "Copied").

Link copied to clipboard

Background color of the button after a successful copy.

Link copied to clipboard

A CSS 'border' rule. Can be, for example "1px solid green".

Link copied to clipboard

Text color of the button after a successful copy.

Link copied to clipboard

Default button label (e.g. "Copy").

Link copied to clipboard

Background color of the button in its default state.

Link copied to clipboard

A CSS 'border' rule. Can be, for example "1px solid gray".

Link copied to clipboard

Text color of the button in its default state.

Link copied to clipboard

The copy buttons display only text by default, but this setting can be changed to "icons" or "both".

Link copied to clipboard

The offset (in em) from the top and the right.

Link copied to clipboard

Set this to false to allow copying of rich text and styles. Default true.

Link copied to clipboard

The border-radius (in em) of the buttons.

Link copied to clipboard

The scale of the buttons and window elements.

Link copied to clipboard

Milliseconds the "Copied!" label is displayed before reverting to copy. Default 1000.

Link copied to clipboard

Show a tooltip at the Copied state, for the icons-only display version.

Link copied to clipboard

Controls whether code blocks are displayed in a macOS-style window frame. Default false.

Functions

Link copied to clipboard
open override fun merge(other: AbstractConfig)

Merge the copycode values from other on top of this config, so a later config wins per field.

Link copied to clipboard
open override fun revealjsOption(key: String, value: Any): Nothing

Not supported: CopyCodeConfig exposes every copycode option as a typed property and serializes them via a strict schema, so there is no place for an untyped raw value. Use the typed properties instead.