Quantcast
Channel: Active questions tagged code-formatting - Meta Stack Overflow
Browsing all 180 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Why was my code highlighting edit rejected?

I suggested an edit to a question's code block, from:```import requests...to:```pythonimport requests...This was a simple case of an asker writing unintended Markdown, and the edit fixed that. The edit...

View Article


Image may be NSFW.
Clik here to view.

Styling in code fences [duplicate]

I recently supplied an answer and the two asterisks were causing italics so I kept messing around until I figured out a solution.Is it expected behavior that regular code fences of triple back-tick and...

View Article


Image may be NSFW.
Clik here to view.

Markdown editor indent and outdent functionality

No tab key supportIt has been a while for me here on Stack Overflow, and from the beginning of my experience I've noticed something which still leaves a bad taste in my mouth when I create and edit...

View Article

Image may be NSFW.
Clik here to view.

Why does TOML code block formatting look so bad?

I have a Stack Overflow answer here that includes a TOML code block.I have tagged the code fence:```tomlBut the resulting highlighting looks very poor and does not even highlight the comments...

View Article

Why should I not upload images of code/errors when asking a question?

I am new to Stack Overflow, and I have asked about 5 questions so far. I have uploaded images of my code on most of my questions. On two separate occasions, two different users advised me not to upload...

View Article


Image may be NSFW.
Clik here to view.

How can I include code inside a quotation? [duplicate]

This is so bloody irritating - I finally just managed to format my answer, so code appears inside a quotation using <pre>, and I get "Your post appears to contain code that is not properly...

View Article

Syntax highlighting Java code in response to a Kotlin question

I provided an answer to a question tagged kotlin and javafx. The code blocks in my answer were predominantly in Java.Without any language tags on the code blocks, the syntax highlighting for the Java...

View Article

Image may be NSFW.
Clik here to view.

Formatting MySQL code in order to be able to submit a question

I can't make a post because Stack Overflow keeps insisting on some formatting, even though my code is already formatted.This was a preview of my post. Notice how code is already "parsed" by Stack...

View Article


I miss the highlighting of code, etc [closed]

I much prefer the colored highlighting that was applied to 'Code' before about a week ago.Is there a way to re-enable that? Or configure the pages to work with a different CSS? Or something else?I feel...

View Article


Image may be NSFW.
Clik here to view.

Is the new editor's inline code tool supposed to break up code blocks?

Earlier today, I encountered a question with several lines of code that had been entered as individual, inline code blocks instead of a single, fenced code block. I assumed the OP was unfamiliar with...

View Article

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

Why should I not upload images of code/data/errors when asking a question?

I am new to Stack Overflow, and I have asked about 5 questions so far. I have uploaded images of my code on most of my questions. On two separate occasions, two different users advised me not to upload...

View Article

Image may be NSFW.
Clik here to view.

Cannot figure why am getting "Your post appears to contain code that is not...

I tried changing every section in the code below (using/not using four character indentation with/without pre). I also tried removing the formatting and the line separators on the list.Nothing helps -...

View Article


Why are strange backslashes (escapes?) suddenly appearing in rendered code?...

I've noticed that lately strange backslashes are appearing more and more frequently in edited code.Here is another example. Is this a user failure or a bug in the site's code rendering?

View Article

Putting code in quote blocks when not quoting anything - is removing the...

I've noticed recently a new (citation needed) "trend" where some users are putting their code blocks/fences inside quote blocks as well. These code blocks aren't, however, quoting anything; there is no...

View Article


Image may be NSFW.
Clik here to view.

Give a code block a filename

It's relevant and useful to include the name of the file that a code block should go in. For example, an update to a Next configuration would go in the next.config.js file, an NPM script would go in...

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


Why can I publish a post here, but I get an error when I try to post the same...

I don't understand why I can't post my question on Stack Overflow, but I can post it here.The text is exactly the same, but when I want to post it on Stack Overflow I can't do it because a message...

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

Image may be NSFW.
Clik here to view.

Add GitHub coding style themes to the theme styles [closed]

The GitHub color combination of pink and black would be a great feature on this site. I saw that other theme plugins that attempted to change the look and feel of the site. Can they add a GitHub plugin...

View Article
Browsing all 180 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>