Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter pavcreations

    (@pavcreations)

    Hi Cena,

    Thank you for prompt reply.

    Usually I first copy-paste my code into text editor and turn it to plain text so that no special hidden extra characters are pasted over. The editors I’m using are Visual Studio, CLion and PHPStorm (sometimes PyCharm) but again, I always turn my code into plain text first to eliminate the risk of transferring any weird “hidden” characters. I noticed it started happening after I upgraded to WP 6.2.

    One pattern I found here is that it happens whenever there are <> tags inside the code. For instance

    Dictionary<InputAction, BaseCommand>

    turns into

    Dictionary<inputaction, basecommand="">

    and after that it’s as if SyntaxHighlighter tried to close these tags at the end – and thus the weird

    </basecommand,></basecommand,></inputaction,></inputaction,></actioncommandpair></actioncommandpair>

    tags that appear at the bottom. My hypothesis is that the plugin somehow treats these as standard html / xml tags? If possible please try to paste this line on your side

    Dictionary<InputAction, BaseCommand>

    , select C# as the syntax and see if it’s going to appear on the front page of a blog.

    Kind Regards

Viewing 1 replies (of 1 total)