user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
			download mbox.gz: |
* [PATCH 1/2] contrib/css/216light: improve contrast a bit
  2019-10-31  9:19  6% [PATCH 0/2] CSS and source highlighting fixes Eric Wong
@ 2019-10-31  9:19  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2019-10-31  9:19 UTC (permalink / raw)
  To: meta

"#ff0" foreground on a "#fff" background is just too difficult
to distinguish, among other things.  So choose slightly darker
colors when using a (painful) "#fff" background.

---
 contrib/css/216light.css | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/contrib/css/216light.css b/contrib/css/216light.css
index 9451dc0..559a6b7 100644
--- a/contrib/css/216light.css
+++ b/contrib/css/216light.css
@@ -24,3 +24,27 @@ a:visited { color:#808 }
 *.del {color:#900 }
 *.head { color:#000 }
 *.hunk { color:#960 }
+
+/*
+ * highlight 3.x colors (tested 3.18) for displaying blobs.
+ * This doesn't use most of the colors available, as I find too
+ * many colors overwhelming, so the default is commented out.
+ */
+.hl.num { color:#f30 } /* number */
+.hl.esc { color:#f0f } /* escape character */
+.hl.str { color:#f30 } /* string */
+.hl.ppc { color:#c3c } /* preprocessor */
+.hl.pps { color:#f30 } /* preprocessor string */
+.hl.slc { color:#099 } /* single-line comment */
+.hl.com { color:#099 } /* multi-line comment */
+/* .hl.opt { color:#ccc } */ /* operator */
+/* .hl.ipl { color:#ccc } */ /* interpolation */
+
+/* keyword groups kw[a-z] */
+.hl.kwa { color:#f90 }
+.hl.kwb { color:#060 }
+.hl.kwc { color:#f90 }
+/* .hl.kwd { color:#ccc } */
+
+/* line-number (unused by public-inbox) */
+/* .hl.lin { color:#ccc } */

^ permalink raw reply	[relevance 7%]

* [PATCH 0/2] CSS and source highlighting fixes
@ 2019-10-31  9:19  6% Eric Wong
  2019-10-31  9:19  7% ` [PATCH 1/2] contrib/css/216light: improve contrast a bit Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2019-10-31  9:19 UTC (permalink / raw)
  To: meta

We'll only be supporting highlight.pm this release, so at
least try to do it right for people not using dark color
schemes.  My eyes are tired now after attempting to use
dillo and light colors :<

Eric Wong (2):
  contrib/css/216light: improve contrast a bit
  hval: replace "&apos;" with "&#39;" for compatibility

 contrib/css/216light.css | 24 ++++++++++++++++++++++++
 lib/PublicInbox/Hval.pm  |  3 +++
 t/hl_mod.t               |  3 ---
 3 files changed, 27 insertions(+), 3 deletions(-)


^ permalink raw reply	[relevance 6%]

Results 1-2 of 2 | reverse
2019-10-31  9:19  6% [PATCH 0/2] CSS and source highlighting fixes Eric Wong
2019-10-31  9:19  7% ` [PATCH 1/2] contrib/css/216light: improve contrast a bit Eric Wong

user/dev discussion of public-inbox itself

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://public-inbox.org/meta
	git clone --mirror http://czquwvybam4bgbro.onion/meta
	git clone --mirror http://hjrcffqmbrq6wope.onion/meta
	git clone --mirror http://ou63pmih66umazou.onion/meta

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 meta meta/ https://public-inbox.org/meta \
		meta@public-inbox.org
	public-inbox-index meta

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.mail.public-inbox.meta
	nntp://ou63pmih66umazou.onion/inbox.comp.mail.public-inbox.meta
	nntp://czquwvybam4bgbro.onion/inbox.comp.mail.public-inbox.meta
	nntp://hjrcffqmbrq6wope.onion/inbox.comp.mail.public-inbox.meta
	nntp://news.gmane.io/gmane.mail.public-inbox.general
 note: .onion URLs require Tor: https://www.torproject.org/

code repositories for project(s) associated with this inbox:

	https://80x24.org/public-inbox.git

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git