Static site generator
Introduction
Starting out
Building blocks
References
Deployments
Templating engine
Code blocks
You can display code blocks in your markdown files using the standard markdown syntax for code blocks.
To style the code block and highlight the syntax to your liking, use your own CSS styles.
Alternatively, if you like how code is highlighted in this documentation, you can use the styles we provide in the poet-template-docs template repository and get results similar to the example below:
fn main() {
println!("Hello, Poet!");
}