Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m wondering this too. I want to use a shortcode like [product] or something in the code, but crayon doesn’t recognize the shortcode. Did you ever find a solution to this?

    I’m also looking for a solution. I’ve tried using the following (and some combinations as well):

    [plain][myshortcode][/plain] inside the main pre
    [html][myshortcode][/html] inside the main pre
    <code> and a nested <pre>
    myshortcode & other escape methods
    highlight="false" attribute inside a nested pre & a code
    crayon="false" attribute inside a nested pre & a code
    ticking/unticking show_mixed

    As you can see, I’ve tried a mixed bag in desperation. I really just want to highlight a single line of php code with a very simple shortcode (just shows the current year) inside it like:

    <?php somefunction('[myshortcode]'); ?>

    so the visitor sees
    <?php somefunction('2014'); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode within Craton Code’ is closed to new replies.