Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #385341

    Hey!

    I need to display a lot of raw code on our website for examples and stuff.

    Everytime the code contains the <> symbols, the symbols get picked up as html and wont display on the page.

    For example: message <entity> <timestamp> <tags> <message>

    is displayed as just: message

    <entity> <timestamp> <tags> <message> are all gone.

    I am also using the code highlighting plugin, but the issue is identical with or without the plugin.

    I put all my code in “pre” format.

    Thanks in advanced!

    • This topic was modified 9 years, 9 months ago by heinrichvk.
    #385563

    Hey heinrichvk!

    Please try using Code Block element and make sure to check “Escape HTML Code”

    Best regards,
    Yigit

    #385629

    Thank you for your reply.

    The proposed solution does not seems to work the way I want it to.

    I used: message <entity> <timestamp> <tags> <message>

    As the code/text I wanted to show, but only message is visible on the webpage. This is using the code block element and the Escape HTML Code selected.

    Using escaped charters it works correctly:

    metric <entity> <metric> <timestamp> <value> <tags>

    But my code highlighting plugin does not work in this case and the results do not look nice and standardized.

    Is there another solution?

    #386096

    Still cant get this to work properly.

    The issue is only in displaying the < > symbols in the code.

    Using the text block or code block, results are more or less the same, but with code block WP-Syntax refuses to highlight the code.

    This is how I want it to look like http://i.imgur.com/BVHQcs5.png. With proper format, highlighting.

    This is how what I get with the above solution. http://i.imgur.com/kfiHy9i.png

    Is there another, better way to solve this issue, as I want all my code to look like on the first screenshot, and I want to be able to show the < > symbols.

    Thanks in advanced.

    #386654

    Hi!

    Can you send us a link to this plugin?

    Regards,
    Elliott

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.