Color Code Example¶
这里是一些 Color Code 的示例. 你可以用 :Color:`text`
这样的语法在 RestructuredText 中书写带颜色的文字, 或者加入其他格式.
black
gray
silver
white
brown
maroon
red
magenta
fuchsia
pink
orange
yellow
lime
darkseagreen
green
olive
teal
cyan
aqua
dodgerblue
blue
blueviolet
purple
under
over
blink
line
strike
it
ob
small
large
这个项目使用了 custom-style.css
格式文件定义了 HTML CSS 格式. 然后在 .custom-style.rst
文件中将这些 HTML 格式注册为成了 .. role::
. 然后再在 rst_prolog 配置中包含了 .custom-style.rst
, 使得这些格式会在每一个 RST 文件中被加载.