Skip to main content

Questions tagged [code-formatting]

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

6 votes
1 answer
150 views

How should I represent/display pseudo code in Stack Exchange?

This semester I'm attending a course on Algorithms and Data Structures. I will probably have a few questions to post to Computer Science or Mathematics. The slides of my teacher use math symbols such ...
ilam engl's user avatar
  • 235
7 votes
1 answer
186 views

When someone adds a "language identifier" to a code block does the specified syntax highlighting show in the "suggested edits" "queue"?

When I edit someone's code block with a language identifier: Example: from: ``` def py ``` to: ```python def py ``` Is that change reflected in the Suggested edits queue in the Inline or side-by-...
NotStanding with GoGotaHome's user avatar
0 votes
0 answers
49 views

Please allow to edit questions that are mostly code [duplicate]

There are some low-quality questions that consist mostly of wrongly formatted code. When trying to format it correctly (i.e., code actually becomes code), you get a notification that "your" ...
Leonard's user avatar
  • 117
5 votes
0 answers
87 views

Add full screen button to code blocks

I suggest adding a "Full screen button" underneath code blocks. For example in this post: I get java.lang.VerifyError using FontAwesome in JavaFX The first code block, "Error", is ...
oriel's user avatar
  • 59
7 votes
1 answer
260 views

Markdown characters in code both shown and rendered as markdown

With certain syntax colourings active (for example "apl" but not "c"), and for certain specific characters, symbols that have meaning in markdown are visible while also causing ...
Adám's user avatar
  • 11.4k
12 votes
0 answers
217 views

I am being incorrectly told that "Your post appears to contain code that is not properly formatted as code." Please can I have more specific feedback?

I've been trying for about 30 minutes to work out what on earth in my message the system is mistaking for code, and every time I press submit and it tells me vaguely "oh I think there's code in ...
explodemydata's user avatar
7 votes
1 answer
107 views

Erroneous "Your post appears to contain code that is not properly formatted as code" error

I spent more than an hour trying to fix the formatting of the question below such that the Mathematica and Wolfram Language forum would accept it. I had no success, even though I am aware of threads ...
B K's user avatar
  • 221
7 votes
1 answer
75 views

Quote button shouldn't reformat code in triple-backticks

I've seen Blockquote rewrap destroys code, but that question (and answer) are about the situation where a user mistakenly uses the quote button instead of the code button. I instead want to use both. ...
jamesdlin's user avatar
  • 726
4 votes
1 answer
183 views

Some lines of code block are bold when the question has at least two language tags

We've found this problem in this question on Stack Overflow in Portuguese, but I've also tested in other sites (English and Spanish SO's), and it happened there as well. In the aforementioned ...
hkotsubo's user avatar
  • 2,313
-14 votes
1 answer
238 views

I need help and the site is not letting me post my code. Says “Your post appears to contain code that is not properly formatted as code.”

I am trying to learn React and there's a concept that I'm feeling pretty stuck on. I was hoping someone could help me and I've been trying to put effort into making a question post detailing my ...
greenga95's user avatar
2 votes
1 answer
524 views

Triple backticks code formatting doesn't show up in the suggested-edits queue on side-by-side mode

I just noticed that answers (I don't know about the questions), that used triple backticks codes in the body, don't show up in the suggested-edits review queue on side-by-side mode. Instead it shows ...
αғsнιη's user avatar
1 vote
3 answers
236 views

Bug in Stack Overflow Markdown rendering when code follows a list [duplicate]

Code following a list, though not to be included in the list itself, is not correctly rendered, as shown below. I have tried inserting linebreaks, to no avail. Inserting "dummy" text will ...
Richard Michael's user avatar
2 votes
0 answers
87 views

Prefer code fences or indenting? [duplicate]

Personally, code fences are cleaner (less whitespace) and are parsed more quickly due to the ability to hint at the language via cpp,lang-none,js, etc. Other than requiring indenting to use code in ...
Casey's user avatar
  • 159
3 votes
1 answer
421 views

Why does copying a code block line contain a trailing newline?

Using macOS and Chrome, triple clicking a line to select and copy in a code block results in a trailing newline. When pasting a command into a shell, this results in the cursor being placed on a line ...
jsuth's user avatar
  • 141

15 30 50 per page
1 2 3
4
5
58