Questions tagged [code-formatting]
For questions about making code appear correctly in questions, answers and comments.
857
questions
1
vote
0
answers
159
views
Getting a code formatting error when I try to post this question on Stack Overflow
When I try to post this question to Stack Overflow I get the following error:
Your post appears to contain code that is not properly formatted as code. Please indent all code by 4 spaces using the ...
6
votes
0
answers
196
views
Code blocks not using fixed-width font family in Firefox
Code blocks are not rendered using a fixed-width font in Firefox 99 64-bit Ubuntu.
A screenshot of the issue for this post (left is using Chrome, and right is using Firefox):
The issue is caused by ...
6
votes
1
answer
676
views
HTML formatting inside code blocks doesn't work if syntax highlighting is being performed for the block
I have plenty of old answers where I used <pre><code> to format code, with HTML tags such as <b> or <strike> inside such blocks.
That has been broken for some time now, on SO ...
2
votes
0
answers
24
views
Display bug on code block in comments [duplicate]
I noticed this display bug on a comment, where the spaces inside code block is extended well past the comment width, and well beyond the content width as well, bleeding into the margins.
4
votes
1
answer
809
views
Getting code formatting error on Stack Overflow
I don't know what is wrong with my indentation but it's not taking this input from me. I get the error:
Your post appears to contain code that is not properly formatted as code. Please indent all ...
3
votes
0
answers
330
views
The code used in code blocks for Stack Overflow has changed after I installed some new fonts on my system. How can I change it back?
I was installing and testing new fonts in my macOS for use in Visual Studio Code. After I was finished with that, I noticed the font has changed in Stack Overflow code blocks to one I do not prefer.
...
6
votes
1
answer
69
views
Code Markdown bug
I've only seen this happen on music.se, the latest one on Metronome Sound today.
The last code block on a page renders as a blank box.
It looks like a few people have had different attempts to get the ...
4
votes
1
answer
89
views
Code formatting error for no reason
I have Mathematica code that I am trying to post, but to no avail. No matter what I try, I am still getting the code formatting error.
The code is this:
{18 wbcd^3 - 192 w^2 bde^2 + 18 b^3 cde + 144 ...
4
votes
1
answer
1k
views
"Your post appears to contain code that is not properly formatted as code." I have no idea why
I can’t seem to understand what is wrong with the following Markdown content. I keep getting the
Your post appears to contain code that is not properly formatted as
code. Please indent all code by 4 ...
15
votes
1
answer
127
views
Question Summary Text Outside Border
If text is formatted as code in a question and that text is used for the summary on the Questions page it will go past the border of the summary.
Question Link
I'm on Windows 7 64-bit, Chrome Version ...
13
votes
0
answers
488
views
How can I change the fonts of the code snippets in Stack Overflow back to Consolas?
I've installed the Windows Terminal from Microsoft Store and, together with it, the Cascadia Code font family (mono and code) in my system, but I don't use them.
Since then, the snippets on Stack ...
5
votes
2
answers
124
views
How do I handle suggested edits changing code block style?
I'm new to reviewing suggested edits, but one pattern I noticed is that many edits only change the style of code block formatting (mostly from indented to ```-based, example), in a way that does not ...
3
votes
0
answers
35
views
Inline code formatting tries to escape the page! [duplicate]
I was going through the First Questions review queue, and was given this review. I don't think the inline code block should render like that. Even though the OP should have used a code block, I don't ...
6
votes
1
answer
209
views
Yet another error of "Your post appears to contain code that is not properly formatted as code"
I feel like I've found and read through all the relevant posts on Meta about this error, but I still can't resolve this error! I have about 6 equations in double-dollar-signs, several in single-dollar-...
4
votes
0
answers
34
views
Code formatting fails for closing brace on some sites [duplicate]
The following block of code
```
}
```
renders correctly when asking a question on most sites, e.g. Stack Overflow and here on Meta:
}
However, on some sites, like Game Development and Code Review, ...