I am able to select and copy code, but I’m not able to see what I’ve selected.
]]>Since this plugin has not been updated in years, one alternative to highlighting code is using highlight.js library.
If anyone is interested, I wrote an article on how to add the highlight.js library to the WordPress website.
]]>PHP Fatal error: Uncaught TypeError: implode():
Argument #2 ($array) must be of type ?array, string given
in […]/crayon-syntax-highlighter/util/crayon_util.class.php:73
Solution: you should invert the parameters, from:
$lines = implode($lines, $delimiter);
to:
$lines = implode($delimiter, $lines);
Getting this Error in log.txt
[SYSTEM LOG] ‘Could not add resource: ‘
[SYSTEM LOG] ‘Could not add resource: ‘
[SYSTEM LOG] ‘Could not add resource: ‘
[SYSTEM LOG] ‘Could not add resource: ‘
[SYSTEM LOG] ‘Could not add resource: ‘
[SYSTEM LOG] ‘Could not add resource: ‘
[SYSTEM LOG] ‘Could not add resource: ‘
[SYSTEM LOG] ‘Could not add resource: ‘
[SYSTEM LOG] ‘Could not add resource: ‘
[SYSTEM LOG] ‘Could not add resource: ‘
[SYSTEM LOG] ‘Could not add resource: ‘
[SYSTEM LOG] ‘Could not add resource: ‘
[SYSTEM LOG] ‘Could not add resource: ‘
[SYSTEM LOG] ‘Could not add resource: ‘
[SYSTEM LOG] ‘Could not add resource: ‘
[SYSTEM LOG] ‘Could not add resource: ‘
[SYSTEM LOG] ‘The default resource could not be loaded from \’/langs/\’.’
[SYSTEM LOG] ‘The language with id \’\’ was not loaded and could not be parsed.’
Hi,
I’m new to WordPress and I want to connect my WordPress blog with google webmaster. Can anyone tell me how can do this? What are the steps to do this and is it safe to connect WordPress blog with google webmaster?
Thanks
]]>Hey,
Thanks for your great work keeping this plugin alive.
I’ve just updated to your latest version and the front end is working fice.
However, I use the classic editor and have noticed that the pre code icon is missing from my TinyMCE toolbar.
Is this a common issue, or any idea how to reolve it?
As a workaround I can simply just go into text mode and create the pre, but it’d be great to be able to cimply click on the (currently missing) icon & proceed from there as I’ve done in the past.
Cheers!
]]>Crayon Syntax Highlighter: WordPress 5.6> – Gutenberg (and classical) – Php until 8 compatible
https://www.axew3.com/w3/forums/viewtopic.php?p=4963#p4963
Report any problem and how to reproduce here in reply, if you find out something, so it will be fixed
]]>I am using this plug in from long time approx. 5 year and more.
Suddenly this is not working with my site.
I updated to WordPress 5.6.
I am using GeneratePress theme.
Kindly resolve the problem
]]>i came here for php7.3.0rc1 two years ago, and then i solved the problem. i’m here again today to fix the latest version of php8.0rc3 crayon syntax highlighter. here is an article about it. i hope this plugin can continue to be used in the official version of php8.0 released at the end of the year. i really want someone to help, at least create an insert button on wordpress gutenberg, because i didn’t do it or i had very little time.here is the article page url:
https://webkv.com/2020/11/04/wordpress-code-highlight-plug-in-crayon-syntax-highlighter-error-repair-in-php8-0.shtml
Crayon Syntax Highlighter plugin seem to be not anymore maintained, but i find out more comfortable on some site, where code blocks display in WordPress pages, to maintain this plugin compatible along the time, and do not switch to something else. Here the modified version tested working on: latest WP version and Php 7.3 > and how to use it on Gutenberg
https://www.axew3.com/w3/forums/viewtopic.php?f=10&t=1555
I tried installed so many Syntax Highlighter plugins but no one is working please help if someone know about this problem.
]]>Hi
The plugin (version 2.8.4) is causing a fatal error with PHP7.3 and PHP7.4:
PHP Fatal error: Uncaught Error: Call to a member function id() on array in /usr/home/******.com/web/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php:36
Regards
]]>if (($handle = fopen($csvName, “r”)) !== FALSE ) {
when try to put this line of code it publish,preview,and other button are disable in admin
and i will forces fully try to publish it it will display forbiddan error Like This “Forbidden
You don’t have permission to access /blog/wp-admin/post.php on this server.”
I am using Elementor to create my blogs and I am using the HTML widget to display the code but it doesn’t render correctly. When I paste the code in the classic editor, it works fine. When i add it using the HTML widget, it doesn’t.
Any idea why?
thanks
]]>When Plugin Cryon syntax highligher is activated, post page will show up this error There has been a critical error on your website.
When plugin deactivated wordpress site works fine.
I need this plugin to highlight the powershell codes, please do know how to fix this error.
Logs from plugin:
SYSTEM LOG] ‘Could not add resource: ‘
[SYSTEM LOG] ‘Could not add resource: ‘
[SYSTEM LOG] ‘Could not add resource: ‘
[SYSTEM LOG] ‘Could not add resource: ‘
[SYSTEM LOG] ‘Could not add resource: ‘
[SYSTEM LOG] ‘The default resource could not be loaded from \’/langs/\’.’
[SYSTEM LOG] ‘The language with id \’\’ was not loaded and could not be parsed.’
Thanks
Knev
I created a fork. Refactored, fixed bugs. Added Gutenberg support. See:
https://www.ads-software.com/plugins/urvanov-syntax-highlighter/
You can give me bug fixing pull request here:
https://github.com/urvanov-ru/crayon-syntax-highlighter
I extremely use my forked version in my personal blog https://urvanov.ru, so. I think, I will support the forked version for a long time.
Only one post showing in blog page after installing your plugin. Also the sidebar is showing below the post
]]>Can anyone offer a suggestion on why my AMP pages show the Crayon shortcode instead of the code?
I’m not a php person, so I would appreciate any clue you might have to offer.
Thanks!
]]>Hi the plugin breaks with PHP 7.3
I found that updating the line 340 in file ‘wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php’
to
return preg_replace(‘/[^\w\-+#]/msi’, ”, $id);
fixes the issue
]]>Site now only shows 3 posts after the latest (5.2.1) WordPress update. After an initial quick inspection, it seems the page is not being processed correctly, halting just a short way (i.e. 3) through the 50+ posts and not even getting to the footer.
My site has lots of code snippets, hence why I used Crayon Syntax Highlighter.
I’ve currently had to turn off Crayon Syntax Highlighter, to get the site to render.
I’d prefer NOT to have to go through the site and update the (hundreds of) code snippets, with another syntax highlighter so would appreciate any help you might be able to give.
]]>This is my site link and it stops working after updated latest Version 2.8.4 of crayon syntax plugin. please check.
]]>Hi there,
When I create a new POST with a code then on the front-end I can’t see anything below the code. I mean no footer area, no code showing, why?
For example:
I wrote…
==========================
how to write HTML code
and some code here …
==========================
so when I check the post then I can’t see any footer or code. Just it’s showing only the featured image!
Can you tell me why?
I am using PHP 7.3 also please check these images:
https://prnt.sc/nax9ir
https://prnt.sc/naxa0l
https://prnt.sc/naxaam
Thanks.
]]>Hi,
As using this cool plug-in with AMP for WordPress, it displays code twice in “Classis” mode.
The first occurrence is in textarea while the other displays code with line numbers.
The sample can be seen here.
The desktop version is absolutely fine.
Any fix plz??
Regards!
AZ
See branch “gutenberg-support”. Currently pre-pre-pre-alpha-stage. You can install it right now by manually downloading from GitHub.
Problems:
It looks ugly in the editor, but in page it will be ok.
I’m testing it now. I will add to www.ads-software.com my forked plugin after two or more weeks of testing and fixing.
]]>I updated to WordPress 5.1 yesterday, and am having trouble adding chunks of code to a new post using Crayon. Here’s the behavior I’m seeing:
When I click on the <> icon in the editor, I can access the Crayon interface normally. But when I press Add to actually add the chunk of code to the page, it is added to the page at the very top (just after the post’s title), no matter where my cursor was when I invoked Crayon. I can work around this by ensuring that there is other content in the editor both above and below the insertion point for the chunk of code.
Once I get the code inserted, I don’t get any of the crayon highlighting, bar at the top, color scheme, etc. even though I have all of that selected in the Crayon interface.
Is there something special I need to do to get this to work in WordPress 5.1?
]]>Just heads up folks. If you are using Crayon Syntax Highlighter plugin and upgrading your PHP version to 7.3, then this post is for you.
We noticed some fatal error after upgrading to PHP 7.3.1 on our staging site. We have fixed 2 bugs and it’s running fine on our site now.
If you want to take a look and apply fix then checkout detailed tutorial on it.
More details and download steps: https://crunchify.com/fix-for-crayon-syntax-highlighter-wordpress-plugin-and-php-7-3-fatal-error/
I hope this helps. Feel free to provide your feedback.
]]>Hi, I’m using your plugin very well, many thanks.
but recently I’ve got an issue to use with another plugin called ‘Tabs – Responsive Tabs with Accordions’
I was trying to use your plugin inside of Tab editor, but it doesn’t show up and also doesn’t work at all.
could you please fix that or advise me how to fix it?
I really want to use it inside tabs.
Cheers.
]]>Please add support for visual composer!
thanks
]]>I’m trying to control the load of unnecessary resources in the home using my own code and with this plugin I’m not able. I have tried to do the deregistration as with other plugins in which it has worked for me using the following names:
wp_deregister_script( ‘crayon_js’ );
wp_deregister_script( ‘crayon_util_js’ );
wp_deregister_style( ‘crayon’ );
wp_deregister_style( ‘crayon_style’ );
wp_deregister_style( ‘crayon_global_style’ );
But it ignores it completely and keeps loading the resources in the home page. Can you tell me how to deregistration the resources of this plugin correctly?
]]>Hi
I am using Crayon for highlighting linux commands on my site. I want to highlight certain paragraphs in a different colour to make them stand out for readers to take note of them. I have tried creating a new theme but the plugin doesnt make it available for you to use, rather it requires you to submit it to the developer for use globally. Is there a way to create custom themes/colourings for your own site?
If not, are there any other plugins which I could use for highlighting a paragraph of text?
]]>