[erlang-questions] edoc macro
Ludovic Coquelle
lcoquelle@REDACTED
Thu Aug 16 03:49:20 CEST 2007
Hi,
I was trying to implement a "user defined macro" in edoc to automatically
generate an html formating of image inclusion (some 'div' tags for
alignment, caption etc).
I successfully defined a static macro with option like {def, [{mymacro,
"macro output"}]}. But I didn't succeed in using a function with something
like {def,[{dynmacro, fun mymod:myfun/3}]}. I had a quick look at edoc code,
and it seems there is a macro checking that ensure the macro body is a
string.
Is there any way to define a macro as a function in the same way it is done
internally in edoc?
Not related remark: has author's firstname a typo in proplists documentation
(or have proplists and edoc been written by different authors)?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070816/c7ef3ca9/attachment.htm>
More information about the erlang-questions
mailing list