wiki-format-scheme


Scheme markup

We also have a special markup to highlight Scheme code. Use {{{scheme to begin a scheme section, and }}} to end it. So

 {{{scheme
 (define (fac n)
    (if (zero? n)
        1
        (* n (fac (- n 1)))))
 }}} 

will look like this:

 (define (fac n) 
    (if (zero? n) 
        1 
        (* n (fac (- n 1))))) 

If you have a CSS-aware browser, you will be able to highlight subexpressions by moving your pointing device over them.

Note: It seems that Internet Explorer does not support the HOVER pseudo-class, so you might not be able to use that particular feature. KHTML-based browsers such as Konqueror also have some problems rendering highlighting of nested <span>s correctly.

soegaard

Peter Nederlof has a solution for this. The trick is to let IE retrieve a behaviour file that enables :hover. Since other browers doesn't recognize behaviours, they will just ignore it. For more details see http://www.xs4all.nl/~peterned/csshover.html . (If you happen to have "More Eric Meyer on CSS" see page 124 and 131)



category-this-wiki