All Questions
5 questions
2
votes
1
answer
76
views
Code snippet not getting highlighted [duplicate]
I have a piece of code after a list in a question. It is not getting syntax highlighted, even if I use SO code block, or indent it myself.
If I move it before the list, it works as expected. Also, ...
29
votes
2
answers
1k
views
Are backticks appropriate for emphasizing references to things that show up in code?
I've been following this "When should code formatting be used for non-code text?
" post for guidance on removing backticks when reviewing suggested edits as well as when forming my own questions and ...
17
votes
1
answer
502
views
How to use the regular code snippets in the 2018 Stack Overflow update
I am a little confused with the new update of Stack Overflow, particularly on using the regular JavaScript/CSS/HTML code snippets we used to have to write our questions. Now the new update made it ...
1
vote
0
answers
40
views
Why are code samples sometimes shown unformatted? [duplicate]
Sometime, I post questions (or answers for that matter), where code appears unformatted (without reserved words color, etc.), like the image below.
Why is that happening?
Here's an example to ...
263
votes
1
answer
85k
views
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 ...