Cannot format javadoc html with google-code-prettify lib

时间:2019-02-18 00:31:11

标签: javascript html css google-code-prettify

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 个答案:

没有答案