Add functionality to write some tags in CAPI reference. refs #7033

Patched by wanabe. Thanks!!!