
commonMain.ink.ui.render.web.elements.CodeBlock.kt Maven / Gradle / Ivy
package ink.ui.render.web.elements
import ink.ui.structures.elements.UiElement
import kotlin.jvm.JvmInline
data class CodeBlock(
val code: String,
val language: Language? = null,
): UiElement.Static {
@JvmInline
value class Language(val key: String) {
companion object {
val Bash = Language("bash")
val Kotlin = Language("kotlin")
val Shell = Language("shell")
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy