howdy all--
is there a way to dump all of class' docs (printed according to hierarchy) into a file?
thanks all. I LOVE SQUEAK! jason
Jason McVay wrote:
howdy all--
is there a way to dump all of class' docs (printed according to hierarchy) into a file?
With Squeak there almost always a way :-) The attached changeset has two ClassDescription methods which write class comments for a class and all of its subclasses into an html file. If you send this message to Object, the file will be large - mine is over 700K.
thanks all. I LOVE SQUEAK! jason
'From Squeak 2.4a of April 21, 1999 on 30 July 1999 at 10:34:28 am'!
!ClassDescription methodsFor: 'PASS' stamp: 'LPR 7/30/1999 10:29'! allCommentsOn: anHtmlFileStream self subclasses do: [:each | anHtmlFileStream command: 'h3'; nextPutAll: each name; command: '/h3'; cr; nextPutAll: each comment; command: 'blockquote'. each allCommentsOn: anHtmlFileStream. anHtmlFileStream command: '/blockquote']! !
There are several "ReferenceManualWriters" for Squeak. I wrote one that's available as part of my goodies collection. The source code is in ftp://ftp.create.ucsb.edu/pub/Squeak/goodies/STP12/STP12/System/Utilities-html.st and an example of the output can be found in http://www.create.ucsb.edu/Siren/Siren.Reference.html
stp
Jason McVay wrote:
howdy all--
is there a way to dump all of class' docs (printed according to hierarchy) into a file?
squeak-dev@lists.squeakfoundation.org