Questions tagged [code-formatting]
The code-formatting tag has no usage guidance.
5 questions with no upvoted or accepted answers
7
votes
0
answers
60
views
Preserve tabs in code
Tabs are currently rendered as spaces in code blocks. I'm sure this is just a symptom of Markdown or an otherwise well-intentioned method to standardise code samples... However some code needs tabs to ...
4
votes
0
answers
75
views
Scrolling code blocks glitch
This is me trying to scroll left and right on this code block (animated):
Here are the still images:
This is a copy of the problematic code block, which I first found in this question
dpkg was ...
2
votes
0
answers
195
views
Preformatted text horizontal scrolling - bug or feature?
AskUbuntu help recommend to style pre-formatted text and console output with
#four spaces
But sometimes it results in scrolling text. See this question as an example. The problematic line (as ...
2
votes
0
answers
60
views
Syntax highlighting doesn’t work on meta
When I enter
<!-- language-all: lang-bash -->
if :; then echo "quoted"; fi
in a post on main, the output looks like this:
Here on meta, the very same code gets no syntax highlighting at ...
2
votes
0
answers
111
views
How can I shorten the Long Code output in questions and answers and display scrollbars?
There are some questions and answers that have very log output that is condensed with scrollbars.
Is there a formatting method to control how much is displayed between the scrolling. I believe some ...