2

So I'm using AnchorCMS and using Google code prettify. All languages but HTML work. I've asked this before and I was told to use &lt; and &gt; and so fourth. So I used it, but when I save the post its rendered back into HTML, so the HTML which I'm trying to display doesn't show. Here's what I'm talking about. That's when I try displauing <!DOCTYPE html> and here's what it should look like with the code highlighting. Is there a way I can disable markdown maybe on certain posts?

  • When I go to [the html link](http://colourity.com/posts/html-stuff) and 'inspect element', there is nothing in the `` block. But when I add formatted HTML betweeon the `` blocks (using my browser tools), it shows up. Can you post what you are trying to insert into the code block? Are you using `<`, `>` or `<` and `>`? – adilapapaya Apr 13 '14 at 19:50
  • I'm using `<` and `>`, but when I save the post its turns into `<` and `>` @adilapapaya – Idris Apr 13 '14 at 21:11
  • one thing that's just odd to me is that it's not even syntax highlighting the php or css code but rather just printing it our like a regular code block. I'm wondering if there's an error in the way you're applying it. Maybe try removing the `class='lang-html'` from the `code` blocks and just using straight-up `` to see if it shows up? – adilapapaya Apr 13 '14 at 22:41
  • Just got rid of it. But it still doesn't show @adilapapaya –  Apr 13 '14 at 23:00
  • hmm, ok one more thing you can try is to add html markup to a php code block. E.g. add a `
    something something
    ` to one of the php code blocks at http://colourity.com/posts/arrays-in-php and see if it shows up. It does when I do it from the browser but not when you load it directly into the html so I think the script must be messing up somewhere. I'm just not sure where.
    – adilapapaya Apr 14 '14 at 01:54
  • The block still shows, but the text under it gets smaller. And when I try the page i'm having issues with, nothing changes. @adilapapaya –  Apr 14 '14 at 02:02

0 Answers0