The interface
keyword is not being highlighted. Even though the code block is recognized to be Java, the interface
keyword is marked up by Prettify to be a plaintext.
public interface YUNoHighlightMe {
void someMethod();
}
Examples from SO:
- https://stackoverflow.com/q/11279236/1273080
- https://stackoverflow.com/a/9802513/1273080
- https://stackoverflow.com/a/9802555/1273080
- Java - Interface, instantiating an interface?
- https://stackoverflow.com/a/4540929/1273080
Edit:
After a comment suggesting to test it out locally with Prettify, I did. The code used (+ latest downloadable Prettify):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link href="prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="prettify.js"></script>
</head>
<body onload="prettyPrint()">
<pre class="prettyprint lang-java">public interface YUNoHighlightMe {
void someMethod();
}</pre>
</body>
</html>
This confirms the Prettify bug as it does not highlight the keyword.
The interesting part is that if I omit the lang-java
language hint, it works well and the word gets highlighted.
throw new NamingConventionViolationException("yUNoHighlightMe");