Quantcast
Channel: Active questions tagged code-formatting - Meta Stack Overflow
Browsing index pages (195 articles)
↧

How do I format my code blocks?

How do I post text so that it is formatted as code?What do I need to do so that my code shows up properly—not escaped or removed—when posted? And how do I get the correct syntax highlighting?For more...

View Article


Stack Overflow crashes/freezes when creating a code block [duplicate]

I was trying to ask a question on Stack Overflow but when I typed the three backticks to make a code block the tab froze. I tried hitting the code block button and it also froze. I tried seeing if I...

View Article


Support line wrapping in code listings

When listing code in questions or answers, one often uses lines which are longer than the rendered gray-rectangle box is wide. The result is a box with a horizontal scrollbar:int foo(int...

View Article

Code blocks appear blank in dark theme

I was looking at this question and the code block rendered on my screen as a featureless blank box.This led me to believe that the questioner hadn't posted any code, and I left a comment to that...

View Article

Image may be NSFW.
Clik here to view.

The Stacks Editor breaks inline code formatting when typing consecutive...

In order to write inline code, I have the habit of typing two backticks (AltGr+µ), pressing the left arrow, typing the name, pressing the right arrow, typing something normal, and doing the same again...

View Article


Image may be NSFW.
Clik here to view.

Copy button says "Copied with attribution" and prepends junk instead of just...

It seems the copy button on code blocks does not actually copy the code to the clipboard.Instead it adds unwanted text to the clipboard:# Source - https://stackoverflow.com/a# Posted by holdenweb,...

View Article

Image may be NSFW.
Clik here to view.

Seemingly redundant leading empty line at the beginning of a codeblock due to...

If you have a code block, it looks like it starts with an empty line on Stack Overflow due to the way "Copy" is displayed at the top right.Example question on Stack Overflow: Why does 2e3 return 2000?...

View Article

How do I put a backtick in backticks to make it appear as code?

How do I put just a backtick in a pair of backticks to make it appear as code? In a code block, I can do`but how do I do it inline?

View Article


Why are posts edited to change the code formatting markers?

I have seen some edited posts, which have been edited to change the way that code is formatted. Sometimes, this is also the only edit they make.It will be changed from four spaces indentation to triple...

View Article


Incorrectly inferred languages with new code block design [duplicate]

I came across this question where the main code block was plainly go code which had been incorrectly inferred to be coffeescript! A second block of error output was labelled as Go code. This makes...

View Article

Image may be NSFW.
Clik here to view.

New code block design guesses incorrectly at what the language is, even when...

(Cross-posted as a bug report to MSE which lists all affected languages found thus far. Please go there to see if a language you've observed being labeled incorrectly is included in the table)I just...

View Article

Is having the ability to apply rich text formatting inside code blocks...

For many years, it's been possible to apply rich text formatting to code blocks inside posts by formatting the code block using the HTML tags <pre><code> and using more HTML tags inside the...

View Article

How can I add foldable code or text when answering someone’s question on...

How do I add foldable code or text on Stack Overflow when writing a question or an answer?<details><summary>Click to expand!</summary>```HTML<h1>Hide this until someone presses...

View Article


Image may be NSFW.
Clik here to view.

Proper syntax highlighting for Blazor - C# with HTML on Stack Overflow

The code highlighting here on Stack Overflow appears to be missing a tag for Blazor-like pages where C# and HTML are combined within the same file.Currently, I can only format it as either C# or HTML....

View Article

Comment with backticks loses formatting when edited [duplicate]

With the recent UI change, a comment that was written using backticks (inline code), loses those when edited.

View Article


Requesting clarification on reason for edit rejection

I recently submitted this edit suggestion:https://stackoverflow.com/review/suggested-edits/36801118It seemed to me to be pretty straightforward. As the name of a system file, /etc/sysctl.conf should...

View Article

Discussions garbles code [duplicate]

I am trying to respond to a Discussion (pushed upon us by the frustrating comment experiment), and it eats my code. I want to put this code there:# 2. Identify peaks ----peaks_info <-...

View Article


Can I force syntax highlighting for a certain language? [duplicate]

I notice that stackoverflow automatically adds syntax highlighting to code blocks. I hate this. It always applies the wrong language's highlighting to the wrong code.Example? The last question I've...

View Article

Image may be NSFW.
Clik here to view.

Creating a code block in Staging Ground includes one additional character...

When you edit a question in the Staging Ground to convert a text selection into a multiline code block by using the "Code block" button (or pressing CTRL-M), a code block will be entered which contains...

View Article

Auto-unindentation for code blocks

Can code blocks like this:for (var i = 0; i < 10; i++) { console.log('hi'); } console.log('done');Be converted to this?for (var i = 0; i < 10; i++) { console.log('hi');}console.log('done');There...

View Article
Browsing index pages (195 articles)


Latest Images