|
|
|
@ -9,6 +9,7 @@ import org.jetbrains.compose.web.dom.*
|
|
|
|
|
import com.sample.HighlightJs |
|
|
|
|
import com.sample.components.ContainerInSection |
|
|
|
|
import com.sample.style.* |
|
|
|
|
import org.jetbrains.compose.web.css.keywords.auto |
|
|
|
|
import org.w3c.dom.HTMLElement |
|
|
|
|
|
|
|
|
|
private fun HTMLElement.setHighlightedCode(code: String) { |
|
|
|
@ -272,4 +273,4 @@ fun FormattedCodeSnippet(code: String, language: String = "kotlin") {
|
|
|
|
|
private data class CodeSnippetData( |
|
|
|
|
val title: String, |
|
|
|
|
val source: String |
|
|
|
|
) |
|
|
|
|
) |
|
|
|
|