format comment output
use types for inlinecontent