/usr/lib/s9fes/help/c2html is in scheme9 2010.11.13-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | S9 LIB (c2html <option> ...) ==> string | unspecific
Render C code in HTML with syntax highlighting. Input is read from
(current-input-stream) and output is written to (current-output-stream)
unless the 'INPUT-STRING: option is specified (see below).
The rendition of the C code will be placed in a PRE container of
the class "ccode" (<PRE class=ccode>). The following container
classes are used to specify the colors and other styles of the
individual elements:
o comment
p punctuation
s symbol
c constant
r reserved word/operator
l standard library symbol
x extension
See the "ccode.css" style sheet for examples.
The following <option>s exist;
'FULL-HTML: boolean
When set to #T, C2HTML will output a full HTML document
and not just a PRE container. Will not work in string mode.
'INPUT-STRING: string
Input is read from a string and output is written to a string.
In string mode, the 'FULL-HTML: option does not work. When this
option is set, the result of the procedure will be of the form:
(attributes string)
where STRING is the output of the rendering process. See the
description of 'INITIAL-STYLE: for more information on the
ATTRIBUTES part. The output string of SCM2HTML is always
lacking a trailing </SPAN> element.
'INITIAL-STYLE: list
Initialize the color class and boldface flag with the values taken
from LIST. LIST should be the car part of an object returned by
C2HTML previously. It allows to render multiple lines that are
logicall connected by preserving the style across line boundaries.
(c2html 'input-string: "x++")
==> (("r" #f)
"</SPAN><SPAN class=s>x</SPAN><SPAN class=r>++")
|