lnnrtwttkhn / version-control-book

Source code for the Version Control Book, a guide to Git for scientists
https://lennartwittkuhn.com/version-control-book/
Creative Commons Attribution Share Alike 4.0 International
7 stars 2 forks source link

add "filename" option to code chunks #168

Open lnnrtwttkhn opened 4 months ago

lnnrtwttkhn commented 4 months ago

we could leverage the filename="Bla" option of code chunks to add additional instructions, for example differentiating between code than can be copied and modified and output:

```{bash filename="Code"}
git status
On branch main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean
lnnrtwttkhn commented 4 months ago

see example in 451d5a6

konradpa commented 1 month ago

This is still not added everywhere in the book