Problems with the 'sourcecode' tag.

  • Author
    Posts
  • #886018

    Hi guys.
    I wish to share this code on my post: http://pastebin.com/XCdx6Wmx.
    The only way I can embed it from pastebin is using either the ‘script’ or ‘iframe’ tags, but, since this tags don’t work on wordpressdotcom, I use the suggested ‘sourcecode’ tag to share it directly on my post.

    The problem is that it ends up showing only this http://pastebin.com/3k2V2g8K instead of the full code. I made sure I specified the language as HTML, but I didn’t anything wrong… I think xD

    I hope you guys can help me, thanks beforehand :D

    The blog I need help with is knowurpc.wordpress.com.

    #886122

    jackiedana
    Member

    Hello,

    For security reasons, users aren’t allowed to include certain types of code, including Flash, into WordPress.com blogs.

    See http://en.support.wordpress.com/code/ for the types of code that are, and are not, allowed, on WordPress.com blogs.

    If you’re trying to embed that code on your site, therefore, you will not be able to do so. If you simply wish to share the code with others, linking to it as you have here may be a viable option.

    #886337

    So, I can’t… either way :(
    Do you know of a service like pastebin than can embed code on WordPress dot com?
    Thanks.

    #886431

    jackiedana
    Member

    Again, if you want to execute embedded code (like a javascript widget), you may be out of luck.

    However, if you want to *share* code, this should be helpful:
    http://en.support.wordpress.com/code/posting-source-code/

    #886432

    With the sourcecode short code, always put it, and the code you want to display into the HTML tab in the editor.

The topic ‘Problems with the 'sourcecode' tag.’ is closed to new replies.