Style roles
The extension registers roles styling inline text, and a stylesheet giving them their meaning, linked into every HTML page.
Role |
Renders |
|---|---|
|
bold and italic |
|
underlined |
|
struck through |
|
extra large |
|
red |
|
green |
|
blue |
|
purple |
|
deleted |
|
added |
A :red:`warning` and a :deletion:`removed` word.
A style role puts CSS classes on the text; the stylesheet gives them their meaning. :deletion: and
:addition: are the two a diff needs.
Every colour and size is a CSS custom property, so a project changes it without replacing the stylesheet - in
a stylesheet of its own, listed in html_css_files:
:root {
--pyTooling-color-red: #b00020;
}
The properties are --pyTooling-color-red, -green, -blue, -purple and
--pyTooling-xlarge-size.