13

Did you leave an empty line before the code? For example: Test line line 1 indented by four spaces line 2 indented by four spaces Test line 2 line 3 indented by four spaces line 4 indented by four spaces Shows up as: Test line line 1 indented by four spaces line 2 indented by four spaces Test line 2 line 3 indented by four ...


8

You can backslash the Markdown characters: <kbd>Ctrl</kbd>+<kbd>\*</kbd> or <kbd>Alt</kbd>+<kbd>\*</kbd> gives Ctrl+* or Alt+*.


7

As a code block I'm assuming you mean something like this? ` blah...code...blah ` Simply indent the code block using 4 spaces. As inlined code block If on the other hand you want them inlined then simply prefix the inline code block with 2 backticks before and after instead. Any single backticks within these will render as a backtick. This is a inline ...


7

You don't need to edit to view the source. Get the post ID (click on share, or look at the question URL, note the first number). For your question, that would be 3559. Go to <site.name>/posts/<ID>/revisions (https://unix.meta.stackexchange.com/posts/3559/revisions, for your question). Click on the source link next to the revision number. (https:...


7

There's another syntax for code blocks which is mentioned in the advanced formatting help. Surround the code by three backticks on a line of their own. The backticks have to be on their own line but don't need a blank line. ``` #!/bin/sh echo Hello, world. ``` This is rendered as #!/bin/sh echo Hello, world. This syntax also makes it easy to request ...


5

I'll just mention a significant consequence of that here as I was just hit by it: Apparently, articles that were last edited before the transition are still rendered the old way, so you don't need to edit your posts to convert them to the new syntax, but, if you edit an old article, whether it's yours or someone else's, then it needs to be in the new syntax. ...


5

No. That would be the same as linking, which means that should the gist disappear, the question/answer here becomes useless. Won't fix.


4

I have a high resolution screenshot from my mobile phone and I wanted to constrain the rendered view to 30% while leaving the image intact in case someone needed the detail. Then height and width are the wrong way to go about it, since the user still has to download the large image anyway. What you should use is imgur's built-in thumbnailing facilities. For ...


3

Let me have a go code yes it works! I left a blank line before it. So the 'How to Format' should have told us about this!


3

You need to indent it with eight spaces instead of four: Numbered list Code block Line 2 Indenting a line right after a list indicated that it's part of that list item. If you make a new, non-indented line after the list, you'll see it's not part of that list: Numbered list Next line As compared to: Numbered list Next line (4 ...


3

Include a smaller image in your post and link to the larger image. With images uploaded to Stack Exchange's imgur server (as they should), you can add s or m to get a smaller image. [![](http://i.stack.imgur.com/zFhbRm.jpg)](http://i.stack.imgur.com/zFhbR.jpg) You can also specify width and height attributes in the img tag to perform arbitrary resizing. ...


3

The "code" is being syntax-highlighted as a bash script because the question has the bash tag. You can override it by putting a comment before the code block: <!-- language: lang-none --> But the real solution in this case is to not use code blocks for non-code, particularly within a block quote


3

Will this put everything below this in a <code> tag on the mobile site (and maybe also on the desktop site on some computers / browsers)? I think it did. (I deleted it because it messed up the sandbox, see edit history, Kusalananda)


2

I don't know where you've seen these "wrong" examples. The basic rule is that one is italic and two is bold: _italic1_ and *italic2* : italic1 and italic2 __bold1__ and **bold2** : bold1 and bold2 Finally, three means italic and bold: ***italic & bold*** and ___italic & bold___ : italic & bold and italic & bold That's exactly what is ...


1

The behavior you are seeing is a design feature: in Markdown you need a blank line to signal the and of a paragraph. Spaces or tabs at the beginning of a line are not enough to make it a different block from the preceding (non blank) line(s). This is documented both in Help Center > Our Model > How do I format my posts using Markdown or HTML? (briefly, ...


1

Code block formatting test. code goes here Now this: more here From problematic answer: for example: ip,time,name,_random 1.1.1.1,2018-08-31 11:12:32,python,65536 1.1.1.1,2018-08-31 11:12:32,python,42 or ip,time,name,_seq 1.1.1.1,2018-08-31 11:12:32,python,1 1.1.1.1,2018-08-31 11:12:32,python,2 But, you can not use too many numbers for the same ...


Only top voted, non community-wiki answers of a minimum length are eligible