Re: [Doxygen-users] Adding Custom Commands to execute Shell Scripts
Brought to you by:
dimitri
From: Rosen D. <ros...@gm...> - 2010-07-18 02:03:22
|
hi all, Just curious, any ideas about adding such a feature. I was thinking it would be also possible to use it for syntax highlighting of languages beyond c++. even though our project is written in c++, it provides bindings to several other languages, so it would be really cool if we can put that code in doxygen and have a \shell command that runs on the args and outputs html code. There's a really awesome syntax highlighter for this called python-pygments (http://pygments.org/), so all that's missing is the doxygen part. I realize there is an INPUT_FILTER configuration, but I would really hate to have to spoon-feed doxygen this way. thanks, rosen, 2010/7/15 Rosen Diankov <ros...@gm...>: > dear doxygen users, > > It would be really great to be able to define a custom command in > doxygen that can execute a program on the shell and directly insert > its output into the doxygen parser. I was thinking this would be > possible with the ALIASES command, but only recursively replaces text, > it doesn't do any shell execution. > > Therefore, what do you think about the proposal of adding a \shell > command to doxygen? For example: > > \shell "progname args" > > Where progname could hypothetically run several examples on my > project, where each example generates images according to the "args" > of the program; the stdout output will be a set of "\image html > xxx.png" strings, which doxygen would happily parse and insert into > the documentation. > > Looking at the doxygen sources, the use of "portable_system" function > is pretty common, combining that with the aliases feature, we could > have a \shell command completed fairly quickly.. > > thanks, > rosen diankov, > |