Use highlightjs for syntax highlighting in Asciidoctor's HTML output

Closes gh-21701
This commit is contained in:
Andy Wilkinson 2020-06-04 20:08:33 +01:00
parent c0f748e143
commit 24138c104c
4 changed files with 1 additions and 3 deletions

View File

@ -138,6 +138,7 @@ class AsciidoctorConventions {
private void configureHtmlOnlyAttributes(AbstractAsciidoctorTask asciidoctorTask) {
Map<String, Object> attributes = new HashMap<>();
attributes.put("source-highlighter", "highlightjs");
attributes.put("highlightjsdir", "js/highlight");
attributes.put("highlightjs-theme", "github");
attributes.put("linkcss", true);

View File

@ -3,7 +3,6 @@ Andy Wilkinson
:doctype: book
:toc: left
:toclevels: 4
:source-highlighter: prettify
:numbered:
:icons: font
:hide-uri-scheme:

View File

@ -3,7 +3,6 @@ Andy Wilkinson, Scott Frederick
:doctype: book
:toc: left
:toclevels: 4
:source-highlighter: prettify
:numbered:
:icons: font
:hide-uri-scheme:

View File

@ -3,7 +3,6 @@ Stephane Nicoll, Andy Wilkinson, Scott Frederick
:doctype: book
:toc: left
:toclevels: 4
:source-highlighter: prettify
:numbered:
:icons: font
:hide-uri-scheme: