Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [markdown]

Markdown is a lightweight, plain-text, markup language. It is used across the entire Stack Exchange network for post formatting (Questions, answers, wikis, chat).

7
votes
2answers
93 views

How should question bodies be organized?

The format that I know for question bodies is: Intro, often explaining where the problem originated. A problem statement explaining what the code is supposed to do. Perhaps a little more ...
2
votes
2answers
94 views

Should complexity formatted as code be updated to use MathJax?

I saw a post that mentions algorithmic complexity and formats such complexity values using inline code spans (e.g. O(n)). Should that post be updated to use MathJax ...
7
votes
0answers
82 views

Error about improperly formatted code appears when attempting to format LaTeX as math

In an answer, I tried to post the following math: ...
6
votes
1answer
55 views

Code block is required, but the programming language is purely graphical

Your post appears to contain code that is not properly formatted as code. There is no code in my post, only text and links. Here is a link to my question: Limit Drive Starts with Function Block ...
10
votes
2answers
105 views

Can I edit parts of the code blocks that aren't part of the code itself?

First off, this question is related to several other meta posts, but as far as I can tell none of the questions cover it. First a list of similar questions and why they are different: Is it ...
1
vote
0answers
44 views

Capitalized i when using ###? [duplicate]

Someone edited my question to change **Some text containing an i** to ### Some text containing an i Which is completely ...
3
votes
1answer
33 views

Why didn't this format correctly in a comment?

I commented on a person's question with the following markup: ...you have a single-bit mask that increments using `i <<= 1`, e.g. `for(i = 1; i < 1 << 16; i <<= 1)`... but ...
-1
votes
3answers
107 views

Discouraging gigantic headers in answers?

-~- Your Yearly Airing Of The Grievances -~- A lot of answers follow the template of: Avoid X Description of why X is bad Do Y Description of why Y is good and better than what OP ...
2
votes
0answers
32 views

Double dollar sign in code breaks indentation [duplicate]

For example, if I have Markdown like: $$ $$ Then both lines should have the same indentation (zero), but they don't. It renders as: $$ $$ I suspect ...
6
votes
1answer
78 views

How can I format a code block below a list?

When I want to list a few things and give a code example below each item how can I do it without writing anything between the list item and the code block? Example: List item Code example not ...
11
votes
1answer
98 views

How can I post code within spoiler markdown?

In a recent answer on a recent question there was code written within a spoiler. I edited the post a bit to format the markdown better, but I ended up with something that just looks... horrible... ...
18
votes
1answer
220 views

MathJax breaks my indentation

Seems like there is a bug, that breaks my indentation. See In third code section of Create New C++ Class In first code section of Code Generator Generator multiple times in the code section of ...
23
votes
6answers
2k views

Code Prettify - Choose your favorite or make your own!

We all like code, let's face it. And with Code Review's upcoming graduation "colors" I'm sure that many would like for the large amount of code that is posted daily in questions and answers to look ...
3
votes
1answer
42 views

Are questions to review markdown on-topic?

Markdown itself is almost a (very) small subset of HTML, which is rendered as such. We use markdown on many places, including on the whole Stack Exchange network and Github. Sometimes, it is a good ...
17
votes
3answers
634 views

Code Prettify - Line numbers?

SE sites use Google Code Prettify for code formatting. While it's still up in the air as to whether we would be able to get SE to use community-voted code formatting, I've been experimenting with ...
5
votes
1answer
50 views

Blockquotes and formatting

In many, many, many, many or my recent questions, I've [mis]used blockquotes to separate code files. I always do it like this: Identifier type of code file As in Foo class and IFoo ...
16
votes
2answers
167 views

Check list for formatting questions and answers

I have seen that moderators work hard to format questions and answers. Is there a check list they use (specially for CR), so others can also contribute by editing or properly formatting their own ...
13
votes
2answers
130 views

Suggested edit attempts to format code

This suggested edit attempts to format the code in the question. Since this meta post states that it would be better to leave formatting advice as part of answer, I am inclined to reject this ...
6
votes
3answers
89 views

How do you write multiple spaces in text?

When I try to add multiple spaces in a quote or text, it just appears as one space. For example, I want formatted output from a program on the question, like this: 2 3 5 7 11 13 17 19 23 29 ...
10
votes
4answers
68 views

Formatting updated parts of the question bold

I'm questioning this edit. I'm used to emphasizing updates, such that people know what's new. I've seen this practice since I'm a member on SO, and used it myself quite often - and it's being edited ...
3
votes
1answer
35 views

Formatting issue

What's going on with Code Reviewer formatting engine? I've had a few issues with this post. Please ctrl+f for Now, if we already caught the exception in the inner try-block by adding a catch ...
2
votes
1answer
37 views

PowerShell syntax highlighting bug with backticks

Refer to PowerShell Active Directory Browser Backticks are incorrectly interpreted as some sort of string, instead of a line continuation character.
20
votes
0answers
188 views

“How To Format” guide has misleading UI elements

The "How To Format" guide on the right side of the screen is misleading. It uses "►" for each item in the list. Usually this "►" means that the list item is expandable, but it is not an expandable ...
10
votes
6answers
1k views

How can I replace tabs with spaces in code?

The code in my post appears to have improper indentation, but the indentation in the editor differs. There is usually a different amount of indentation between the two, which must be so because there ...
23
votes
14answers
499 views

MathJax on CodeReview

Several times I had the need to write mathematical formulas in my answers on CodeReview.SE. Sometimes, this can be simulated by sup and/or ...
10
votes
2answers
227 views

How can I prepare my code so that I can paste it formatted?

If I paste C++ code with many functions/classes (braces), I have to indent all of them, including their content. I've replaced tabs with spaces in my editor, but still no improvements. What's the best ...
3
votes
1answer
40 views

VB comments taking up more than one line unless comment is terminated

In this question, there are comments in the code, other code that was tried before, and the comment showed over multiple lines unless the comment was terminated with another apostrophe, which isn't ...
4
votes
1answer
61 views

Number list formatting followed by code formatting issue

On this question, I found that when I tried to edit the question and add a numbered list format, it sucked in the code formatting that followed, so I had to add ...
1
vote
0answers
59 views

undocumented effects of indentation on sub-lists

What's the actual rule for sub-list nesting? The documented rules say to indent this sublist entry by 4 spaces, but any indentation from 1 to 7 SEEMS to work. Code block formatting works as ...
1
vote
1answer
128 views

Should font-size for question text and code blocks be the same?

On StackOverflow the the font-size for text and code appears to be the same, but on CodeReview they're noticeably different. It's a bit of an annoyance, because when the text font size is set to my ...
6
votes
0answers
111 views

Change the “code” icon in markup editor toolbar?

Since a few weeks Stack Overflow has a new icon in the editor toolbar for code markup. It's a pair of braces (curly brackets) which is much more recognizable than the old [101 010] icon still used ...