diff --git a/examples/code.md b/examples/code.md index 3cb9e15..45101e9 100644 --- a/examples/code.md +++ b/examples/code.md @@ -6,13 +6,14 @@ theme: background: false --- -# Code styling +Code styling +=== This presentation shows how to: -- Left-align code blocks. -- Have code blocks without background. -- Execute code snippets. +* Left-align code blocks. +* Have code blocks without background. +* Execute code snippets. ```rust pub struct Greeter { @@ -34,11 +35,10 @@ fn main() { } ``` - - -# Column layouts +Column layouts +=== The same code as the one before but split into two columns to split the API definition with its usage: @@ -76,11 +76,10 @@ fn main() { } ``` - - -# Snippet execution +Snippet execution +=== Run code snippets from the presentation and display their output dynamically. @@ -91,11 +90,10 @@ for i in range(0, 5): time.sleep(0.5) ``` - - -# Snippet execution - `stderr` +Snippet execution - `stderr` +=== Output from `stderr` will also be shown as output. @@ -108,5 +106,3 @@ echo "This is a successful command again" sleep 0.5 man # Missing argument ``` - -