Shop OBEX P1 Docs P2 Docs Learn Events
SXB documentation extractor — Parallax Forums

SXB documentation extractor

Peter VerkaikPeter Verkaik Posts: 3,956
edited 2009-03-22 14:52 in General Discussion
Hi,

Attached is·a small tool I wrote to extract documentation
from SXB sources.

When there is a tag '{$doc+} at column 1
all lines following that tag will be written to a .doc file
until a tag '{$doc-} at column 1 is encountered after
which lines are suppressed until another '{$doc+}
is encountered. Simple but effective as it allows
exactly what will be·written to the .doc file.

It is a commandline tool. You run it like
SXBdoc filename<enter>
If the filename contains spaces, enclose the filename in double quotes.
The extension .SXB is assumed and must not be given.
A file filename.doc will be generated.
Edit:
Also attached are two configuration files for the Crimson Editor (in SXBspec.zip).
Place those files in the Crimson folder spec.
When you load the .doc in the Crimson Editor, select
Document->Syntax Type->SXB
and you get colored comments and highlighted keywords.
You can then use a free pdf printer like pdf995 or primopdf
to print the documentation in full color.


regards peter

Post Edited (Peter Verkaik) : 3/22/2009 1:54:34 PM GMT

Comments

Sign In or Register to comment.