WPIntell

Source evidence

Gutenberg editor

CodeColorer · support · 2018-08-15T17:53:00+00:00

complaintsentiment
mediumseverity
0.8relevance
12replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 22 rows with source links

18.2% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

18 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Chuckie unresolved
Hi Will it work Ok with this new Gutenberg Editor? I am still investigating. There are reports of some issues, and I am in the progress of investigating. Ok, I look forward to your update. The easiest way at to make it work at the moment is to use “shortcode” block, and insert the value in form: [cc lang="php"] $x = "10"; [/cc] Sure. I did several blocks and have email you about issues. Or started questions here. I can’t remember. Yeah, I see them now. Will investigate! Thanks. What I did was use a Custom HTML Block and then within that do something like: <code lang="PHP"> ... </code> It also looks like with the latest Gutenberg Version, inline code seems to work with a normal paragraph block when editing it as HTML: <p>Another paragraph. I am typing more stuff in to get an auto save. Blah, blah. <code inline="true">This is code.</code></p> MarkRH but that won’t have all the syntax hilighting will it? I await resolution from the author. I think it merits a bespoke rendered block for the editor. Any official update? I version 5 is out now. Any update to my queries? Thank you. @ajtruckle Yes, it keeps the syntax highlighting. Screenshot: https://i.imgur.com/fqkDsPi.png Was done with the following code in a normal Gutenberg Paragraph block: <p>This is a normal paragraph block. Following is some inline PHP: <code inline="true" lang="php">print_r($arItems[$itemCount]);</code>and this is normal text after.</p> For blocks of code, I use the Custom HTML Block like I mentioned earlier. The standard “Code” block introduces some of the built-in styling which is unwanted. Anyway, v0.9.16 works fine here in the cases that I use it. I changed all of the blocks to custom HTML blocks and used the <code> approach. Visually the published post looks ok. But it is when I edit the post that it comes up with all those issues again and I have to click the “convert to html” button above each block. Which is annoying.

Comments

12 shown
Dmytro Shteflyuk 2018-08-15T17:54:00+00:00

I am still investigating. There are reports of some issues, and I am in the progress of investigating.

Chuckie 2018-08-15T17:55:00+00:00

Ok, I look forward to your update.

Dmytro Shteflyuk 2018-11-16T20:09:00+00:00

The easiest way at to make it work at the moment is to use “shortcode” block, and insert the value in form: [cc lang="php"] $x = "10"; [/cc]

Chuckie 2018-11-16T21:34:00+00:00

Sure. I did several blocks and have email you about issues. Or started questions here. I can’t remember.

Dmytro Shteflyuk 2018-11-16T23:45:00+00:00

Yeah, I see them now. Will investigate!

Chuckie 2018-11-17T12:14:00+00:00

Thanks.

MarkRH 2018-11-20T12:56:00+00:00

What I did was use a Custom HTML Block and then within that do something like: <code lang="PHP"> ... </code> It also looks like with the latest Gutenberg Version, inline code seems to work with a normal paragraph block when editing it as HTML: <p>Another paragraph. I am typing more stuff in to get an auto save. Blah, blah. <code inline="true">This is code.</code></p>

Chuckie 2018-11-20T14:04:00+00:00

MarkRH but that won’t have all the syntax hilighting will it? I await resolution from the author. I think it merits a bespoke rendered block for the editor.

Chuckie 2018-12-06T22:23:00+00:00

Any official update? I version 5 is out now.

Chuckie 2018-12-17T18:21:00+00:00

Any update to my queries? Thank you.

MarkRH 2018-12-17T23:44:00+00:00

@ajtruckle Yes, it keeps the syntax highlighting. Screenshot: https://i.imgur.com/fqkDsPi.png Was done with the following code in a normal Gutenberg Paragraph block: <p>This is a normal paragraph block. Following is some inline PHP: <code inline="true" lang="php">print_r($arItems[$itemCount]);</code>and this is normal text after.</p> For blocks of code, I use the Custom HTML Block like I mentioned earlier. The standard “Code” block introduces some of the built-in styling which is unwanted. Anyway, v0.9.16 works fine here in the cases that I use it.

Chuckie 2018-12-18T09:47:00+00:00

I changed all of the blocks to custom HTML blocks and used the <code> approach. Visually the published post looks ok. But it is when I edit the post that it comes up with all those issues again and I have to click the “convert to html” button above each block. Which is annoying.