Escaped code in the new editor

  • Unknown's avatar

    I’m using [code] shortcodes to post some source code snippets on my blog. Theoretically this should be easy: past the code in, wrap it in [code] [/code] and you're done.

    The problem I've found is that when I switch to the new editor (the "switch to the improved posting experience" link) it actually escapes the code. Since code in [code] shortcodes doesn't need to be escaped, it is displayed as is on the post. I end up with stuff like this:

    library("RJSONIO")
    library("RCurl")
    page <- pnum

    What do I need to do to stop the editor from automatically escaping my code?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Of course posting in here, the code is unescaped when it is rendered. It actually looks like this:


    library("RJSONIO")
    library("RCurl")
    page <- pnum

  • Unknown's avatar

    Well I can’t get it to display here earlier. I’ll just add spaces. You get the point:

    library(& quot;RJSONIO& quot;)
    library(& quot;RCurl& quot;)

  • The topic ‘Escaped code in the new editor’ is closed to new replies.