Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
The JS library used for code highlighting in https://github.com/apache/maven-fluido-skin/blob/master/src/main/resources/js/prettify.js seems to be based on the legacy library
https://github.com/googlearchive/code-prettify (unclear which version). As that is no longer maintained since quite a while we should switch.
One alternative is hightlight.js(compare also with https://meta.stackexchange.com/questions/353983/goodbye-prettify-hello-highlight-js-swapping-out-our-syntax-highlighter).
Attachments
Issue Links
- relates to
-
MSKINS-245 Maven Site 4 will break code highlight of site generated by Markdown
- Closed
- links to
hightlight.js does not come with line number capabilities (https://highlightjs.readthedocs.io/en/latest/line-numbers.html) but there are plugins for that (e.g. https://github.com/wcoder/highlightjs-line-numbers.js).