Randall Sawyer wrote:
> Would it be helpful to establish a way to view the 'usage text' of a macro
> without having to load its entire include file into an editor?
>
> One solution would be to require a
>
> #declare foo_usage = 'string literal'
Have a look at perl .pm files. they use a special form of markup to make the
documentation. e.g.
http://world.std.com/~swmcd/steven/perl/module_pod.html
real-world example:
http://search.cpan.org/src/WADG/GD-Graph3d-0.63/lib/GD/Graph3d.pm
It also handles things such as dependencies etc. In POV there's no reason why
we could not use specially-formatted comments. (This is already regular
practice for C++, with various docgen tools helping to fill it out).
if a similar system was in place with POV, there's no reason why a POV editor
can't pick up the info automatically and show help for a macro (particularly
when typing in the definition to use it).
-- Chris
Post a reply to this message
|