summaryrefslogtreecommitdiff
path: root/docs/modules/syntax-highlighting
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2020-11-30 18:21:31 -0700
committerSarah White <graphitefriction@gmail.com>2020-12-08 14:32:53 -0700
commitb5af8e2d8d66d24d9ac03d2bbfac66c74872ac78 (patch)
tree508c211abefab84e53530fe36549afdc6195c9df /docs/modules/syntax-highlighting
parent5f79e05fb9cc115e897a569de2eecbf35f962d33 (diff)
switch fenced code blocks to AsciiDoc source blocks and always set language
Diffstat (limited to 'docs/modules/syntax-highlighting')
-rw-r--r--docs/modules/syntax-highlighting/pages/coderay.adoc4
-rw-r--r--docs/modules/syntax-highlighting/pages/highlightjs.adoc4
-rw-r--r--docs/modules/syntax-highlighting/pages/index.adoc2
-rw-r--r--docs/modules/syntax-highlighting/pages/pygments.adoc4
-rw-r--r--docs/modules/syntax-highlighting/pages/rouge.adoc4
5 files changed, 9 insertions, 9 deletions
diff --git a/docs/modules/syntax-highlighting/pages/coderay.adoc b/docs/modules/syntax-highlighting/pages/coderay.adoc
index c7b035a9..1eba3525 100644
--- a/docs/modules/syntax-highlighting/pages/coderay.adoc
+++ b/docs/modules/syntax-highlighting/pages/coderay.adoc
@@ -60,7 +60,7 @@ Install using dnf (Fedora-based systems)::
Once you've installed the RubyGem, assign the `coderay` value to the `source-highlighter` attribute in the document header to activate it.
-[source]
+[source,asciidoc]
----
:source-highlighter: coderay
----
@@ -81,7 +81,7 @@ If line wrapping is enabled on preformatted blocks (i.e., `prewrap`), and you wa
Default: `table`.
.Customizing a source block with CodeRay line numbers
-[source]
+[source,asciidoc]
....
:source-highlighter: coderay
:coderay-linenums-mode: inline
diff --git a/docs/modules/syntax-highlighting/pages/highlightjs.adoc b/docs/modules/syntax-highlighting/pages/highlightjs.adoc
index ab9c2fc3..c1f95543 100644
--- a/docs/modules/syntax-highlighting/pages/highlightjs.adoc
+++ b/docs/modules/syntax-highlighting/pages/highlightjs.adoc
@@ -9,7 +9,7 @@
To activate highlight.js, add the following attribute entry to the header of your AsciiDoc file:
-[source]
+[source,asciidoc]
----
:source-highlighter: highlight.js
----
@@ -25,7 +25,7 @@ Separate each language by a comma followed by an optional space.
The common highlight.js bundle does not include support for Rust and Swift.
Let's set the `highlightjs-languages` attribute so the HTML converter loads support for them into the HTML page.
-[source]
+[source,asciidoc]
----
:source-highlighter: highlight.js
:highlightjs-languages: rust, swift
diff --git a/docs/modules/syntax-highlighting/pages/index.adoc b/docs/modules/syntax-highlighting/pages/index.adoc
index 153e0907..ad858d1f 100644
--- a/docs/modules/syntax-highlighting/pages/index.adoc
+++ b/docs/modules/syntax-highlighting/pages/index.adoc
@@ -3,7 +3,7 @@
AsciiDoc defines a style of listing block known as a source block for adding a source code listing to a document that's intended to be colorized by a syntax highlighter.
Here's a simple example of a source block:
-[source]
+[source,asciidoc]
....
[source,ruby]
----
diff --git a/docs/modules/syntax-highlighting/pages/pygments.adoc b/docs/modules/syntax-highlighting/pages/pygments.adoc
index a049b690..6efa59b6 100644
--- a/docs/modules/syntax-highlighting/pages/pygments.adoc
+++ b/docs/modules/syntax-highlighting/pages/pygments.adoc
@@ -32,7 +32,7 @@ $ gem install pygments.rb # <.>
Once you've installed these libraries, assign `pygments` to the `source-highlighter` attribute in your document's header.
-[source]
+[source,asciidoc]
----
:source-highlighter: pygments
----
@@ -59,7 +59,7 @@ If line wrapping is enabled on preformatted blocks (i.e., `prewrap`), and you wa
Default: `table`.
.Customizing a source block with Pygments attributes
-[source]
+[source,asciidoc]
....
:source-highlighter: pygments
:pygments-style: manni
diff --git a/docs/modules/syntax-highlighting/pages/rouge.adoc b/docs/modules/syntax-highlighting/pages/rouge.adoc
index b6022864..2cb56468 100644
--- a/docs/modules/syntax-highlighting/pages/rouge.adoc
+++ b/docs/modules/syntax-highlighting/pages/rouge.adoc
@@ -26,7 +26,7 @@ Install using `dnf` (Fedora-based systems)::
Once you've installed the RubyGem, assign the `rouge` value to the `source-highlighter` attribute in the document header to activate it.
-[source]
+[source,asciidoc]
----
:source-highlighter: rouge
----
@@ -51,7 +51,7 @@ Controls the color theme used to for highlighting.
You can find the list of themes in the {url-rouge-repo}[Rouge code repository^].
.Customizing a source block with Rouge line numbers
-[source]
+[source,asciidoc]
....
:source-highlighter: rouge