All Questions
590 questions
731
votes
6
answers
355k
views
How do I escape a backtick ` within in-line code in Markdown?
How do I escape a backtick ` within a code block?
This is probably a duplicate, since I'm sure it's a common concern, but I can't find a question that addresses this specifically.
How do I write ...
648
votes
304
answers
92k
views
Formatting Sandbox
Notes:
Answers will occasionally be moved to the Sandbox archive when there are too many of them. When using them to report bugs, keep an eye on the post.
You may also want to take a look at the ...
546
votes
1
answer
284k
views
What HTML tags are allowed on Stack Exchange sites?
Stack Exchange sites use Markdown for questions and answers. Per the Markdown specification, intermixing HTML and Markdown markup is allowed, but not all the HTML tags are allowed, to avoid XSS.
Which ...
483
votes
2
answers
26k
views
How can I format as keyboard keys? [duplicate]
Some answers contain characters that look like keyboard keys. They look like
Ctrl + E
What markup do I need to add to make Ctrl and E look like actual keys?
That's not mentioned in the formatting ...
400
votes
1
answer
279k
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 to get the correct syntax ...
326
votes
5
answers
159k
views
How to nest code within a list using Markdown [duplicate]
Oftentimes, I want to include code samples in a list, for example:
Item One
Item Two, for example:
private bool ItemTwo()
{
return this.IFeelLucky;
}
Item Three
The problem is that there isn't a ...
302
votes
5
answers
27k
views
Keyboard Glyphs
How are people showing keyboard "glyphs" on Super User? I looked at the Markdown help page and it didn't show anything regarding this.
Here is an example. (question has been deleted since ...
272
votes
7
answers
402k
views
How to write nested numbered lists
I just posted an answer on Stack Overflow where I wanted to have nested numbered lists, something like
1. Dog
1.1. German Shepherd
1.2. Belgian Shepherd
1.2.1. Malinois
1.2.2. Groenendael
1.2.3. ...
229
votes
5
answers
61k
views
How can the backtick character ` be included in code?
I tried before to post a shell script that contained a ` character as an answer on Stack Overflow. The parser insisted on treating the backtick as formatting instead of part of code.
How can I ...
201
votes
7
answers
267k
views
Does Markdown have a way to express strikeout?
I've been using <s> to put strikeout in posts -- is there a Markdown way of doing it?
It seems like -[Text here] would make sense, hehe :)
180
votes
6
answers
116k
views
Links to URLs containing parentheses
How do I add a link to a URL containing parentheses () (or "round brackets" by heathens)?
For example:
http://msdn.microsoft.com/en-us/library/aa752574(VS.85).aspx
The parentheses around &...
179
votes
1
answer
323k
views
Creating an image link in Markdown format [duplicate]
How can I create an image link using the Markdown format? I want an output like <a href="" rel="some text"><img src="/path/to/file" alt="" /></a&...
167
votes
5
answers
46k
views
How can I write a math formula in a post?
I want to ask something that contains a mathematical formula.
How can I write the equation? Is there a page that shows the syntax?
I thought there must be some syntax like in Wikipedia or ...
150
votes
3
answers
19k
views
How do I use formatting in comments? [duplicate]
I see some people write comments that are for example - in italics.
I do not see any way of doing that while writing my comments. Why is it so?
146
votes
3
answers
167k
views
How to combine bold and "code sample" in Markdown? [duplicate]
How can I make a word in a code sample bold? I only see asterisks around the expected bold text.
sample **sample** sample
145
votes
2
answers
17k
views
How to strike text? [duplicate]
Sorry but I couldn't find this info. How do I strike the text?
140
votes
2
answers
57k
views
What's the recommended syntax for an image with a link?
What's the recommended syntax for an image with a hyperlink? I tried doing it
with the markdown toolbar buttons and the image and link buttons conflict
with each other, so I had to resort to HTML.
For ...
136
votes
4
answers
42k
views
How do I use a small font size in questions and answers?
Is there any way to use a small font size in questions or answers? That is, for the purpose of minor and possibly irrelevant information?
I've checked the Markdown syntax but couldn't find anything. ...
133
votes
4
answers
108k
views
Is it possible to have definition lists in Markdown?
I just wrote this question and was wondering if there's a MarkdownSharp syntax for specifying a definition list -- it would have made specifying those function arguments a bit more natural...
If ...
108
votes
2
answers
16k
views
Key stroke combination markdown? [duplicate]
Possible Duplicate:
Keyboard Glyphs
I got an answer with some cool keystroke formatting, but I don't see how to do it on the markdown reference, or the more detailed markdown reference -- maybe I ...
106
votes
4
answers
17k
views
How do I use superscript and subscript characters in questions?
When I need to ask questions, occasionally, I'll need a super or a subscript letter or number for pseudo-code or math equations.
I've seen this done in answers of this question: Special superscript ...
70
votes
2
answers
6k
views
Code blocks after a list, but not within a list in markdown. Is it possible? [duplicate]
Possible Duplicate:
Code block is not properly formatted when placed immediately after a list item
In this post about nesting code-blocks in lists, it is explained that if you want to nest a code-...
55
votes
5
answers
7k
views
Why can we format text with bold and italic but not underline?
Why is it that italic and bold formatting is available while underline is not?
I guess it is voluntary, I'm just wondering why that would be the case.
47
votes
5
answers
6k
views
Text formatting now allowed in comments (List of proven and disproven abilities)
What special formatting tricks can be done in the comments now?
Proven:
**text** or __text__ = Bolding = text
*text* or _text_ = Italics = text
`text` = Code Formatting = text
[example](http://...
46
votes
1
answer
59k
views
How to escape the angled brackets ("<", ">") in a code block?
Writing a question including a C code in a <pre><code> block, I found out that in my #include lines the header names are not displayed when using the standard <name.h> convention. ...
40
votes
4
answers
86k
views
Is the dollar sign ($) used for markdown? If yes, then how can I safely insert it?
I want to write something basic like "10 $US" but sometimes it makes the text look weird. It changes the font and writes italic text. And sometimes it will insert a newline. For example in my answer ...
38
votes
1
answer
671
views
What Markdown formatting features are available for Bounty remarks?
According to the community FAQ, backticks and inline links are available for the bounty remark.
What other formatting features of Markdown are also supported on Bounty remarks?
33
votes
4
answers
44k
views
How do I escape the hash sign (#) if I want to use it in the section title?
In this SO answer, I wanted to use the header Script component code in C# using the section title. However, the markdown syntax removed the hash sign (#) and it currently displays the text as Script ...
33
votes
5
answers
23k
views
How can I write multiple spaces in a post?
I want to write multiple spaces in code, say
many spaces
but I want to do this in a code block, ``. But in this case, spaces are merged into one. I found this question, but there isn't any ...
33
votes
1
answer
7k
views
Which Stack Exchange sites have syntax highlighting enabled?
The code syntax highlighting feature is only enabled on certain sites. In order for code to be highlighted and for any of the hints listed in the above question to work, the Markdown extension has to ...
29
votes
1
answer
46k
views
How can I escape the less than symbol when it is next to a alphabetical character? [duplicate]
I was pasting results from Google Translate into a quote in a question and it looked like this
By overlaying the more because
In reality the markdown is this
>By overlaying the more because &...
29
votes
1
answer
26k
views
Where is the list of language names supported by the markdown fenced code blocks? [duplicate]
Related to Implement ```-style (fenced) Markdown code blocks
On this answer I used ```makefile and it is "working" the highlighting:
However, on this other answer, I am also using ```makefile and it ...
27
votes
1
answer
679
views
What site-specific post formatting settings are available?
Certain Stack Exchange sites have specialized support for non-standard types of post formatting.
Tim Post briefly mentioned these when discussing site-specific configuration settings, but he didn't ...
26
votes
2
answers
48k
views
How can I type an underscore symbol as part of a word?
I ask this specifically because SQL Server collations contain underlines, and I couldn't find how to display them properly as part of a sentence. Only quoting them as code seems to display it properly,...
25
votes
1
answer
30k
views
How do I display a (R) or (TM) symbol on SE sites? [closed]
In normal html I just show this character - ®
How to do it on SE sites?
I see the problem now. I was trying to do it in a quote. As in quoting another source. That seems to cause an issue ...
24
votes
1
answer
12k
views
How can I embed a list inside a blockquote
I have an answer that I want to use a block quote to cite and outside reference. That reference is a bulleted list.
Pretty sure I have seen this before but I cannot find anyone using it.
How can I ...
23
votes
2
answers
105k
views
How can I add the mathematical symbol for 'power' (like X ^ 2) to a question?
I'm asking a simple question on Stack Overflow. The question is somehow related to mathematics. Is there a way to show the mathematical symbol for power (X^Y) appropriately?
Edit: The following ...
22
votes
3
answers
1k
views
SO-specific markup - definitive resource?
Is there a definitive source of all possible markup for all the SO sites? For instance, I saw on one meta site someone putting tag links in their question, and it showed up looking like the actual ...
22
votes
2
answers
101k
views
Is it possible to change the text size in the code Markdown content?
I recently answered my first question over on Programmers.SE (PSE) and noticed that the font for my code snippets was smaller and looked a lot nicer than my snippets on Stack Overflow. Is it possible ...
21
votes
3
answers
26k
views
How do I make part of a word bold using Markdown? [duplicate]
Possible Duplicate:
Markdown handles inline bold text (within a word) incorrectly
I'm trying to use the following Markdown to make just the "Overflow" part of "StackOverflow Meta" bolded:
Stack**...
21
votes
1
answer
521
views
Why does the following Markdown (blockquote, code block, #) render the way it does?
Why does the following Markdown:
> ```
# test
render as it does?
<h1>test</h1>
Yes, you see that right: the # is converted even though it's inside a code block. Furthermore, it's ...
20
votes
1
answer
963
views
Why do code blocks sometimes not "show" properly?
It's possible that this is a duplicate of this question - but if so, I don't know why, and I can't verify whether it's the case. I've got a concrete example, although only dev (and maybe mods) will be ...
19
votes
5
answers
653
views
How can I separate multiple quote blocks?
I have a series of quotes which I want to display in two separate quote blocks.
> Are questions about Microsoft Word Online on-topic here? I don't
> really see any posted here, but perhaps I am ...
19
votes
2
answers
26k
views
How do I write a URL in Markdown on Stack Exchange?
If I want to write the URL of a website on Stack Exchange using Markdown, how do I do that?
For example:
<a href="abc.php">ABC</a>
What is the way to write this URL on Stack Exchange?
19
votes
2
answers
27k
views
What is the difference between markup and Markdown?
I am not sure what the difference between Markdown and markup is. I've read both of these terms in several posts on Meta. Googling them brings up some financial terms; not the correct context for this....
19
votes
3
answers
1k
views
> is closing HTML comments without a -- delimiter
If I try to put something like this into a question or answer
<!-- <br>s are important here -->
the first > after the "br" is matched to the first < before the "!--", resulting in ...
19
votes
3
answers
12k
views
How to insert sample XML code in Stack Overflow? [duplicate]
I am trying to ask a question which contains sample XML code but I can't paste sample XML code in the question. How it can be done?
18
votes
5
answers
37k
views
How to type a dash (— or –) instead of a hyphen(-) in Stack Exchange?
On Mac and some other systems, typing two hyphens quickly "--", would be automatically converted to an em dash "—" or an en dash "–" depending on the setting. But Stack Exchange fields are different, ...