Support » Plugin: SyntaxHighlighter Evolved » SyntaxHighlighter Evolved and shortcodes

  • Resolved aldolat


    Hi Viper007Bond,
    thanks for this plugin! 🙂

    On my theme I have some shortcodes active and, if I want to show the sourcecode on a post, WordPress partially executes them.

    For example, a line like this:

    [php][youtube id= width=460 height=372][/php]

    will be at a first moment executed (I see the resulting video) and then the video is replaced by the code that would be generated by the shortcode, i.e.

    <p><object type="application/x-shockwave-flash" data="" height="372" width="460">
    <param name="movie" value="">
    <param name="FlashVars" value="playerMode=embedded">
    <param name="wmode" value="transparent">

    So, the question is: can I post a shortcode — active on my theme — using your plugin? For “shortcode” I mean a line like this:
    [youtube id= width=460 height=372]


Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff


    Halfelf Minion 🚀

    Try “breaking” the shortcode with some wasted HTML tags.

    For example:

    [you<em></em>tube id= width=460 height=372]

    Should display as:

    [youtube id= width=460 height=372]

    Plugin Author Alex Mills


    This also may work:

    [[youtube id= width=460 height=372]]

    It’s a built-in WordPress feature that should work.

    Moderator James Huff


    Halfelf Minion 🚀

    When did they add that? It makes so much more sense. 🙂

    Thank you!

    Plugin Author Alex Mills


    Quite a while back. 🙂

    I believe it only works on single tags though, or something.

    Solved! Thanks to you both! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘SyntaxHighlighter Evolved and shortcodes’ is closed to new replies.