[sourcecode] tag not working properly after I embed an image? What gives?

  • Author
    Posts
  • #1091949

    connerpharmd
    Member

    I created a post yesterday and added some R code examples using the [sourcecode] tag (which usually produces a nice visual representation of my R code); however, in this instance, instead of converting the text to a nice looking code example, the site does not handle the tag properly and just displays the tag: “[sourcecode]” and then “[\sourcecode]”. To see what I mean, I’ve posted a link to the blog post in question…. what gives?

    Forbes Graph Makeover Challenge ggplot2 style

    The blog I need help with is failuretoconverge.com.

    #1092113

    justpi
    Member

    The tag isn’t working because you’ve typed a space between the opening bracket and the word.
    And ideally the tag should be:
    [sourcecode language="r"]

    #1092211

    connerpharmd
    Member

    beauty! *Many, many* thanks justpi!!!

    #1092331

    lizkhoo
    Member

    I’m having trouble getting the [sourcecode] wrapper to work, too. No extra spaces within the brackets as far as I can tell — see my post here:

    http://itp.nyu.edu/~ek1669/blog/?p=442

    It is Processing code and I was trying to display it as Java. Any ideas on what I can do to fix this?

The topic ‘[sourcecode] tag not working properly after I embed an image? What gives?’ is closed to new replies.