Highlighting shortcodes not working
-
Hello there.
I’m using this plugin on a Divi website and I need to showcase some code that also includes a Divi section shortcode. The problem is that, whatever mode I use (PHP, XML, with or without HTMLScript), the shortcode is not displayed as highlight code, but it’s picked up by Divi and rendered as internal shortcode. So, while Divi’s builder is shortcodes based, if I try to showcase a function like
... return do_shortcode('[et_pb_section global_module="'.$id.'"][/et_pb_section]'); ...
then it will be displayed until the shortcode begins and then an actual section is included inside the page and everything messes up.
Is there a way of including shortcodes inside APH Syntax Highlighter and NOT be picked by the theme or any other plugin that works with shortcodes?
Thank you.
- The topic ‘Highlighting shortcodes not working’ is closed to new replies.