Code

class Code(val content: String, val language: String?, val showLineNumbers: Boolean = true, val focusedLines: Range? = null) : Node

A code block.

Parameters

content

code content

language

optional syntax language

showLineNumbers

whether to show line numbers

focusedLines

range of lines to focus on. No lines are focused if null

Constructors

Link copied to clipboard
constructor(content: String, language: String?, showLineNumbers: Boolean = true, focusedLines: Range? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val focusedLines: Range? = null
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun <T> accept(visitor: NodeVisitor<T>): T

Accepts a visitor.

Link copied to clipboard