Creates the a text editor data object which document can't be changed. This is useful for 'view' only documents.
The Document itself is very fast because it uses a special case buffer and line splitter implementation. Additionally highlighting is turned off as default.