codeformat implemented

This allows you to format the document you are in