mirror of
https://github.com/maaslalani/slides.git
synced 2026-01-11 07:18:01 -05:00
835 B
835 B
Code blocks
Slides allows you to execute code blocks directly inside your slides!
Just press ctrl+e and the result of the code block will be displayed as virtual text in your slides.
Currently supported languages:
bashelixirgojavascriptpythonrubyperlrust
Bash
ls
Elixir
IO.puts "Hello, world!"
Go
package main
import "fmt"
func main() {
fmt.Println("Hello, world!")
}
Javascript
console.log("Hello, world!")
Lua
print("Hello, World!")
Python
print("Hello, world!")
Ruby
puts "Hello, world!"
Perl
print ("hello, world");
Rust
fn main() {
println!("Hello, world!");
}