Skip to content
Trying to make crayon-syntax-highlighter work with PHP 7.3 (Added few bug fixes)
PHP CSS JavaScript Other
Branch: 2.8.6
Clone or download
Pull request Compare This branch is 5 commits ahead of aramk:master.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.settings settings Nov 25, 2012
css Optimize images Oct 13, 2016
fonts Add source code pro Dec 21, 2015
js Minified latest js. Aug 26, 2015
screenshots Better organized snapshots and added second snapshot to Aug 4, 2016
themes Add plain white theme Apr 9, 2016
trans Cleanup Jan 10, 2016
util Remove extra argument May 7, 2016
.buildpath added eclipse project files to the repo Jun 25, 2012
.gitignore Fixed table style incompatibility with WP 2015 theme. Jan 25, 2015
.gitmodules Update git submodule. Apr 13, 2015
.project added eclipse project files to the repo Jun 25, 2012
crayon-syntax-highlighter.sublime-project Fixed a bug causing sample code to give an error due to new restricti… Apr 25, 2015
crayon_fonts.class.php Cleanup and more descriptive errors. Loaded settings when needed in i… May 4, 2014
crayon_formatter.class.php Version 2.8.6 Jan 31, 2019
crayon_highlighter.class.php Rename MIXED Sep 27, 2016
crayon_langs.class.php Version 2.8.6 Jan 31, 2019
crayon_parser.class.php * Reduced loading times by lazily loading Tag Editor content, which w… May 10, 2014
crayon_resource.class.php remove static call of non-static method Nov 10, 2015
crayon_settings.class.php Fix for : Fatal error: Uncaught Error: Undefined class constant 'SHOW… Mar 1, 2019
crayon_settings_wp.class.php Rename MIXED Sep 27, 2016
crayon_themes.class.php Cleanup and more descriptive errors. Loaded settings when needed in i… May 4, 2014
crayon_wp.class.php version change Feb 15, 2019
global.php fix plugin release date Nov 9, 2015
license.txt Added GPLv3 properly. Jul 13, 2016 Update Jan 31, 2019
readme.txt Version 2.8.6 Jan 31, 2019

Crayon Syntax Highlighter

Supports multiple languages, themes, fonts, highlighting from a URL, local file or post text.

Hi folks -

On we are using Crayon Syntax Highlighter Plugin. It's been working perfectly fine without any issue until we upgraded to PHP 7.3 last week.

Site wasn't even loading because of FATAL error:

PHP Fatal error: Uncaught Error: Call to a member function id() on array in \wp-content\plugins\crayon-syntax-highlighter\crayon_formatter.class.php:36

Also, there were around 5 Warning it was throwing.

PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in G:\w\w\b\wp-content\plugins\crayon-syntax-highlighter\crayon_langs.class.php on line 340

This is our attempt to fix these PHP 7.3 issues. Feel free to download copy and use at your end.

If you want to contribute then feel free to fork repostiroy

Regards, App Shah

You can’t perform that action at this time.