Page 2 of 3

Re: Crayon Syntax Highlighter for Classic editor OR Gutenberg

Posted: Tue Apr 20, 2021 8:50 pm
by rev273
Hi, thank you for your update for PHP 7.4, it works fine.

I have two questions:
1) TinyMCE icon is missing now. If there any chance to fix it? very uncomfortable work without it.
2) My code using tabs indent and in the program it looks flat and alignment correct:
Image
But on website it displayed crookedly
Image
Any idea how to change it?

Thank you.

Re: Crayon Syntax Highlighter for Classic editor OR Gutenberg

Posted: Thu Apr 22, 2021 12:51 pm
by axew3
Not at moment, but i surely will take a look asap!
Sorry for delay on answer, missed!

Re: Crayon Syntax Highlighter for Classic editor OR Gutenberg

Posted: Thu May 06, 2021 12:34 pm
by pbnet
Hello, I'm on WordPress 5.7.1 and PHP v7.4.12.
I've installed the update from: https://www.axew3.com/w3/forums/downloa ... php?id=388 and have the following behavior:
- Visitors accessing my site, can see the correct content displayed by the add-in:

Image

The problem is when adding or editing a new post:
- when adding a new post, the Syntax Highlighter icon is not present, so I don't know how to add the content using the add-in:

Image

- when editing a post that already uses the add-in, the format is not displayed correctly:

Image

Could you please fix this great plugin or give me a hint on what should I do?

Thanks.

Re: Crayon Syntax Highlighter for Classic editor OR Gutenberg

Posted: Sat May 08, 2021 2:10 pm
by axew3
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.

Re: Crayon Syntax Highlighter for Classic editor OR Gutenberg

Posted: Mon May 10, 2021 5:10 am
by pbnet
Thanks a lot.
The workaround is OK.
Any chance you could fix the icon for inserting code?

Thanks.

Re: Crayon Syntax Highlighter for Classic editor OR Gutenberg

Posted: Tue May 11, 2021 7:58 pm
by rev273
pbnet wrote: Mon May 10, 2021 5:10 am Any chance you could fix the icon for inserting code?
I press Ctrl+F5 few times in text editor and this button appears. But after saving it's removed again.