You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.0 KiB

4 years ago
////
Included in:
- user-manual: Callouts
- quick-ref
////
// tag::b-nonselect[]
----
line of code // <1>
line of code # <2>
line of code ;; <3>
----
<1> A callout behind a line comment for C-style languages.
<2> A callout behind a line comment for Ruby, Python, Perl, etc.
<3> A callout behind a line comment for Clojure.
// end::b-nonselect[]
// tag::source-xml[]
[source,xml]
----
<section>
<title>Section Title</title> <!--1-->
</section>
----
<1> The section title is required.
// end::source-xml[]
// tag::basic[]
[source,ruby]
----
require 'sinatra' <1>
get '/hi' do <2> <3>
"Hello World!"
end
----
<1> Library import
<2> URL mapping
<3> Response block
// end::basic[]
// tag::b-src[]
[source,ruby]
----
require 'sinatra' // <1>
get '/hi' do // <2>
"Hello World!" // <3>
end
----
<1> Library import
<2> URL mapping
<3> HTTP response body
// end::b-src[]
// tag::co-icon[]
= Document Title
:icons: font // <1>
NOTE: Asciidoctor now supports font-based admonition icons, powered by Font Awesome! // <2>
// end::co-icon[]