Sha256: 9c8d27d6c8df709eed8f8192657f774c95a28dd12b7bff4fd8654ea9efe6419d

Contents?: true

Size: 1.15 KB

Versions: 19

Compression:

Stored size: 1.15 KB

Contents

:source-highlighter: coderay

== Asciidoc(tor) Reference

- http://asciidoctor.org/docs/user-manual/#syntax-highlighting[Source Highlighting]
- http://asciidoctor.org/docs/user-manual/#passthrough-macros[Pass through Macros]

== Syntax HighLighter

=== Text

Text explaining where the code is located in *+++<span style="font-family: 'courier new', courier, monospace;">/directory structure</span>+++*

Instructions of what the code is doing

[source, txt, indent=0, subs="macros"]
+++[directory structure]#+++ pass:quotes[*command syntax*]

Remark : Asciidoctor substitution with macros is used

=== Java
[source,java]
----
public class HelloWorld {

    public static void main(String[] args) {
        System.out.println(">> Hello Hyla Students");
    }

}
----

Include Java code using snippet tag and include block macro

[source,java]
----
include::source/HelloWorld.java[tag=snippetHello]
----

=== XML
[source,xml]
----
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
----

=== Ruby

[source,ruby]
----
require 'asciidoctor'

puts Asciidoctor.render_file('sample.adoc', :header_footer => true)
----


Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
hyla-1.0.9 lib/templates/sample/asciidoc_source.adoc
hyla-1.0.9.pre.3 lib/templates/sample/asciidoc_source.adoc
hyla-1.0.9.pre.2 lib/templates/sample/asciidoc_source.adoc
hyla-1.0.9.pre.1 lib/templates/sample/asciidoc_source.adoc
hyla-1.0.8 lib/templates/sample/asciidoc_source.adoc
hyla-1.0.7 lib/templates/sample/asciidoc_source.adoc
hyla-1.0.7.pre.9 lib/templates/sample/asciidoc_source.adoc
hyla-1.0.7.pre.8 lib/templates/sample/asciidoc_source.adoc
hyla-1.0.7.pre.7 lib/templates/sample/asciidoc_source.adoc
hyla-1.0.7.pre.6 lib/templates/sample/asciidoc_source.adoc
hyla-1.0.7.pre.5 lib/templates/sample/asciidoc_source.adoc
hyla-1.0.7.pre.3 lib/templates/sample/asciidoc_source.adoc
hyla-1.0.7.pre.2 lib/templates/sample/asciidoc_source.adoc
hyla-1.0.7.pre.1 lib/templates/sample/asciidoc_source.adoc
hyla-1.0.6 lib/templates/sample/asciidoc_source.ad
hyla-1.0.5 lib/templates/sample/asciidoc_source.ad
hyla-1.0.5.pre.1 lib/templates/sample/asciidoc_source.ad
hyla-1.0.4 lib/templates/sample/asciidoc_source.ad
hyla-1.0.3 lib/templates/sample/asciidoc_source.adoc