> Doxygen has a pre-processor similar to the C/C++ pre-processor.  Is your
> Doxygen configuration, you can configure "macros" to replace the
> alternate keywords with their primary equivalents.

I wrote a little batch file (translate.sh) that calls "sed -f phpalt.sed $1"

And phpalt.sed contains:
/^\s*if\s*[(]/s/\:$/\{/
/^\s*while\s*[(]/s/\:$/\{/
/^\s*for\s*[(]/s/\:$/\{/
/^\s*foreach\s*[(]/s/\:$/\{/
/^\s*switch\s*[(]/s/\:$/\{/
/^\s*else:/s/else:/\}else\{/
/^\s*elseif\s*[(]/s/elseif/\}elseif/
s/endif;/\}/
s/endwhile;/\}/
s/endfor;/\}/
s/endforeach;/\}/
s/endswitch;/\}/

and set FILTER_PATTERNS to the value *.php=translate.sh

That seems to do the trick.

Thanks.

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users

Reply via email to