• Resolved imran1coderstea

    (@imran1coderstea)


    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.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Jeff Starr

    (@specialk)

    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

    (@imran1coderstea)

    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 in the 2nd para end (colored in black) and the snippet

    Plugin Author Jeff Starr

    (@specialk)

    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

    (@imran1coderstea)

    Sure, here are the links:

    Code Escape Disable Screenshot
    Code Escape Enable Screenshot

    Plugin Author Jeff Starr

    (@specialk)

    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

    (@imran1coderstea)

    ok, but that block or language-java is generated by Prismatic itself.
    so where can I change it? which setting?

    Plugin Author Jeff Starr

    (@specialk)

    There is no setting at this time. Has to be done manually. Like copy/paste.

    Thread Starter imran1coderstea

    (@imran1coderstea)

    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.