stevedonovan/gentle-intro

How to use executable code

hasanAjsf opened this issue · 1 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).