A source block is a specialization of a listing block with syntax highlighting.
[source,ruby]
----
require 'sinatra'
get '/hi' do
"Hello World!"
end
----
A source block without syntax highlighting.
[,ruby]
----
require 'sinatra'
get '/hi' do
"Hello World!"
end
----
A source block with line numbering.
[source,ruby,linenums]
----
require 'sinatra'
get '/hi' do
"Hello World!"
end
----
Bibliography:
https://docs.asciidoctor.org/
https://asciidoc.org/
Tidak ada komentar:
Posting Komentar