We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26931
    • 2,314 Posts
    Hi there,

    does anyone know how to apply the <pre> and <code> tags from the TinyMCE (3.2.0.1 - MODx 0.9.6.3) dropdown properly, because right now, when i try to wrap a snippet-call (in order to show it on the front-end) in a <pre>-tag it will be formatted from:

    [!Snippet? ...!]

    to
    <pre><span style="white-space: normal;">[</span>!Snippet? ...!]<br /></pre>


    and <code>-tags don’t work at all (at least right now i can’t reproduce...before it was something with class="Apple-style-span"?)

    thanks, j
      • 26931
      • 2,314 Posts
      okay, seems to be more of a Google Chrome problem...with FF3 on WinXP it’s working - somehow (not perfect) wink
        • 12670
        • 8 Posts
        I gave up on the using the code tag last night after my syntax highlight broke its display in Internet Explorer. I settled for using the pre tag and setting its class to code.

        I wouldn’t use the WYSIWYG editor to add code, chances are it’ll add unnecessary spans and line breaks, edit the html directly for best results.