stevedonovan / gentle-intro

A gentle Rust tutorial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use executable code

hasanAjsf opened this issue · comments

Hi.. well this is not a bug reporting, this is a question and request for assistant.

How you got the you write at .md a:

image

To appear as executable code at the book:

image

What shall I do to write a code like this, I noticed this in many books about rust, but do not know what they call it, and how they do it :)

Thanks

mdbook does it for you magically, so long as you annotate the code block as rust (look at the source).