[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] [Comments?]XML doc? Fwd: html doc




On Feb 13, 2004, at 5:04 AM, James McCartney wrote:

Well currently if you have a help file open you can not only select and execute the examples directly, but you can also edit the values or change a WhiteNoise to a PinkNoise, etc, and see what happens. If the docs were in HTML you couldn't do that. You'd have to copy them somewhere else to edit them. 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.

What I'd been working on converted an HTML file to an NSAttributedString. Could be edited just as well as RTF. It then parsed that back to HTML when you saved. There were some diffficulties (and probably a need for a small number of conventions to be followed) but I don't think those were insurmountable. Syntax coloration could be either saved (doesn't matter since you're not editing html) or done when the document is opened, according to a custom tag, or by looking for all text in Monaco, etc...

S.