Good day.

Is there a solution that allows you to frame a section of code in several languages ​​and highlight it. I tried several plugins - none helped.

I also noticed that wordpress goes crazy if tags

<?php /* random code*/ ?> 

found in the text.

The only plugin that more or less copes, but does not highlight as it should - WP-Syntax. It is possible to specify the language in the attributes of the tag, for example

 <pre lang="php"> 

But, first, when inserting code, you have to insert a lot of these pre-tags, you can get confused, and secondly, it separates each of the tags from the rest of the code, and a very ragged incomprehensible display comes out.

    1 answer 1

    Good day. I use the Crayon Syntax Highlighter plugin on my site. I like it very much and it is very convenient.