Add code markup to string constants

Elsewhere in the document colour names as strings have been marked up as
text, so this is in keeping with that.
This commit is contained in:
Dave Pearson
2022-10-13 21:57:08 +01:00
parent 279b043c81
commit 19c29bdb11

View File

@@ -50,7 +50,7 @@ Note how the combined height of the widget is three rows in the terminal. This i
There are a number of style attributes which accept colors. The most commonly used are [color](../styles/color.md) which sets the default color of text on a widget, and [background](..styles/background/md) which sets the background color (beneath the text).
You can set a color value to one of a number of pre-defined color constants, such as "crimson", "lime", and "palegreen". You can find a full list in the [Color reference](../reference/color.md#textual.color--named-colors).
You can set a color value to one of a number of pre-defined color constants, such as `"crimson"`, `"lime"`, and `"palegreen"`. You can find a full list in the [Color reference](../reference/color.md#textual.color--named-colors).
Here's how you would set the screen background to lime: