After mixedmath tweaked something I was able to post a draft on the BLOG. Going well now, the major problem is the giant blocks of computer output I have. On MSE Main, there is an editing option along the top {} for preformatted text and computer code. I'm afraid the blog button called "code" simply does not do the same thing. I want to run the mouse over 20 or 80 lines of output and say "format this all together, keep all lines separate." No luck so far.

Any ideas?

Oh, I made a jpeg of the edit window, you can see the code button:

enter image description here


Wrap your code in <pre></pre> tags in the "Text" tab (instead of "Visual"). For example, writing:

<pre>int main() {
   return 0;

...results in:

int main() {
   return 0;

Interestingly enough, the <code></code> tags seem to auto-magically rearrange themselves to only highlight a single line. The <pre></pre> tags avoid this issue.

  • $\begingroup$ It would have been better if I had known this before submitting the draft for review; still, I can repeat this at the blog room for mixedmath $\endgroup$
    – Will Jagy
    Jul 18 '14 at 1:44
  • $\begingroup$ @WillJagy You can still edit your post even after submitting for review. (At least, you should be able to, if I recall correctly) $\endgroup$
    – apnorton
    Jul 18 '14 at 1:51
  • $\begingroup$ I think you are correct, but the "Save Draft" button has disappeared, so I think it better to leave it be while informing mixedmath of your pre stuff. $\endgroup$
    – Will Jagy
    Jul 18 '14 at 1:53
  • 2
    $\begingroup$ I always use <pre><code> ... </code></pre> on Wordpress... belt with suspenders, but it works. $\endgroup$
    – user147263
    Jul 18 '14 at 6:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .