Code
Less than 1 minute
The theme provides the following features to enhance coding:
- Code Tabs: Add tabs to your code block.
- Code Demo: Display and run code snippets in browser.
- Playground: Embed external playground site.
- Kotlin Playground: Reactive kotlin playground.
- Vue Playground: Reactive vue playground.
Demo
Code Tabs
pnpm
pnpm add -D vuepress-theme-hopeyarn
yarn add -D vuepress-theme-hopenpm
npm i -D vuepress-theme-hopeCode Demo
A normal demo
<h1>VuePress Theme Hope</h1>
<p>Is <span id="very">very</span> powerful!</p>document.querySelector("#very").addEventListener("click", () => {
alert("Very powerful!");
});span {
color: red;
}Playground
Kotlin Playground
Kotlin Playground
class Contact(val id: Int, var email: String)
fun main(args: Array<String>) {
val contact = Contact(1, "mary@gmail.com")
println(contact.id)
}
Vue Playground
Vue Playground
Sandpack
Vue Playground
Changelog
4/13/25, 8:50 PM
View All Changelog
55e92-on6ad69-on52f3a-on31f0e-onb41c0-on95198-on1669d-on55ea3-on