Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8348282

Add option for syntax highlighting in javadoc snippets

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • 25
    • 25
    • tools
    • None
    • In Review
    • generic
    • generic

      While it is possible to add syntax highlighting using the `--add-script` and `--add-stylesheet` options, we should also provide a simple one-stop option to enable syntax highlighting for code fragments in snippets and `<pre><code>` tags. The option should should support Java and formats commonly used with Java such as Properties, JSON, XML and HTML. The `lang` attribute can be used to determine the language for snippets. For `<pre><code>` tags that do not provide a language attribute auto-detection of language can be used.

            hannesw Hannes Wallnoefer
            hannesw Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: