Sha256: 1a42de2d0456b72c1e546315159178fa658025f2a24b73a29a67ae95fd10ea35

Contents?: true

Size: 512 Bytes

Versions: 7

Compression:

Stored size: 512 Bytes

Contents

// .source-pygments
// Demonstration of source highlighting with pygments
// :include: //div[@class="slides"]
// :header_footer:
= Source Code with Pygments
:icons: font
:source-highlighter: pygments
:pygments-style: paraiso-dark

== Requirements

WARNING: This will not work from Asciidoctor.js

[NOTE]
====
For this to work. You need to add:

    gem 'pygments.rb'

to your `Gemfile` and re-run:

    bundle install
====

== Use the Source

[source, rust]
----
fn main() {
    println!("Hello World!");
}
----

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
asciidoctor-revealjs-3.1.0 examples/source-pygments.adoc
asciidoctor-revealjs-3.0.0 examples/source-pygments.adoc
asciidoctor-revealjs-3.0.0.pre.rc1 examples/source-pygments.adoc
asciidoctor-revealjs-2.0.1 examples/source-pygments.adoc
asciidoctor-revealjs-2.0.0 examples/source-pygments.adoc
asciidoctor-revealjs-1.1.3 examples/source-pygments.adoc
asciidoctor-revealjs-1.1.1 examples/source-pygments.adoc