background : 0xa7b7b0 foreground : 0x000000 font_family : Bitstream Vera Sans
# This example shows nested dictionaries gui : { bgcolor : 0xb7b7b7 # hexadecimal numbers fgcolor : 0x101010 font : { family : bitstream vera sans # unquoted strings are just fine size : 10 weight : bold slant : roman } } text_area : { bgcolor : 0xffffc7 fgcolor : 0x000040 font : { family : bitstream vera sans mono size : 10.5 weight : medium slant : roman } }
This file is a mapping of mime type handlers, using the well-known *major-type*/*minor-type* notation. This is perhaps the most intuitive approach for users; on the other hand, the dictionary keys can't be used as identifiers in most languages, so this format is undesirable in some cases (as in the OCaml object interface).
text/plain : gvim text/html : bluefish text/* : gvim image/jpeg : gimp image/png : gimp image/gif : gimp image/xcf : gimp image/miff : display
Another mime type handler mapping; this time we use nested dictionaries to represent the same data, and the keys are likely to be usable as identifiers.
text : { plain : gvim html : bluefish _other : gvim } image : { jpeg : gimp png : gimp gif : gimp xcf : gimp miff : display }