Re: Markup for commands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 18, 2015 at 3:19 PM, Roland Illig <roland.illig@xxxxxx> 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@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos-docs



--
---~~.~~---
Mike
//  SilverTip257  //
_______________________________________________
CentOS-docs mailing list
CentOS-docs@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos-docs

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Users]     [CentOS Virtualization]     [Linux Media]     [Asterisk]     [Netdev]     [X.org]     [Xfree86]     [Linux USB]     [Project Hail Cloud Computing]

  Powered by Linux