Skip to main content

Questions tagged [code-formatting]

For questions about making code appear correctly in questions, answers and comments.

10 votes
0 answers
128 views

The last time that I extracted any content from SE, no ECMAScript intercepted that process to prepend license information. However, recently, at stackoverflow.com/a/28128802, I duplicated a text/x....
RokeJulianLockhart's user avatar
6 votes
0 answers
101 views

There's a new-to-me Copy button on fenced code blocks on various stack exchange sites now. When pressed, it puts a copy of the code block to the client's clipboard, along with a couple lines of ...
Seth's user avatar
  • 987
27 votes
1 answer
498 views

Per kristinalustig's request, I'm posting a standalone MSE report for all the different languages being guessed incorrectly via the new code block labeling feature that rolled out as part of the copy-...
TylerH's user avatar
  • 24.4k
0 votes
1 answer
70 views

In bio.SE, I use code blocks to type out genetic code and related things like sequence of numerical position of codons like in this answer. So in this answer, I've added the following code block 123 ...
Shayan's user avatar
  • 211
16 votes
0 answers
130 views

It seems as though this non-intuitive search behaviour is known to people who know about it, but confuses people just searching for content, especially on Stack Overflow (and other sites where code is ...
Snow's user avatar
  • 4,033
7 votes
1 answer
104 views

Suppose I have a section of text in the middle of a spoiler and I want to put some in a code block such that it is surrounded by the spoiler text on both sides: If I try >! something >! <pre&...
micsthepick's user avatar
6 votes
0 answers
81 views

On the new Stacks editor, when quoting a code block containing XML comments, the comment opening tag is removed, resulting in invalid XML. Given a post with content like this: ``` <xsl:variable ...
miken32's user avatar
  • 2,453
10 votes
1 answer
216 views

Some issues with the new Stacks Editor's code block usage: Had to make it a GIF to upload here but the video is supposed to stop when I press the discard button and click the off-screen confirm box. ...
user5127's user avatar
  • 189
11 votes
1 answer
192 views

At the bottom of What is "meta"? How does it work? is a section on required tags. It uses code formatting for these tags: Because meta-discussion sites are different and serve multiple ...
bobble's user avatar
  • 19.5k
14 votes
1 answer
366 views

Today I noticed the first time, that when I post an answer and enter code (by prefixing the line using 4 spaces), and my code contains a backslash or an asterisk, these characters are then prefixed by ...
user1934428's user avatar
3 votes
0 answers
53 views

Disclaimer: I'm more a reader than a contributor on Stackoverflow, so I may have missed something obvious for you all. I've posted this question (about some typescript issue), and added the Typescript ...
Zoddo's user avatar
  • 139
5 votes
0 answers
110 views

Steps to reproduce: Select the WYSIWYG mode of the new Stacks Editor create a code block add some text below the code block put your cursor into the code block press the down arrow key This will ...
Mad Scientist's user avatar
8 votes
0 answers
189 views

I was looking at my upvotes in the Votes tab of the Activity section of my profile, and when I expanded the preview of a post with a large code block, there is a rendering issue where the code blocks ...
Twineee The Dark Wizard's user avatar
11 votes
0 answers
77 views

I was peeking at a question that included two full scripts and an error message that referenced a particular line. I copy-pasted the code into VS Code to see the line numbers, but it would be ...
Xbox One's user avatar
  • 211
0 votes
0 answers
50 views

When I enter multiple lines of code and then press 'code sample' or ctrl+k, the method of formatting is that it all automatically gets indented. However, I propose that any multi-line code should ...
Kovy Jacob's user avatar

15 30 50 per page
1
2 3 4 5
66