load_pjsh = false; } private function decide_load_prism() { if ( strstr( get_post()->post_content, '

AH Code Highlighter


It looks like your theme modifies<pre> and/or <code> tags. It could interfere with Prism and result in visual bugs.
Please edit your theme and comment out or remove the concerned lines.

load_pjsh ) { echo ''; } } public function add_admin_script() { echo ''; echo ''; } public function add_mce_button( $mce_buttons ) { array_push($mce_buttons, 'prism'); return $mce_buttons; } public function add_mce_plugin( $mce_plugins ) { $mce_plugins['prism'] = plugins_url( 'ah-prism-syntax-highlighter/js/editor-plugin.js' ); return $mce_plugins; } } function add_prism_front_script() { wp_enqueue_script( 'prism', plugin_dir_url( __FILE__ ) . 'js/prism.js', array(), '', true ); } add_action( 'wp_enqueue_scripts', 'add_prism_front_script' );