Description
Implement the [bw_geshi] shortcode for source code syntax highlighting
Usage
$string = oik_geshi( $atts, $content, $tag );Parameters
- $atts
- ( array ) optional – shortcode parameters
- $content
- ( string ) optional – code to syntax highlight
- $tag
- ( string ) optional –
Returns
string syntax highlighted contentSource
File name: oik-css/shortcodes/oik-geshi.phpLines:
1 to 17 of 17
function oik_geshi( $atts=null, $content=null, $tag=null ) { if ( !$content ) { oik_require_lib( 'class-oik-attachment-contents'); if ( class_exists( 'Oik_attachment_contents') ) { $oik_attachment_contents=new Oik_attachment_contents(); $content=$oik_attachment_contents->get_content( $atts, $content ); } else { e( "Oik_attachment_contents not loaded"); } } if ( $content ) { oik_require( "shortcodes/oik-css.php", "oik-css" ); bw_format_content( $atts, $content ); } $ret = bw_ret(); return $ret; }View on GitHub View on Trac
Invoked by
Calls
1 to 2 of 2
