Quantcast
Channel: [Plugin: Crayon Syntax Highlighter] HOW-TO: Manually extract unformatting code? | WordPress.org
Browsing all 18 articles
Browse latest View live

harikaram on "[Plugin: Crayon Syntax Highlighter] HOW-TO: Manually extract...

Hi, I'm trying to render a list view in which I need at most the first couple lines of a code block, probably unformatted. Is there a way with the Crayon API I can manually extract and process the...

View Article



akarmenia on "[Plugin: Crayon Syntax Highlighter] HOW-TO: Manually extract...

Hi, replace the existing file with this: https://dl.dropbox.com/u/33811812/Crayon/minor/crayon-syntax-highlighter-1.9.8-minor-1.zip Then use this: var_dump(CrayonWP::post_captures()); It returns an...

View Article

harikaram on "[Plugin: Crayon Syntax Highlighter] HOW-TO: Manually extract...

Cool thank you. Just for clarity, I tried this in my template, mimicking CrayonWP->the_posts(): // global $post; $captures = CrayonWP::capture_crayons(get_the_ID(), get_the_content()); $content =...

View Article

akarmenia on "[Plugin: Crayon Syntax Highlighter] HOW-TO: Manually extract...

You shouldn't need to use the internals - post_captures will return the internal $post_queue array. This contains the original code you're looking for.

View Article

harikaram on "[Plugin: Crayon Syntax Highlighter] HOW-TO: Manually extract...

Ok, this is how I've accomplished it in my template file: // Grab the raw code and limit to N lines $NUM_LINES = 3; $tmp = CrayonWP::post_captures(); $c = array_pop($tmp[get_the_ID()]); $lines =...

View Article


harikaram on "[Plugin: Crayon Syntax Highlighter] HOW-TO: Manually extract...

Feature request: A nice public API for outputting code on manually. Just want to reiterate, this is a great plugin :) Thanks.

View Article

akarmenia on "[Plugin: Crayon Syntax Highlighter] HOW-TO: Manually extract...

Thanks, definitely something to consider for the next release.

View Article

harikaram on "[Plugin: Crayon Syntax Highlighter] HOW-TO: Manually extract...

I'm getting this on my single pages now: Fatal error: Undefined class constant 'EXCERPT_STRIP' in D:\wwwserver\club15cc.com\wp-content\plugins\crayon-syntax-highlighter\crayon_wp.class.php Do I need...

View Article


akarmenia on "[Plugin: Crayon Syntax Highlighter] HOW-TO: Manually extract...

No, but you must have "require_once ('crayon_settings_wp.class.php');"

View Article


Reply To: [Plugin: Crayon Syntax Highlighter] HOW-TO: Manually extract...

No, but you must have “require_once (‘crayon_settings_wp.class.php’);”

View Article

Reply To: [Plugin: Crayon Syntax Highlighter] HOW-TO: Manually extract...

I’m getting this on my single pages now: Fatal error: Undefined class constant ‘EXCERPT_STRIP’ in D:\wwwserver\club15cc.com\wp-content\plugins\crayon-syntax-highlighter\crayon_wp.class.php Do I need...

View Article

Reply To: [Plugin: Crayon Syntax Highlighter] HOW-TO: Manually extract...

Thanks, definitely something to consider for the next release.

View Article

Reply To: [Plugin: Crayon Syntax Highlighter] HOW-TO: Manually extract...

Feature request: A nice public API for outputting code on manually. Just want to reiterate, this is a great plugin 🙂 Thanks.

View Article


Reply To: [Plugin: Crayon Syntax Highlighter] HOW-TO: Manually extract...

Ok, this is how I’ve accomplished it in my template file: // Grab the raw code and limit to N lines $NUM_LINES = 3; $tmp = CrayonWP::post_captures(); $c = array_pop($tmp[get_the_ID()]); $lines =...

View Article

Reply To: [Plugin: Crayon Syntax Highlighter] HOW-TO: Manually extract...

You shouldn’t need to use the internals – post_captures will return the internal $post_queue array. This contains the original code you’re looking for.

View Article


Reply To: [Plugin: Crayon Syntax Highlighter] HOW-TO: Manually extract...

Cool thank you. Just for clarity, I tried this in my template, mimicking CrayonWP->the_posts(): // global $post; $captures = CrayonWP::capture_crayons(get_the_ID(), get_the_content()); $content =...

View Article

Reply To: [Plugin: Crayon Syntax Highlighter] HOW-TO: Manually extract...

Hi, replace the existing file with this: https://dl.dropbox.com/u/33811812/Crayon/minor/crayon-syntax-highlighter-1.9.8-minor-1.zip Then use this: var_dump(CrayonWP::post_captures()); It returns an...

View Article


[Plugin: Crayon Syntax Highlighter] HOW-TO: Manually extract unformatting code?

Hi, I’m trying to render a list view in which I need at most the first couple lines of a code block, probably unformatted. Is there a way with the Crayon API I can manually extract and process the...

View Article
Browsing all 18 articles
Browse latest View live




Latest Images