.pink {
color: pink;
}Everything starts with wrapping a codeblock with .codewindow fenced div. So
becomes
THe file name can be specified by writing the name as plain text inside the codewindow div. So
becomes
Adding a css class to the .codewindow div will add icon if supported. so
becomes
script.R
report.Rmd
script.py
script.js
script.jl
index.qmd
index.html
styles.css
styles.sass
script.sh
main.nf
model.stan
model.inp
query.sql
README.md
_quarto.yml
data.json
.gitignore
deploy.bash
analysis.sas
survey.sps
regress.do
solve.m
kernel.cpp
solver.f90
app.ts
main.rs
server.go
The width argument is natively supported, so the width can be set like so:
becomes
The colors of a single window can be set with the bg, header-bg, tab-bg, tab-active-bg, color and shadow-color arguments:
becomes
The .codewindow-dark class is a preset for dark decks:
To restyle every window in the deck, set the same custom properties in your own stylesheet:
The chrome argument picks the window buttons: mac (the default), windows or none.
A codewindow can hold more than one code block (and text between them); nothing gets dropped. So
becomes
my-script.R
Then some more code:
[1] 0.976132025 0.710818838 0.542753967 0.554178186 0.579513535 0.011229863
[7] 0.421169775 0.477525339 0.202318234 0.032360265 0.008476124 0.236686213
[13] 0.768398353 0.696532841 0.392681850 0.932846806 0.285237339 0.946558364
[19] 0.210533648 0.434508035 0.741290355 0.242610825 0.860283587 0.068906115
[25] 0.237520742 0.222293650 0.967294256 0.297232778 0.528025975 0.340251497
[31] 0.161545125 0.837734780 0.796443426 0.611654332 0.724695000 0.929298192
[37] 0.600192462 0.114420020 0.847621405 0.140601044 0.967164707 0.936878985
Wrap several .editor divs in a .codewindow to get one file tab per editor. Add .active to pick which starts open (the first otherwise), and .fragment to focus the next tab as the slide advances.
becomes (advance the slide to switch tabs)
These divs should work like any other divs. So you can pass in other styles with styles="" and use absolute position
See next slide for examples