D o m i n i q u e   G u e b e y    J u n g l e      Bazar informatique

Le navigateur LYNX (suite)

ANNEXE C : fichiers de coloration .LSS

dg77.lss

exemple coloration lynx
# From: Dominique Guebey <dominique@dg77.net>
#
# default should be the *last* line
#
# The next line (beginning with "h1") means:  
# use bold if mono, otherwise yellow on black 
# (use 'default' for 
# <defaultbackground>/<defaultforeground>)
# %%% BLACK LETTERS, WHITE BACKGROUND
default:normal:black:white
# match "link":
input:normal:green
# %%%
input.type.submit:normal:brightblue:black
textarea:normal:lightgray:cyan
# type-less input is the same as type=text (similar to textarea)
input.type.:normal:lightgray:cyan
input.type.text:normal:lightgray:cyan
input.type.password:normal:lightgray:cyan
input.type.file:normal:brightred:cyan
# Shows gray on black?!
edit.current:normal:yellow:gray
#edit.current:normal:yellow:white
edit.active:normal:black:gray
edit.active.marked:normal:lightgray:black
edit.prompt:normal:white:gray
edit.prompt.marked:normal:black:gray
edit.active.arrow:normal:red:gray
edit.prompt.arrow:normal:red:gray
edit.active.pad:normal:red:gray
edit.prompt.pad:normal:lightgray:black
option:normal:red:yellow
#alink:normal:red:green
# %%% scroll.arrow:bold:gray:default
scroll.arrow:bold:gray:cyan
# %%% scroll.noarrow:normal:black:default
scroll.noarrow:normal:black:cyan
scroll.bar:bold:gray
#scroll.back:reverse:green:red
# %%%
status:reverse:yellow:cyan
h1:bold:yellow:black
em:bold:gray
em.a:reverse:black:blue
em.b:reverse:gray:white
# %%% font.letter:normal:default:black
font.letter:normal:default:lightgray
link.blue:bold:gray:brightblue
link.blue.prev:bold:yellow:brightblue
title:normal:brightmagenta:black
# %%% forwbackw.arrow:bold:red:default
forwbackw.arrow:bold:red:white
i:bold:black
table:normal:gray
blockquote:normal:gray
li.blue:bold:blue:black
link.blue.next:bold:blue:black
normal:normal:default:default
menu.bg:normal:black:gray
menu.frame:normal:black:gray
menu.entry:normal:black:gray
menu.n:normal:black:gray
menu.active:normal:black:yellow
menu.sb:normal:brightred:lightgray
hot.paste:normal:brightred:gray
# xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# INCLUDE:lynx.lss
# xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# The next line (beginning with "em") means:  use bold if mono, otherwise
# brightblue on <defaultbackground>
em:bold:brightblue
strong:bold:brightred
b:bold:red
i:bold:brightblue
a:bold:green
img:dim:brown
fig:normal:gray
caption:reverse:brown
hr:normal:yellow
blockquote:normal:brightblue
ul:normal:brown
address:normal:magenta
title:normal:magenta
tt:dim:brightmagenta:default
h1:bold:yellow:blue
label:normal:magenta
q:normal:yellow:magenta
small:dim:default
big:bold:yellow
sup:bold:yellow
sub:dim:gray
lh:bold:yellow:magenta
li:normal:magenta
code:normal:cyan
cite:normal:cyan

table:normal:brightcyan
tr:bold:brown
td:normal:default
br:normal:default

# Special styles - not corresponding directly to HTML tags
#	alert	- status bar, when message begins "Alert".
#	alink	- active link
#	normal	- default attributes
#	status	- status bar
#	whereis	- whereis search target
#
#normal:normal:default:blue
alink:reverse:yellow:black
status:reverse:yellow:blue
alert:bold:yellow:red
whereis:reverse+underline:magenta:cyan
# currently not used
#value:normal:green
#high:bold:brightmagenta
forwbackw.arrow:reverse

# Styles with classes - <ul class=red> etc.
ul.red:underline:brightred
ul.blue:bold:brightblue
li.red:reverse:red:yellow
li.blue:bold:blue
strong.a:bold:black:red
em.a:reverse:black:blue
strong.b:bold:white:red
em.b:reverse:white:blue
strong.debug:reverse:green
font.letter:normal:default:blue
input.submit:normal:cyan
tr.baone:bold:yellow
tr.batwo:bold:green
tr.bathree:bold:red
#
# Special handling for link.
# %%%
link:normal:black
link.green:bold:brightgreen
link.red:bold:black:red
link.blue:bold:white:blue
link.toc:bold:black:white
# Special cases for link - the rel or title is appended after the class.
# <link rel=next class=red href="1">
link.red.next:bold:red
link.red.prev:bold:yellow:red
link.blue.prev:bold:yellow:blue
link.blue.next:bold:blue
link.green.toc:bold:white:green
#
# Define styles that will be used when syntax highlighting is requested
# (commandline option -prettysrc). 
span.htmlsrc_comment:normal:black
span.htmlsrc_tag:normal:black
#If you don't like that the tag name and attribute name are displayed 
#in different colors, comment the following line. 
span.htmlsrc_attrib:normal:cyan
span.htmlsrc_attrval:normal:magenta
span.htmlsrc_abracket:normal:black
span.htmlsrc_entity:normal:white
##span.htmlsrc_href:
##span.htmlsrc_entire:
span.htmlsrc_badseq:normal:red
span.htmlsrc_badtag:normal:red
span.htmlsrc_badattr:normal:red
span.htmlsrc_sgmlspecial:normal:yellow
# xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
default:normal:white:black

lynx.lss

exemple coloration lynx
# It's best to put these in a .lss file 
# and use "lynx -lss=file.lss whatever" for now.
#
# Normal type styles correspond to HTML tags.
#
# The next line (beginning with "em") means:  
# use bold if mono, otherwise brightblue on <defaultbackground>
em:bold:brightblue
strong:bold:brightred
b:bold:red
i:bold:brightblue
a:bold:green
img:dim:brown
fig:normal:gray
caption:reverse:brown
hr:normal:yellow
blockquote:normal:brightblue
ul:normal:brown
address:normal:magenta
title:normal:magenta
tt:dim:brightmagenta:default
h1:bold:yellow:blue
label:normal:magenta
q:normal:yellow:magenta
small:dim:default
big:bold:yellow
sup:bold:yellow
sub:dim:gray
lh:bold:yellow:magenta
li:normal:magenta
code:normal:cyan
cite:normal:cyan

table:normal:brightcyan
tr:bold:brown
td:normal:default
br:normal:default

# Special styles - not corresponding directly to HTML tags
#	alert	- status bar, when message begins "Alert".
#	alink	- active link
#	normal	- default attributes
#	status	- status bar
#	whereis	- whereis search target
#
#normal:normal:default:blue
alink:reverse:yellow:black
status:reverse:yellow:blue
alert:bold:yellow:red
whereis:reverse+underline:magenta:cyan
# currently not used
#value:normal:green
#high:bold:brightmagenta
forwbackw.arrow:reverse

# Styles with classes - <ul class=red> etc.
ul.red:underline:brightred
ul.blue:bold:brightblue
li.red:reverse:red:yellow
li.blue:bold:blue
strong.a:bold:black:red
em.a:reverse:black:blue
strong.b:bold:white:red
em.b:reverse:white:blue
strong.debug:reverse:green
font.letter:normal:default:blue
input.submit:normal:cyan
tr.baone:bold:yellow
tr.batwo:bold:green
tr.bathree:bold:red
#
# Special handling for link.
link:normal:white
link.green:bold:brightgreen
link.red:bold:black:red
link.blue:bold:white:blue
link.toc:bold:black:white
# Special cases for link - the rel or title is appended after the class.
# <link rel=next class=red href="1">
link.red.next:bold:red
link.red.prev:bold:yellow:red
link.blue.prev:bold:yellow:blue
link.blue.next:bold:blue
link.green.toc:bold:white:green
#
# Define styles that will be used when syntax highlighting is requested
# (commandline option -prettysrc). 
span.htmlsrc_comment:normal:white
span.htmlsrc_tag:normal:white
#If you don't like that the tag name and attribute name are displayed 
#in different colors, comment the following line. 
span.htmlsrc_attrib:normal:cyan
span.htmlsrc_attrval:normal:magenta
span.htmlsrc_abracket:normal:white
span.htmlsrc_entity:normal:white
##span.htmlsrc_href:
##span.htmlsrc_entire:
span.htmlsrc_badseq:normal:red
span.htmlsrc_badtag:normal:red
span.htmlsrc_badattr:normal:red
span.htmlsrc_sgmlspecial:normal:yellow

mild-colors.lss

exemple coloration lynx
# From: Vlad Harchev <hvv@hippo.ru> 
# Notes:
# better for eyes - it sets black background with 
# mild colors that have approximately the same intensity.
#
# grey normal text on black background 
# with green links and brightgreen highlighted links. 
#it's best to put these in a .lss file and use  
#"lynx -lss=file.lss whatever" for now. 
em:bold:cyan
strong:bold:cyan
dt:bold:cyan
var:bold:cyan
samp:bold:cyan
b:bold:cyan
i:bold:cyan
alink:reverse:brightgreen:default
a:bold:green
img:dim:cyan:default
status:reverse:cyan:default
fig:normal:gray
caption:reverse:cyan
hr:normal:gray
blockquote:normal:cyan:default
address:normal:cyan
title:normal:cyan:default
tt:normal:white:default
h1:bold:cyan:default
label:normal:cyan
value:normal:cyan
high:bold:cyan
q:normal:cyan
small:dim:cyan
big:bold:cyan
sup:bold:cyan
sub:dim:cyan
lh:bold:cyan
code:normal:cyan

span.htmlsrc_comment:normal:white
span.htmlsrc_tag:normal:cyan
##the following makes no difference (except increasing the speed) since tag
##is already in cyan.
#span.htmlsrc_attrib:normal:cyan
#span.htmlsrc_attrval:normal:magenta
span.htmlsrc_abracket:normal:cyan
span.htmlsrc_entity:normal:white
##span.htmlsrc_href:
##span.htmlsrc_entire:
span.htmlsrc_badseq:normal:red
span.htmlsrc_badtag:normal:red
span.htmlsrc_badattr:normal:red
span.htmlsrc_sgmlspecial:normal:yellow

blue-background.lss

exemple coloration lynx
# From: Sergey Svishchev <svs@ropnet.ru> 
# Notes: I use this in OS/2 VIO window, 
# and occasionally on Linux console. 
 
normal:normal:default:blue 
em:bold:brightgreen:blue 
strong:bold:brightred:blue 
b:bold:white:blue 
i:bold:yellow:blue 
alink:reverse:white:cyan 
a:bold:cyan:blue 
img:dim:gray:blue 
status:reverse:white:green 
fig:normal:gray:blue 
caption:reverse:brown:blue 
hr:normal:yellow:blue 
blockquote:normal:brightblue:blue 
#ul:normal:brown:blue 
address:normal:magenta:blue 
#title:normal:magenta:blue 
tt:dim:gray:blue 
h1:bold:yellow:blue 
label:normal:magenta:blue 
value:normal:green:blue 
high:bold:brightmagenta:blue 
q:normal:yellow:magenta 
small:dim:gray:blue 
big:bold:yellow:blue 
sup:bold:yellow:blue 
sub:dim:gray:blue 
lh:bold:yellow:magenta 
 
# glitch fixes 
area:normal:default:blue 
body:normal:default:blue 
br:normal:default:blue 
center:normal:default:blue 
center.header:normal:default:blue 
div:normal:default:blue 
font:normal:default:blue 
font.letter:normal:default:blue 
h2:normal:default:blue 
h3:normal:default:blue 
h4:normal:default:blue 
h5:normal:default:blue 
h6:normal:default:blue 
head:normal:default:blue 
link:normal:default:blue 
map:normal:default:blue 
meta:normal:default:blue 
p:normal:default:blue 
table:normal:default:blue 
td:normal:default:blue 
tr:normal:default:blue 
title:normal:default:blue 
 
form:normal:default:blue 
input:normal:default:blue 
input.submit:normal:cyan:blue 
select:normal:default:blue 
option:normal:default:blue 
 
pre:normal:default:blue 
dd:normal:default:blue 
dt:normal:default:blue 
ul:normal:default:blue 
li:normal:default:blue 
 
base:normal:default:blue 
iframe:normal:default:blue 
cite:normal:yellow:blue 

span.htmlsrc_comment:normal:green:blue 
span.htmlsrc_tag:normal:brightgreen:blue 
span.htmlsrc_attrib:normal:brightcyan:blue 
span.htmlsrc_attrval:normal:white:blue 
span.htmlsrc_abracket:normal:brightgreen:blue 
span.htmlsrc_entity:normal:white:blue 
##span.htmlsrc_href:
##span.htmlsrc_entire:
span.htmlsrc_badseq:normal:red:blue 
span.htmlsrc_badtag:normal:red:blue 
span.htmlsrc_badattr:normal:red:blue 
span.htmlsrc_sgmlspecial:normal:yellow:blue 
Cre : 19 oct 2004 - Maj : 20 oct 2004

A propos de ces pages / about these pages : http://www.dg77.net/about.htm
Gen : 21/04/2017-13:55:58,82