While Crayon doesn’t support this, it’d be super easy to write some jQuery for it. Give me 20 min.
Ok, download this zip:
https://www.dropbox.com/s/5xymv9us8lc45pj/expand.zip
Put it in your theme directory. Then add these:
wp_enqueue_script( 'expand-script', get_template_directory_uri() . '/expand/expand.js', array('jquery'), '1.0', true );
wp_enqueue_style( 'expand-style', get_template_directory_uri() . '/expand/expand.css' );
I added them in the function twentytwelve_scripts_styles().
This is a neat feature, so I’ll add it to Crayon shortly. Please test this and let me know.
Just noticed that events are broken from this, still some work to do, but the click to expand works fine.
See the latest github:
https://github.com/aramkocharyan/crayon-syntax-highlighter/archive/master.zip
I’ve added it into Crayon. Enable “minimize code” under Code in settings.
Thread Starter
stalks
(@stalks)
Wow and it looks so nice! Thankyou very much! Great project you have here, you’re very talented, thanks.
Much appreciated 🙂 glad you like it!