diff options
author | Martin Fischer <martin@push-f.com> | 2021-12-26 13:37:23 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-12-26 21:19:27 +0100 |
commit | 50dac345d815f2f266e1e3d90072a4e62a3cd139 (patch) | |
tree | b1527d1ccb43b068878c00e696c105b2cf238b6a /doc/_templates | |
parent | 82fb9ab6be22251f0a9d7813867f773d94d78d02 (diff) | |
download | pygments-git-50dac345d815f2f266e1e3d90072a4e62a3cd139.tar.gz |
demo: promote styles with a good contrast
Diffstat (limited to 'doc/_templates')
-rw-r--r-- | doc/_templates/demo.html | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/doc/_templates/demo.html b/doc/_templates/demo.html index 85864533..2aa07d80 100644 --- a/doc/_templates/demo.html +++ b/doc/_templates/demo.html @@ -29,9 +29,16 @@ </select> · <label for="style">Style:</label> <select id="style"> - {% for style in styles %} - <option>{{style}}</option> + <optgroup label="Good contrast"> + {% for style in styles_aa %} + <option>{{style.name}}</option> {% endfor %} + </optgroup> + <optgroup label="Suboptimal contrast"> + {% for style in styles_sub_aa %} + <option>{{style.name}}</option> + {% endfor %} + </optgroup> </select></p> <p><label for="file">Upload a file here:</label> <input type="file" id="file" onchange="new_file()"> or enter code below:</p> |