• Resolved charley-kyd

    (@charley-kyd)


    I want to post examples of indented, single-spaced code. I’ve tried inserting non-breaking spaces in the HTML, but WordPress strips them out. I’ve tried using <div style=”padding-left: 20px>, but it’s a hassle to do and vertical spacing becomes a problem.

    What’s the easiest way to display indented, single-spaced code?

Viewing 3 replies - 1 through 3 (of 3 total)
  • If using the HTML tab:

    <pre><code>
    [ code stuff ]
    </code></pre>
    Thread Starter charley-kyd

    (@charley-kyd)

    Thanks!

    I’ve never had any problems using WordPress up to 2.8 and TinyMCE-Advanced up to 3.2.4. In WordPress 2.9, single line breaks, whether entered as a shift-enter in Visual or HTML mode or as
    in HTML mode are stripped out. I thought at first it was TinyMCE-Advanced 3.2.7, but it breaks whether or not this is activated.

    Why does WordPress think it knows better than I how I want my HTML to look? It’s getting worse than Microsoft in this regard.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Leading spaces?’ is closed to new replies.