All Questions
Tagged with code-formatting status-completed
52
questions
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 ...
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 ...
6
votes
1
answer
145
views
Revisions list Code Block stretches screen
bug
See the revision histories here:
https://stackoverflow.com/posts/46344443/revisions
https://wordpress.stackexchange.com/posts/383658/revisions
The long code blocks page-stretch, as opposed to ...
13
votes
1
answer
593
views
What happened to Groovy syntax highlighting?
On Stack Overflow I have answered many questions about Spock and Geb, two Groovy test frameworks. For years, I have used <!-- language: lang-groovy --> in combination with indentation by four ...
9
votes
1
answer
394
views
Why is double space replaced by single space when enclosed in backticks in comments?
I was trying to put a small line of code in a comment, but I noticed that the multiple spaces in the comment enclosed in backticks(`) were replaced with single ones.
To make it clear, I wrote this as ...
8
votes
1
answer
82
views
An empty code block gets added after an embedded list containing code
If I have a code block which is created using three backticks (```) inside a nested list, a second empty code block sometimes gets added after the list. For example, this markdown code:
1. Testing a ...
1
vote
2
answers
251
views
Add some bottom padding to code snippets
Currently it's impossible to see the bottom line of code snippets because the horizontal scroll bar is positioned over the top of them (post in question):
Please could you add some bottom padding so ...
12
votes
1
answer
137
views
Do not use `code formatting` for the number of days on the Roomba help center page
On the Help Center page about Roomba (the script that automatically deletes 'abandoned' bad questions), code formatting is used a couple of times. While it's OK (at least in my book) to use this for ...
7
votes
1
answer
67
views
Quotation of code on meta sites differs from the main ones
When I add code in quote on main sites it looks fine:
But if I do same on meta, result is significantly differs:
As you can see, only the text is highlighted, not the whole line.
Pictures ...
7
votes
2
answers
238
views
Could we get different font colors for SEDE comments and strings?
In SEDE, using Chrome on Windows, comments and strings are both formatted in the same shade of green:
(Snip is from this query)
Now, I'm sure many out there will have bones to pick with my query ...
5
votes
1
answer
906
views
Add syntax highlighting for the Makefile language
I want to post a question with a significant chunk of Makefile code, but the preview given from my code isn't very exciting, and it highlights seemingly random words here and there.
The seemingly-...
5
votes
1
answer
61
views
Please add more space around code or quote blocks in lists
Since a CSS update a while ago, code blocks and quotes in lists are too close to the line above for comfort:
This is a code example. Particularly annoying with code spans in the line.
Example code
...
15
votes
3
answers
209
views
Disable Smarty-like formatting in titles
I tried editing a recent Stack Overflow post with an em-dash in the title. When I tried to fix it, I discovered the post actually contained two hyphen-minus (-) characters in the first place – and ...
9
votes
1
answer
270
views
Your post appears to contain code that is not properly formatted as code (again)
I stumbled upon this error while writing https://stackoverflow.com/a/29850739/4486184
The problem was that I was missing a newline between the "==========" and the following code but the preview ...
18
votes
1
answer
1k
views
google-code-prettify seems dead
The code formating engine used by SO (google-code-prettify) seems dead (lasts two commits have been made on sep 2013 & mar 2014). As stated on this post, each code-formatting request have to be ...