Title: Java Generic syntax hiding
Last modified: December 30, 2020

---

# Java Generic syntax hiding

 *  Resolved [imran1coderstea](https://wordpress.org/support/users/imran1coderstea/)
 * (@imran1coderstea)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/java-generic-syntax-hiding/)
 * Hi,
    First of all, I really loved the plugin, I am slowly moving my EnlighterJS
   snippet to Prismatic.
 * However, I notice that the code snippet in Java ( I am not sure about other langs
   though), is that it hides the code inside <> in the code snippet. I have to add
   space in between those such as < Class > instead of <Class>. I have tried enabling
   the Code to escape with frontend only, it works but then it breaks the content
   inside inline ` `. It replaces &lt and &gt.
 * I have moved almost 60% of my code snippet manually one by one to Prisma🤯. Please
   help.
    -  This topic was modified 5 years, 5 months ago by [imran1coderstea](https://wordpress.org/support/users/imran1coderstea/).
    -  This topic was modified 5 years, 5 months ago by [imran1coderstea](https://wordpress.org/support/users/imran1coderstea/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjava-generic-syntax-hiding%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/java-generic-syntax-hiding/#post-13847171)
 * I’m not sure how to help. The code escaping option should resolve the issue. 
   It may be an incompatibility with existing markup or could be a bug. If you let
   me know an example snippet that I can test locally, I will be glad to investigate.
 *  Thread Starter [imran1coderstea](https://wordpress.org/support/users/imran1coderstea/)
 * (@imran1coderstea)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/java-generic-syntax-hiding/#post-13848014)
 * Thank you for a quick response, Jeff.
 * can you try writing some java code snippet such as
 * List<Integer> list = Arrays;
 * and then in the inline code Map<K,<List<V>>
 * Now if I disable escape,
 * it gives the snippet as
 * List list = Arryas
 * completely ignoring <Integer>
 * and inline code looks fine.
 * but If I enable escape for frontend code snippet looks good however, inline is
   broken with Map<K,List<V>>
 * You can see it in the [HERE](https://www.coderstea.com/post/java/how-to-use-groupingby-collector-in-java-streams/)
   in the 2nd para end (colored in black) and the snippet
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/java-generic-syntax-hiding/#post-13849221)
 * Just so I understand, first I add this:
 * `<pre class="language-java">List<Integer> list = Arrays;</pre>`
 * And then where do I add this:
 * `Map<K,<List<V>>`
 * Not sure what you mean by “and then in the inline code”?
 * Maybe a screenshot would help?
 *  Thread Starter [imran1coderstea](https://wordpress.org/support/users/imran1coderstea/)
 * (@imran1coderstea)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/java-generic-syntax-hiding/#post-13850672)
 * Sure, here are the links:
 * [Code Escape Disable Screenshot](https://ibb.co/q02Vjhy)
    [Code Escape Enable Screenshot](https://ibb.co/x5ctWC9)
    -  This reply was modified 5 years, 5 months ago by [imran1coderstea](https://wordpress.org/support/users/imran1coderstea/).
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/java-generic-syntax-hiding/#post-13850692)
 * Okay thanks. I think I understand what is happening. Try this. Instead of writing:
 * `<pre class="language-java">List<Integer> list = Arrays;</pre>`
 * ..in which case the `<Integer>` will not be escaped/displayed. Instead try writing
   it this way:
 * `<pre><code class="language-java">List<Integer> list = Arrays;</code></pre>`
 * So when the code tags are included, the code will be escaped, and thus the `<
   Integer>` part will be displayed.
 *  Thread Starter [imran1coderstea](https://wordpress.org/support/users/imran1coderstea/)
 * (@imran1coderstea)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/java-generic-syntax-hiding/#post-13850830)
 * ok, but that block or language-java is generated by Prismatic itself.
    so where
   can I change it? which setting?
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/java-generic-syntax-hiding/#post-13850915)
 * There is no setting at this time. Has to be done manually. Like copy/paste.
 *  Thread Starter [imran1coderstea](https://wordpress.org/support/users/imran1coderstea/)
 * (@imran1coderstea)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/java-generic-syntax-hiding/#post-13850934)
 * ok, thanks for the help Jeff, really appreciate it.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Java Generic syntax hiding’ is closed to new replies.

 * ![](https://ps.w.org/prismatic/assets/icon-256x256.png?rev=1521267)
 * [Prismatic](https://wordpress.org/plugins/prismatic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/prismatic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/prismatic/)
 * [Active Topics](https://wordpress.org/support/plugin/prismatic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/prismatic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/prismatic/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [imran1coderstea](https://wordpress.org/support/users/imran1coderstea/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/java-generic-syntax-hiding/#post-13850934)
 * Status: resolved