summaryrefslogtreecommitdiff
path: root/doc/_templates
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-12-26 13:37:23 +0100
committerMartin Fischer <martin@push-f.com>2021-12-26 21:19:27 +0100
commit50dac345d815f2f266e1e3d90072a4e62a3cd139 (patch)
treeb1527d1ccb43b068878c00e696c105b2cf238b6a /doc/_templates
parent82fb9ab6be22251f0a9d7813867f773d94d78d02 (diff)
downloadpygments-git-50dac345d815f2f266e1e3d90072a4e62a3cd139.tar.gz
demo: promote styles with a good contrast
Diffstat (limited to 'doc/_templates')
-rw-r--r--doc/_templates/demo.html11
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>
&nbsp;&nbsp;&middot;&nbsp;&nbsp;
<label for="style">Style:</label> &nbsp;<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> &nbsp;
<input type="file" id="file" onchange="new_file()"> &nbsp; or enter code below:</p>