-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 18.12.2010 20:15, schrieb Jean-Daniel: > Hello, > > I am a big fan of literalinclude and especially its pyobject option > [1]. For those not familiar with, this extract an object from a Python > source file to display the formatted source code. Before that, I would > the option lines and would have to count which lines of the source > file to be included. > > Now that I can write documentation for code on other languages, I want > even more: is it possible to extract objects from other languages, say > C functions with a syntax similar to : > > .. literalinclude:: my_source.c > :c:object: main > > Is such a feature supported?
It *could* certainly be supported, but someone needs to write the code to do that. For C (and C++) it would probably mean a full parser since C function definitions are not really easily recognizable. Having such a parser would also make the starting of a "autodoc for C" possible. cheers, Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAk0kqSkACgkQN9GcIYhpnLBxPwCbB5chOa5XklasJsgg896Llr2g CQoAoJrMO5lYx27LTeudRqaP82ZTjTFT =QFCW -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.
