-
AuthorPosts
-
January 26, 2015 at 11:21 am #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, 11 months ago by heinrichvk.
January 26, 2015 at 4:43 pm #385563Hey heinrichvk!
Please try using Code Block element and make sure to check “Escape HTML Code”
Best regards,
YigitJanuary 26, 2015 at 5:47 pm #385629Thank 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?
January 27, 2015 at 10:20 am #386096Still 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.
January 27, 2015 at 10:38 pm #386654Hi!
Can you send us a link to this plugin?
Regards,
Elliott -
AuthorPosts
- You must be logged in to reply to this topic.