[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] [Comments?]XML doc? Fwd: html doc
On Fri, Feb 13, 2004 at 02:21:52AM -0800, James McCartney wrote:
> On Feb 13, 2004, at 2:04 AM, James McCartney wrote:
>
> >Or switch to the HTML source and edit that - not very interactive -
> >and if the text is syntax colored there will be so many tags embedded
> >in it that it will be nearly impossible to edit. You'd need a tool to
> >generate the html from a third representation.
>
> For example here is the WhiteNoise class source code, syntax colorized
> in HTML:
[snip nasty html]
> Not a format I'd want to be editing directly.
that's what i meant with 'preserving structural information': if
in an x(ht)ml representation there is a section enclosed in
e.g.
<code>
(
SynthDef("help-WhiteNoise", { arg out=0;
Out.ar(out,
WhiteNoise.ar(0.25)
)
}).play;
)
</code>
syntax colorization can be done on the fly.
as of not being able to edit code examples directly, i agree
there's a loss of interactiveness, which could be alleviated by
being able to open the current selection or all code sections in a
document in a separate 'workspace' window by means of a key
stroke. an inconvenience in fact, but a minor one imo.
<sk>