HtmlForgeX

API Reference

Class

TablerCodeBlockSettings

Namespace HtmlForgeX
Assembly HtmlForgeX
Modifiers sealed

Advanced display settings for TablerCodeBlock.

Inheritance

  • Object
  • TablerCodeBlockSettings

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Methods

public TablerCodeBlockSettings Card(Boolean show = true) #
Returns: TablerCodeBlockSettings

Shows or hides the outer card frame.

Parameters

show System.Boolean = true optionalposition: 0
public TablerCodeBlockSettings Compact(Boolean enable = true) #
Returns: TablerCodeBlockSettings

Uses denser spacing.

Parameters

enable System.Boolean = true optionalposition: 0
public TablerCodeBlockSettings Copy(Boolean enable = true) #
Returns: TablerCodeBlockSettings

Shows or hides the copy button.

Parameters

enable System.Boolean = true optionalposition: 0
public TablerCodeBlock End() #
Returns: TablerCodeBlock

Returns control to the root code block.

public TablerCodeBlockSettings MaxHeight(String value) #
Returns: TablerCodeBlockSettings
EditorBrowsable(2)

Limits the code viewport height and scrolls overflow.

Type Parameters

THeight

Parameters

value System.String requiredposition: 0
MaxHeight``1(``0 value) #

Limits the code viewport height and scrolls overflow.

Parameters

value ``0 required
public TablerCodeBlockSettings Theme(PrismJsTheme theme) #
Returns: TablerCodeBlockSettings

Sets the Prism theme used when syntax highlighting is enabled.

Parameters

theme HtmlForgeX.PrismJsTheme requiredposition: 0
public TablerCodeBlockSettings Wrap(Boolean enable = true) #
Returns: TablerCodeBlockSettings

Allows long lines to wrap.

Parameters

enable System.Boolean = true optionalposition: 0