All Questions
Tagged with code-formatting markdown
242
questions
1
vote
0
answers
38
views
Cannot paste into SE code blocks when Editing, breaks text editor and Markdown preview
There seems to be something wrong with the text editor when editing code inside ``` code blocks. I've noticed this when editing questions.
Copy code from my IDE
Edit a question
Highlight all of the ...
3
votes
1
answer
122
views
Post formatting is not accurate for numbered lists of code blocks. Is this a bug?
Compare the way this list looks in the post versus the screenshot of the preview:
text:
1.
{ label: `Baz ${x ? n1 : n2}`, kind: "B", } satisfies B,
1.
{ label: `Baz ${x ? n1 : n2}` ...
7
votes
1
answer
133
views
Markdown errors in blog post about RAG
Editor note: While there's at least one other applicable tag, I'd like to leave it at four tags to allow for a status-* tag.
In this blog post, there's an unusual use of a code block to quote LLM ...
4
votes
0
answers
213
views
More fun with "Your post appears to contain code that is not properly formatted as code."
I have tried to post the following to Stack Overflow:
I have a very simple HTML form embedded in an email I send to people who have subscribed to my blog so they can confirm their email addresses. ...
3
votes
1
answer
82
views
Code highlighting and image placement breaks despite correct syntax
Signal Processing answer, normal vs preview:
It's only toward the bottom of the post, yet it doesn't happen toward bottom of a much longer post. I confirmed it's also reproduced only with the ...
3
votes
3
answers
145
views
What tool is there for creating Stack Exchange markup language tables which do not involve typing the tables one key-stroke at a time?
The Stack Exchange (SE) network has many different websites to support the learning of natural languages.
Links to some of these SE sites are provided below:
German / Deutsch |
Spanish / Espanol
...
3
votes
1
answer
81
views
How can I change the Markdown of a post that was created using the "Ask Wizard"? It's formatted using 'heading' formatting
Take a look at this (badly asked) question: When I try to implement the project it fails and I get this error
I tried to change the Markdown of the question since the text is enlarged and in bold:
...
12
votes
0
answers
120
views
Code block within spoiler gives different result than shown
Background: I'm using the opt-in beta for the new editor.
When using the following markdown in the answer editor:
>! ```python
>! if True:
>! print "Hello World"
>! ```
It ...
7
votes
1
answer
145
views
Code no longer displays, despite being selectable [closed]
Since today, suddenly code no longer displays for me:
The same happens for in-line code, also that in comments. However, I can select the code:
and copy-paste it to a text editor. Is this a new bug?
...
7
votes
1
answer
133
views
Is the language name case sensitive for syntax highlighting?
I often use the syntax-highlighting feature of Stack Exchange in order to make my code easier to read.
```lang-python
for k in range(0, 10):
print(k)
```
for k in range(0, 10):
print(k)
...
8
votes
2
answers
196
views
How can I find posts with particularly large code blocks in a non-code-based site?
From time to time in Space SE a question or answer about a calculation will need to share a significant amount of tabular data, say 100 or 1000 lines. It needs to be forever available to future ...
8
votes
0
answers
79
views
Markdown reformatting is broken if a list item starts with a block element
The new/stacks editor, when switching from source mode to Markdown mode, breaks alignment of list items <li> if it begins with a block-level element (<blockquote> or <pre>).
For ...
6
votes
1
answer
69
views
Code Markdown bug
I've only seen this happen on music.se, the latest one on Metronome Sound today.
The last code block on a page renders as a blank box.
It looks like a few people have had different attempts to get the ...
4
votes
1
answer
1k
views
"Your post appears to contain code that is not properly formatted as code." I have no idea why
I can’t seem to understand what is wrong with the following Markdown content. I keep getting the
Your post appears to contain code that is not properly formatted as
code. Please indent all code by 4 ...
4
votes
0
answers
34
views
Code formatting fails for closing brace on some sites [duplicate]
The following block of code
```
}
```
renders correctly when asking a question on most sites, e.g. Stack Overflow and here on Meta:
}
However, on some sites, like Game Development and Code Review, ...