Linked Questions

1
vote
0answers
35 views

Syntax highlighting for form elements sometimes do not work [duplicate]

I posted a question that has this code <input type="text" v-model="myVar" @keyup.enter="doFilter" /> <button class="md-icon-button md-raised md-accent md-dense" @click="doFilter">Filter&...
1
vote
0answers
33 views

Why isn't this code highlighting? [duplicate]

Why does the first block of code get highlighted but not the second one? Is the second code block being interpreted as part of the second list item? If so, how do I close the second list item so I ...
1
vote
0answers
32 views

Flaky code rendering bug [duplicate]

This version of my answer didn't render correctly. I ran into the problem several times when trying to write the post, where SE would only display {{content.field.caption}} instead of the whole code ...
0
votes
2answers
31 views

Code formatting when putting in #'s [duplicate]

Possible Duplicate: Code block is not properly formatted when placed immediately after a list item Okay, so if I'm posting a code block after a number, the formatting doesn't work. If you take a ...
1
vote
0answers
27 views

Inconsistent syntax coloring in a post [duplicate]

In this question, I'm getting the syntax coloring properly on the first section but not on the second one. I suspect that it's got to do with it being within an enumerated list. What can I do about it?...
1
vote
0answers
26 views

Can code be added below a bullet? [duplicate]

I want to add code below a bullet, but it doesn't render it until I delete the - character.
0
votes
0answers
25 views

Gradle script formatting [duplicate]

I'm trying to post some piece of gradle script at it doesn't look like code. Here it works: buildscript { repositories { mavenCentral() } dependencies { classpath 'com....
0
votes
0answers
21 views

Why is code pasted in one place formats correctly and pasted toward the bottom does not? [duplicate]

Here's a response I posted on SO. Notice that the code, when placed at the top, formats correctly, but when placed towards the bottom, does not.. (Seems like the formatting code does not sanitize ...
1
vote
0answers
19 views

Bug in formatting? Lists and Code [duplicate]

On this question, I tried to format code, (indented 4 spaces) followed by a Unordered List to document the params, then another line of code, and more documentation. The second line of code will not ...
1
vote
0answers
19 views

Code rendered as text when placed after a list [duplicate]

I have some problems formatting code on so. If i use only 4 spaces in the code snipped in this post: SO-Post, the code will not be formatted as code. I think it has some thing to do with the list (1, ...
1
vote
0answers
14 views

Markdown bug (HTML code right after numbered list) [duplicate]

If I add a numbered list then empty line, then paste HTML and mark this HTML as "code" by adding indentation - the HTML becomes invisible. Like this: 1.blah 2.blah 3.blah <html><code>&...
2
votes
0answers
13 views

Cannot use code block directly below list [duplicate]

When writing a post with a code, it is not possible to use block code directly after a list. This is a list It contains some items It's goal is to show that I can't use code below This is a code ...
0
votes
623answers
11k views

Sandbox archive

This post exists purely to house answers formerly attached to the formatting sandbox. You can safely ignore it.
504
votes
10answers
46k views

Implement ```-style (fenced) Markdown code blocks

Currently, Stack Exchange’s Markdown parser only allows four-space indents to represent code blocks: // some code // another line of code GitHub Flavored Markdown and other Markdown ...
538
votes
1answer
93k views

What is syntax highlighting and how does it work?

I noticed that sometimes my code gets highlighted in different colors when rendered. What is syntax highlighting? How does it work? Why isn't my code being highlighted correctly? How do I report a ...

15 30 50 per page