You appear to be a bot. Output may be restricted
Description
Perform GeSHi – Generic Syntax Highlighter processingIf geshi_highlight() is already available then we don't need to load our version After highlighting convert any remaining '[' to [ to stop plugins such as NextGen from expanding the shortcodes. Note: It shouldn't matter if we do this to CSS
Usage
$string = bw_geshi_it( $content, $language );Parameters
- $content
- ( string ) required – the code to be put through GeSHi highlighting
- $language
- ( string ) optional default: CSS – the language to use.
Returns
string the highlighted codeSource
File name: oik-css/shortcodes/oik-css.phpLines:
1 to 12 of 12
function bw_geshi_it( $content, $language="CSS" ) { if ( $language != "none" ) { $geshid = bw_geshi_highlight( $content, $language, null, true ); } else { $content = esc_html( $content ); $geshid = "<pre>" . $content . "</pre>"; } bw_trace2( $geshid ); $geshid = str_replace( "[", "[", $geshid ); $geshid = bw_geshi_colour_contrast( $geshid ); return( $geshid ); }View on GitHub View on Trac
