WordPress.org

Ready to get started?Download WordPress

Forums

Pastacode
Problem with inserting Python Code (2 posts)

  1. NuckyThomson
    Member
    Posted 8 months ago #

    Hello,

    First thanks a lot for this plug-in!

    I would like to insert some Python code on my page.
    It's basically working but there is a problem in the end of the code.
    It seems that some lines from the plug-in script are interpreted in the code window, so understood as some Python code.
    I hope to be clear enough.
    You can have a look at my page : http://sobjexurde.net/2013/10/24/neologenerator/
    At the line 51-52 the following code is appearing:

    <p style="text-align: justify;">

    It doesn't belong to my Python code!

    I tried to modify the original script but nothing worked.

    Is it a problem coming from your plug-in or I did something wrong?

    Best regards,

    Nucky Thomson

    http://wordpress.org/plugins/pastacode/

  2. NuckyThomson
    Member
    Posted 8 months ago #

    Okay, I found the problem :
    you need to replace <p style="text-align: justify;"> with <p> (in the end of the code).
    No more bug after this.
    You should implement it in your plug-in, otherwise we need to do this manually each time.

    Thank you very much again for this plug-in, it's amazing!!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.