Cannot format javadoc html with google-code-prettify lib

151 Views Asked by At

I tried to add styling to a <pre> block using: https://github.com/google/code-prettify

But all I see is this:

enter image description here

I am looking to get the default syntax highlighting.

I put this at the top of the html file:

and then I have a <pre> block that looks like so:

  /**
   * <pre class="prettyprint">
   * new BeanTranslator.Builder()
   *   .translate(
   *     new{@code Translator<String, Integer>}(String.class, Integer.class){
   *      {@literal @}Override
   *       public Integer translate(String instance) {
   *         return Integer.valueOf(instance);
   *       }})
   *   .build();
   * </pre>
   */

I inspected the html and it looks like so:

enter image description here

What I doing wrong?

0

There are 0 best solutions below