How to format a quote or a snippet of source code when you post your question?

asked 2013-04-24 14:56:52 -0600

khoivu gravatar image

updated 2013-04-25 18:18:17 -0600

smaffulli gravatar image

Can someone show me how to format a snippet of source code when I post my question? How to highlight or color a phrase in red?

Thanks Khoivu

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-04-25 18:17:53 -0600

smaffulli gravatar image

You should be able to see a formatting toolbar where you compose your question. It allows to enter links and basic formatting, including adding images. Hit CTRL-K to add code like:

#this is a comment
ls $1
cd ...

and you can add quotes hittingl CTRL-,:

he said she said

and we went on like that

I include a screenshot below of this answer. Hope this helps.

image description

edit flag offensive delete link more


I know I can have basic format when I post a question. How is about when I post a comment? There is no format menu when you add a comment. For instance, I get a problem to format a content of a log file.

khoivu gravatar imagekhoivu ( 2013-04-26 08:52:50 -0600 )edit

How can you preformat a block of text rather than one line at a time?

khoivu gravatar imagekhoivu ( 2013-04-26 10:52:56 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2013-04-24 14:56:52 -0600

Seen: 1,474 times

Last updated: Apr 25 '13