Added CreateDocExampleFormats()

`CreateDocExampleFormats()` allows to display output examples by
detecting file names.