This is some text
This is some text
fun main() {
for (i in (0..5)) {
println("Hello World $i")
}
}
dslSlide {
val src = "kslides-examples/src/main/kotlin/content/HelloWorldK.kt"
val url = githubRawUrl("kslides", "kslides", src)
content {
h2 { +"Code with a dslSlide" }
// Display lines 3-7 of the url content and highlight lines 1 and 5, 2 and 4, and finally 3
codeSnippet {
language = "kotlin"
highlightPattern = "[1,5|2,4|3]"
+include(url, "[3-7]")
}
}
}
GitHub Source
{
"id":"555",
"language":"C++",
"author":"Bjarne Stroustrup"
}
{
"id":"444",
"language":"C",
"author":"Dennis Ritchie"
},
{
"id":"555",
"language":"C++",
"author":"Bjarne Stroustrup"
}
"books":[
{
"id":"444",
"language":"C",
"author":"Dennis Ritchie"
},
{
"id":"555",
"language":"C++",
"author":"Bjarne Stroustrup"
}
]
{
"books":[
{
"id":"444",
"language":"C",
"author":"Dennis Ritchie"
},
{
"id":"555",
"language":"C++",
"author":"Bjarne Stroustrup"
}
]
}
{
"id":"555",
"language":"C++",
"author":"Bjarne Stroustrup"
}
{
"id":"444",
"language":"C",
"author":"Dennis Ritchie"
},
{
"id":"555",
"language":"C++",
"author":"Bjarne Stroustrup"
}
"books":[
{
"id":"444",
"language":"C",
"author":"Dennis Ritchie"
},
{
"id":"555",
"language":"C++",
"author":"Bjarne Stroustrup"
}
]
{
"books":[
{
"id":"444",
"language":"C",
"author":"Dennis Ritchie"
},
{
"id":"555",
"language":"C++",
"author":"Bjarne Stroustrup"
}
]
}
backgroundSize and backgroundPosition keep it clear of the text.
| Deck | Path | Slides |
|---|---|---|
| Main | index.html | many |
| Great Talk 1 | greattalk1/ | 2 |
| Great Talk 2 | greattalk2.html | 2 |
flowchart LR A[Slides.kt] --> B[kslides] B --> C[docs/] B --> D[HTTP server]