Ask Your Question
1

meta-question: post formatting

asked 2020-02-16 08:43:32 -0500

grobber gravatar image

updated 2020-02-16 09:23:50 -0500

I am new to this board and having some trouble finding documentation for how to format posts. I am familiar with markdown and have posted on the various Stack Exchange forums before, but I find the triple-backtick convention for block code does not work as expected here.

How would I produce, for instance, paragraphs of code set out with different background as seen in numerous posts on the board which I unfortunately do not have enough "karma" to link to..

The Markdown basics "cheatsheet" I can see on the right hand side of the present text-entry form says nothing about such matters, and for the life of me I cannot see a quote button on others' posts so I can examine the "source code" myself.

Nor do the help and faq sections seem to shed any light on this.


Edit:

More than anything, the issue is the inability to (easily?) quote someone's post. A clickable quote button on some of the many posts containing the type of formatting I want to do would show me anything I need to learn.

Am I missing any obvious quoting options here?


2nd Edit:

With enough karma, I believe I can now post the link to this related question for completeness.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
3

answered 2020-02-16 09:12:14 -0500

rburing gravatar image

You can create a code block by indenting the code by four spaces. A fast way to do this is to select the code and press the 101010 button in the editor, or use its keyboard shortcut Ctrl+K.

There is no quote button which copies the source of an existing post. When you get enough karma you will be able to edit other people's posts, which allows you to see (and copy) the source for easier quoting.

edit flag offensive delete link more

Comments

Apologies for this: our posts crossed, and hence I duplicated some of the info in yours. I will accept the answer, as it settles my issue.

Thank you!

grobber gravatar imagegrobber ( 2020-02-16 09:14:09 -0500 )edit
1

answered 2020-02-16 09:10:11 -0500

grobber gravatar image

Some progress: though the triple-backtick syntax for block code does not seem to work, the four-space syntax does. So if I prepend four spaces in front of every line below, I get

#!/bin/bash
echo 'this is code'

The shortcut CTRL-K also apparently works for the same purpose.

Block quotes are just plain markdown, prepending > symbols in front of every line one wants to quote, as in

first quoted line

and the second

The question stands of whether it is possible to peek at others' post formatting by quoting the posts via this board's interface; I still do not see how to do that..

edit flag offensive delete link more
0

answered 2020-02-20 22:41:54 -0500

rana-aerea gravatar image

I experience the same trouble. I mimic triple backquotes enclosing a block by <pre> and </pre> enclosing a block.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2020-02-16 08:43:32 -0500

Seen: 93 times

Last updated: Feb 20