Hello, into my test, using gutenberg i can use the
code block to add code into and edit it as more like.
Using the old way instead, may it is:
create the post, or enter to edit it, than switch to
code editor mode
and use like this:
Code: Select all
<pre class="lang:default decode:true crayon-selected">... code ...</pre>
Could be also:
Code: Select all
<pre class="lang:php decode:true crayon-selected">... code ...</pre>
Note that, into my test, i had to SAVE THE FILE, in
code editor mode, or it may sometime fail on correctly parse the content (adding some unwanted closing tag).
Into my tests, if it is an old, post, the <> icon appear into the old editor that display.
I will take a look as i can to fix and review all the plugin.
Hello, into my test, using gutenberg i can use the [b]code block[/b] to add code into and edit it as more like.
Using the old way instead, may it is:
create the post, or enter to edit it, than switch to [b]code editor[/b] mode
and use like this:
[code]<pre class="lang:default decode:true crayon-selected">... code ...</pre>[/code]
Could be also:
[code]<pre class="lang:php decode:true crayon-selected">... code ...</pre>[/code]
[b]Note[/b] that, into my test, i had to SAVE THE FILE, in [b]code editor mode[/b], or it may sometime fail on correctly parse the content (adding some unwanted closing tag).
Into my tests, if it is an old, post, the <> icon appear into the old editor that display.
I will take a look as i can to fix and review all the plugin.