How to filter PHP opener?
How to filter PHP opener?
How to filter PHP opener?
I had a similar issue with WP-Syntax and solved by applying the_content filter in the Shortcode returned values. It would go like: function my_shortcode( $atts, $content ) { $code=”<pre class=”lang:r”>” . $file . ‘</pre>’; return apply_filters ( ‘the_content’, $code ); }
Problem with the position of SyntaxHighlighter Evolved javascript
You add the shortcode (and all shortcodes) in visual mode, not in text mode.
WordPress 5.1 and Syntax highlighter, problem with HTML encoded special characters
I tested it on my site and it worked fine. Try adding this to your css file, or in the syntax highlighter advanced settings where it says additional classes: .syntaxhighlighter td { overflow-x:scroll !important; }
you can use the [sourcecode] shortcode on WordPress.com which is built in for you, no need to install or configure anything. For example to get this results : just wrap your code in these tags: [sourcecode language=”css”] your code here [/sourcecode] you can see a list of supported languages and a few other parameters you … Read more
What you need is Shortcode API. Just add your own shortcode (put this into your themes functions.php or as a plugin): function my_shortcode_xcode_handler( $atts, $content = null ) { return ‘<pre class=”lang:default decode:true “>’. do_shortcode($content) .'</pre>’; } add_shortcode( ‘xcode’, ‘my_shortcode_xcode_handler’ );
It turns out that this well maintained plugin is a drop in replacement. I installed this and all is well again. It’s called syntax highlighter evolved. https://wordpress.org/plugins/syntaxhighlighter/
code highiglight not working comment