RFR: 8348282: Add option for syntax highlighting in javadoc snippets

Erik Joelsson erikj at openjdk.org
Fri Apr 4 07:05:48 UTC 2025


On Thu, 3 Apr 2025 14:48:58 GMT, Hannes Wallnöfer <hannesw at openjdk.org> wrote:

> Please review a change to add a `javadoc` option to enable syntax highlighting for code fragments in snippets and  `<pre><code>` tags. The new `--syntax-highlight` option uses the [highlight.js] JavaScript library and supports Java, Properties, XML, HTML and JSON. The option is enabled in the JDK API docs target, [generated output is available here](https://cr.openjdk.org/~hannesw/8348282/api.00/index.html).

Build change looks trivially good.

-------------

Marked as reviewed by erikj (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/24417#pullrequestreview-2741999660


More information about the build-dev mailing list