1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
|
---
bash:
filename: script.sh
commands:
- ["bash", "$pwd/script.sh"]
hidden_line_prefix: "/// "
c++:
filename: snippet.cpp
commands:
- ["g++", "-std=c++20", "-fdiagnostics-color=always", "$pwd/snippet.cpp", "-o", "$pwd/snippet"]
- ["$pwd/snippet"]
hidden_line_prefix: "/// "
c:
filename: snippet.c
commands:
- ["gcc", "$pwd/snippet.c", "-fdiagnostics-color=always", "-o", "$pwd/snippet"]
- ["$pwd/snippet"]
hidden_line_prefix: "/// "
fish:
filename: script.fish
commands:
- ["fish", "$pwd/script.fish"]
hidden_line_prefix: "/// "
go:
filename: snippet.go
environment:
GO11MODULE: off
commands:
- ["go", "run", "$pwd/snippet.go"]
hidden_line_prefix: "/// "
haskell:
filename: snippet.hs
commands:
- ["runhaskell", "-w", "$pwd/snippet.hs"]
java:
filename: Snippet.java
commands:
- ["java", "$pwd/Snippet.java"]
hidden_line_prefix: "/// "
js:
filename: snippet.js
commands:
- ["node", "$pwd/snippet.js"]
hidden_line_prefix: "/// "
julia:
filename: snippet.jl
commands:
- ["julia", "$pwd/snippet.jl"]
hidden_line_prefix: "/// "
jsonnet:
filename: snippet.jsonnet
commands:
- ["jsonnet", "$pwd/snippet.jsonnet"]
hidden_line_prefix: "## "
kotlin:
filename: snippet.kts
commands:
- ["kotlinc", "-script", "$pwd/snippet.kts"]
hidden_line_prefix: "/// "
lua:
filename: snippet.lua
commands:
- ["lua", "$pwd/snippet.lua"]
nushell:
filename: snippet.nu
commands:
- ["nu", "$pwd/snippet.nu"]
perl:
filename: snippet.pl
commands:
- ["perl", "$pwd/snippet.pl"]
php:
filename: snippet.php
commands:
- ["php", "-f", "$pwd/snippet.php"]
hidden_line_prefix: "/// "
python:
filename: snippet.py
commands:
- ["python", "-u", "$pwd/snippet.py"]
hidden_line_prefix: "/// "
alternative:
uv:
filename: "snippet.py"
commands:
- ["uv", "run", "--script", "-q", "$pwd/snippet.py"]
r:
filename: snippet.R
commands:
- ["Rscript", "$pwd/snippet.R"]
ruby:
filename: snippet.rb
commands:
- ["ruby", "$pwd/snippet.rb"]
rust-script:
filename: snippet.rs
environment:
CARGO_TERM_COLOR: "always"
commands:
- ["rust-script", "--debug", "$pwd/snippet.rs"]
hidden_line_prefix: "# "
rust:
filename: snippet.rs
commands:
- ["rustc", "--crate-name", "presenterm_snippet", "$pwd/snippet.rs", "-o", "$pwd/snippet", "--color", "always"]
- ["$pwd/snippet"]
hidden_line_prefix: "# "
alternative:
rust-script:
filename: snippet.rs
environment:
CARGO_TERM_COLOR: "always"
commands:
- ["rust-script", "--debug", "$pwd/snippet.rs"]
rust-script-pedantic:
filename: snippet.rs
environment:
RUSTFLAGS: "--deny warnings"
CARGO_TERM_COLOR: "always"
commands:
- ["rust-script", "--debug", "$pwd/snippet.rs"]
sh:
filename: script.sh
commands:
- ["sh", "$pwd/script.sh"]
hidden_line_prefix: "/// "
zsh:
filename: script.sh
commands:
- ["zsh", "$pwd/script.sh"]
hidden_line_prefix: "/// "
csharp:
filename: snippet.cs
commands:
- ["dotnet-script", "$pwd/snippet.cs"]
hidden_line_prefix: "/// "
fsharp:
filename: snippet.fsx
commands:
- ["dotnet", "fsi", "$pwd/snippet.fsx"]
hidden_line_prefix: "/// "
|