Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 718 Bytes

06_sourcecode.adoc

File metadata and controls

30 lines (22 loc) · 718 Bytes

Source Code

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.
    (try Example.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!

…​