Don't parse document with null filename.
Disable problematic fullscreen mode on osx.
Only enable codedom templates for projects that support codedom.
Handle boundary conditions when generating file from template.