Questions tagged [code-formatting]

The tag has no usage guidance.

5 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7 votes
0 answers
57 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
  • 294k
4 votes
0 answers
74 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
  • 32.9k
2 votes
0 answers
187 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
  • 100k
2 votes
0 answers
59 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.1k
2 votes
0 answers
110 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.1k