From 7bc25e36723e1a89d6b0212538aa305a4c1c230e Mon Sep 17 00:00:00 2001 From: Tobias Naumann Date: Mon, 2 Jan 2023 15:02:52 +0100 Subject: [PATCH] Add documentation on how to add a highlight.js for additional syntax highlighting support --- guide/src/format/theme/syntax-highlighting.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/guide/src/format/theme/syntax-highlighting.md b/guide/src/format/theme/syntax-highlighting.md index f57540f0..3055b860 100644 --- a/guide/src/format/theme/syntax-highlighting.md +++ b/guide/src/format/theme/syntax-highlighting.md @@ -63,12 +63,17 @@ your own `highlight.js` file: - xml - yaml +If you want to support another set of languages for syntax highlighting, +you can download a "Custom package" from their website, rename the +`highlight.min.js` to `highlight.js` and move it into the `theme` folder of your +book. + ## Custom theme Like the rest of the theme, the files used for syntax highlighting can be overridden with your own. - ***highlight.js*** normally you shouldn't have to overwrite this file, unless - you want to use a more recent version. + you want to use a more recent version or support additional languages. - ***highlight.css*** theme used by highlight.js for syntax highlighting. If you want to use another theme for `highlight.js` download it from their