Sha256: 784e0b09587714e86dbeab44130adc3fe6ea7118e21d5f825aef8b5ef26e73c3

Contents?: true

Size: 701 Bytes

Versions: 10

Compression:

Stored size: 701 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!");
}
----

== Pygments Features

[source,ruby,highlight="1..2,4..5"]
----
ORDERED_LIST_KEYWORDS = {
  'loweralpha' => 'a',
  'lowerroman' => 'i',
  'upperalpha' => 'A',
  'upperroman' => 'I',
}
----

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
asciidoctor-revealjs-5.1.0 examples/source-pygments.adoc
asciidoctor-revealjs-5.0.1 examples/source-pygments.adoc
asciidoctor-revealjs-5.0.0.rc1 examples/source-pygments.adoc
asciidoctor-revealjs-4.1.0 examples/source-pygments.adoc
asciidoctor-revealjs-4.1.0.rc5 examples/source-pygments.adoc
asciidoctor-revealjs-4.1.0.rc4 examples/source-pygments.adoc
asciidoctor-revealjs-4.1.0.rc3 examples/source-pygments.adoc
asciidoctor-revealjs-4.1.0.rc2 examples/source-pygments.adoc
asciidoctor-revealjs-4.0.1 examples/source-pygments.adoc
asciidoctor-revealjs-4.0.0 examples/source-pygments.adoc