All Questions
Tagged with code-formatting design
39
questions
9
votes
0
answers
159
views
Colors of code-formatted text in comment help is difficult to read
The new color scheme on the collapsible help section when adding a comment is very difficult to read for the highlighted sections. The new darker highlight does not have enough contrast with the black ...
3
votes
0
answers
60
views
Code background can overflow comments [duplicate]
Look at this:
I think that overflow is due to the following CSS rule:
code {
white-space: pre-wrap;
}
Changing it to the following seems to fix the issue:
code {
white-space: break-spaces;
}
...
3
votes
1
answer
82
views
Code highlighting and image placement breaks despite correct syntax
Signal Processing answer, normal vs preview:
It's only toward the bottom of the post, yet it doesn't happen toward bottom of a much longer post. I confirmed it's also reproduced only with the ...
3
votes
1
answer
81
views
How can I change the Markdown of a post that was created using the "Ask Wizard"? It's formatted using 'heading' formatting
Take a look at this (badly asked) question: When I try to implement the project it fails and I get this error
I tried to change the Markdown of the question since the text is enlarged and in bold:
...
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.
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.
...
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 ...
11
votes
0
answers
97
views
Please have same background color for indented code and inline code
In this answer I included both indented code, and an inline codeblock. (Yes you may blame me for abusing code make-up for something that isn't technically code)
They both have a different shade of ...
317
votes
38
answers
58k
views
Goodbye, Prettify. Hello highlight.js! Swapping out our Syntax Highlighter
Update 2020-09-24
This is now live network-wide.
Update
This is now live on Meta Stack Exchange and Meta Stack Overflow. Any bugs and feedback can be posted here as an answer.
I’m Ben and I’m a dev ...
25
votes
0
answers
266
views
Please remove the horizontal whitespace in the left part of code blocks
With the new post formatting there's extra horizontal whitespace at the left of code blocks (not to be confused with the increased line height).
Before the new formatting:
Now (red circle shows the ...
114
votes
2
answers
2k
views
Request for a possibility to adjust the spacing between lines
Update: The line-height in code blocks is almost back to what it was before (it was 1.3 but is now 1.30769231) and the spacing between lines in regular text is now at 1.5 (it was 1.3 before the change)...
4
votes
0
answers
63
views
Appearance of numbers for an ordered list element starting with a code block
These:
1. ```
foo
bar
baz
bad
```
2. foo
bar
baz
bad
Render as:
foo
bar
baz
bad
foo
bar
baz
bad
Screenshot:
I am pretty sure the list numbers were aligned ...
3
votes
0
answers
43
views
The code after crossing the number of lines limit is masked
I noticed that in the Stack Exchange Android app, when the posted code crosses the normal limit of number of lines to be shown, the rest of the code gets masked with white color rather than hiding the ...
5
votes
1
answer
273
views
Display issue of three-backticks formatted code
I came across an answer on Stack Overflow whose code is formatted with triple backticks (AKA CommonMark / GitHub style / ```), that layouts weirdly:
When I edit the question, the preview looks ...
-4
votes
1
answer
291
views
Labels atop code blocks
I'm sure this is an accident, but I've recently found out that you can "label" code blocks in a really nice way by using inline code in a level 4 (####) header:
#### `Main.hs`
```haskell
module Main ...