Crayon Syntax Highlighter for Classic editor OR Gutenberg

rev273
Posts: 2
Joined: Tue Apr 20, 2021 8:36 pm

Re: Crayon Syntax Highlighter for Classic editor OR Gutenberg

Post 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.
User avatar
axew3
w3all User
w3all User
Posts: 2689
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Crayon Syntax Highlighter for Classic editor OR Gutenberg

Post by axew3 »

Not at moment, but i surely will take a look asap!
Sorry for delay on answer, missed!
pbnet
Posts: 3
Joined: Thu May 06, 2021 12:17 pm

Re: Crayon Syntax Highlighter for Classic editor OR Gutenberg

Post 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.
User avatar
axew3
w3all User
w3all User
Posts: 2689
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Crayon Syntax Highlighter for Classic editor OR Gutenberg

Post 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.
pbnet
Posts: 3
Joined: Thu May 06, 2021 12:17 pm

Re: Crayon Syntax Highlighter for Classic editor OR Gutenberg

Post by pbnet »

Thanks a lot.
The workaround is OK.
Any chance you could fix the icon for inserting code?

Thanks.
rev273
Posts: 2
Joined: Tue Apr 20, 2021 8:36 pm

Re: Crayon Syntax Highlighter for Classic editor OR Gutenberg

Post 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.
Post Reply