All Questions
Tagged with markdown code-formatting
253 questions
10
votes
1
answer
160
views
Code block usability issues in Stacks Editor
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.
...
3
votes
0
answers
51
views
Unable to make syntax highlighting working [duplicate]
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 ...
0
votes
0
answers
46
views
When user highlights more than 1 line of code and pressed 'code sample', make it a code block [duplicate]
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 ...
3
votes
0
answers
66
views
Workaround for bug causing \ before dollar signs to be rendered as \\\ on MathJax enabled sites?
As the title says, a single \ in a code block is being rendered as \\\ if preceding a $. This seems to be the same bug reported here, but since it hasn't been fixed, I am asking for a workaround. ...
1
vote
0
answers
46
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
126
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
140
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
215
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. The ...
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
148
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
126
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
146
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
147
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
205
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 ...