WordPress.org

Support

Support » Plugins and Hacks » Pastacode » Problem with inserting Python Code

Problem with inserting Python Code

  • NuckyThomson

    @nuckythomson

    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/

Viewing 1 replies (of 1 total)
  • NuckyThomson

    @nuckythomson

    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!!

Viewing 1 replies (of 1 total)
  • The topic ‘Problem with inserting Python Code’ is closed to new replies.
Skip to toolbar