[CentOS-docs] Markup for commands

Wed Aug 19 17:09:59 UTC 2015
Mike - st257 <silvertip257 at gmail.com>

On Tue, Aug 18, 2015 at 3:19 PM, Roland Illig <roland.illig at gmx.de> wrote:

> Hi,
>
> I just edited http://wiki.centos.org/de/TipsAndTricks/BecomingRoot and
> formatted all the commands in section 1.1 as `monospace`. Since the main
> font and the monospace font look quite similar, it is sometimes
> difficult to see where one ends and the other starts.
>

There is already a convention used on other wiki pages that sounds like
what you want to do.
Example usage on the Yum page -
https://wiki.centos.org/TipsAndTricks/YumAndRPM


>
> Therefore I propose to add the following CSS rule to the whole CentOS wiki:
>
> #page tt.backtick {
>   background-color: #eee;
>   padding: 0 0.3em;
> }
>
> Using this styling, the commands stick out of the normal text, so that
> lazy readers can quickly scan through them. Additionally, the padding to
> the left and right helps when copying such a command to the clipboard.
>
> By the way, this styling is also used on StackOverflow, so it is quite
> popular already. It’s nothing that I just invented myself.
>
> Any comments?
>
> Roland
> _______________________________________________
> CentOS-docs mailing list
> CentOS-docs at centos.org
> http://lists.centos.org/mailman/listinfo/centos-docs
>



-- 
---~~.~~---
Mike
//  SilverTip257  //
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-docs/attachments/20150819/a2a29dc1/attachment-0006.html>