Markup for commands

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

 



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.

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




[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