Press ESC to see presentation overview.
This is some text
This is some text
fun main() { for (i in (0..5)) { println("Hello World $i") } }
fun main() { for (i in (0..5)) { println("Hello World $i") } }
fun main() { for (i in (0..5)) { println("Hello World $i") } }
markdownSlide { val src = "kslides-examples/src/main/kotlin/content/HelloWorldK.kt" content { """ ## Code with a markdownSlide ```kotlin [1,5|2,4|3] ${include(githubRawUrl("kslides", "kslides", src), "[3-7]")} ``` """ } }
fun main() { for (i in (0..5)) { println("Hello World $i") } }
fun main() { for (i in (0..5)) { println("Hello World $i") } }
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"
}
]
}
for (lines in "[8-12|3-12|2-13|]".toLinePatterns()) { dslSlide { autoAnimate = true slideConfig { transition = Transition.NONE } content { h2 { +"Animated Code without Line Numbers" } val file = "src/main/resources/json-example.json" codeSnippet { dataId = "code-animation" language = "json" highlightPattern = "none" +include(file, linePattern = lines) } } } }
{ "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" } ] }
for (lines in "[8-12|3-12|2-13|]".toLinePatterns().zip(listOf(3, 3, 2, 1))) { dslSlide { autoAnimate = true slideConfig { transition = Transition.NONE } content { h2 { +"Animated Code with Line Numbers" } val file = "src/main/resources/json-example.json" codeSnippet { dataId = "code-animation" language = "json" lineOffSet = lines.second +include(file, linePattern = lines.first) } } } }
markdownSlide { // Image size is controlled by css above content { """ ## Images  """ } }
markdownSlide {
id = "otherslides"
content {
"""
## Other Presentations Defined In Slides.kt
<span style="text-align: left; text-indent: 25%;">
[🐦 greattalk1/ Slides](/greattalk1)
[🐦 greattalk1/other.html Slides](/greattalk1/other.html)
[🐦 greattalk2.html Slides](/greattalk2.html)
</span>
"""
}
}