For questions about making code appear correctly in questions, answers and comments.

learn more… | top users | synonyms

-4
votes
1answer
57 views

Add code blocks to alternate image text

I often find the need to post an image in an answer to help summarize my point. I have used these before to demonstrate things such as CSS properties, as shown in this answer. I added the code that ...
0
votes
0answers
33 views

Formatting for Comments

Every once in a while, I need to put a bit of code in one of my comments, and to do so, I have to pretend that I'm going to write an answer just to copy the backtick to paste it into my comment (I'm ...
1
vote
2answers
38 views

Backquotes inside backquoted code in comments

Sometimes, when I write answers, I need to include backquotes as part of the code (not as formatting markup). This I can do by using four-spaced indent in the answer. However I can't find a way to ...
1
vote
2answers
54 views

Code block is not changing colour [duplicate]

I was trying to edit this question but I could not edit the code block using the normal Ctrl+K method. The code would not format properly, it stayed clumped together even after I applied Ctrl+K. So I ...
18
votes
0answers
136 views

Don't consider inline code spans as code for the purposes of the quality filter

From my earlier question, Detect attempts at disguising meaningless text as code blocks: Currently, the quality filter only asks that you have a code block before it will accept your submission of ...
2
votes
2answers
56 views

Why don't these equations display as code formatting?

In this question: Formatting a txt file of equations into the same format and then manipulating them for linear algebra calculations in Python The three lines from the 'txt' file with three ...
1
vote
1answer
40 views

left angle bracket in pre tag explodes formatter

I was trying to move the text in between the tables out of the code block in this question, but the preview refused. I have a table that has ID and ParentId, I would like display each ID with its ...
0
votes
0answers
21 views

Why is code pasted in one place formats correctly and pasted toward the bottom does not? [duplicate]

Here's a response I posted on SO. Notice that the code, when placed at the top, formats correctly, but when placed towards the bottom, does not.. (Seems like the formatting code does not sanitize ...
6
votes
1answer
81 views

Do backticks count as code for jsFiddle links?

According to Kevin's answer to Prevent posts with links to jsfiddle and no code: ... if you try and post to Stack Overflow with a link to either jsfiddle.net or ideone.com you'll be required to ...
3
votes
1answer
73 views

Single code formatted space ` ` works in questions and answers but not comments [duplicate]

It's annoying that on stack overflow ` ` works fine in questions and answers but not in comments, to produce a single code-formatted space. Edit a few days later Actually my question appears to be a ...
11
votes
2answers
122 views

Enable tab and shift + tab for code formatting

After some discussion on this question I decided to make a feature-request (or at least a discussion about it). It would be very nice to be able to use Tab and Shift+Tab to move code blocks (like in ...
1
vote
1answer
79 views

How do I move a code block to the left on SO? [duplicate]

Just wondering: Is there a key-combination for moving code blocks left (inverted tab)? shift+ tab doesn't seem to work.
1
vote
1answer
47 views

Triple backquote for code snippets [duplicate]

I find the 4 space indentation to include code snippets unnecessarily difficult to use. Typically, when you copy and paste some code it requires manually reformatting each line (unless there's some ...
-1
votes
2answers
56 views

What is the proper way to format a posts in Stack Overflow? [duplicate]

I have been using Stack Overflow for quite a while now and have edited lots of post. Each time I edit a post, I end up formatting the code parts by pressing space 4 times so that it formats the codes ...
1
vote
1answer
34 views

Formatting Returned Errors on Stack Overflow Questions

How should one format returned errors or console messages in a question on Stack Overflow? Recently I ran into a PHP question that had an error as a code block: PHP Warning: ...

1 2 3 4 5 23
15 30 50 per page