Text-based also refers to documents that contain only text, such as program source code, batch and shell scripts as well as HTML and XML files. Text-based documents are readable in any text editor and most word processors.