Skip to main content

Questions tagged [code-formatting]

5 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
Oli's user avatar
  • 297k
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 ...
Tim's user avatar
  • 33.3k
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 ...
N0rbert's user avatar
  • 102k
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 ...
dessert's user avatar
  • 40.7k
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 ...
L. D. James's user avatar
  • 25.3k