Skip to content

Commit

Permalink
Use highlightjs for syntax highlighting in Asciidoctor's HTML output
Browse files Browse the repository at this point in the history
Closes gh-21701
  • Loading branch information
wilkinsona committed Jun 4, 2020
1 parent c0f748e commit 24138c1
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ private void configureOptions(AbstractAsciidoctorTask asciidoctorTask) {

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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Andy Wilkinson
:doctype: book
:toc: left
:toclevels: 4
:source-highlighter: prettify
:numbered:
:icons: font
:hide-uri-scheme:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Andy Wilkinson, Scott Frederick
:doctype: book
:toc: left
:toclevels: 4
:source-highlighter: prettify
:numbered:
:icons: font
:hide-uri-scheme:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 24138c1

Please sign in to comment.