Source Code is king in technical documentation!
require 'sinatra'
get '/hi' do
"Hello World!"
end
Read more about it in the chapter about source blocks and the following chapters.
Try out:
-
A snippet with any language.
-
Give it a title.
-
Find out what callouts are and give them a try.
-
Use an include directive to show source code outside of the document.
(tryExample.java
as a filename in this demo) -
Use tags for the include to get only a part of the file.
-
Adjust indention.
Here you go, just type along!
…