Skip to main content

Text File Previews

You can preview many types of text based documents, such as source code files, structured data files, unformatted text files, and markdown files. Source code files include syntax highlighting for most language types.

File TypeExtensions Supported
Structured data files
.xml
.json
Unformatted text files
Markdown files
.md
.markdown
.mdown
.mkdn

Additional Text File Extensions

Site Administrators can customize your site's Viewer & Editor settings to supply additional file extensions that use the text previewer.

One common reason to enable this option is to prevent automatic conversion of a delimited file, such as CSV, to a spreadsheet file. Viewing CSV files directly avoids problems with large numbers or non-standard date formats.

Another reason to add an extension to your previewer is when a system produces plain text files with a nonstandard extension. For example, if you transfer a delimited text file for invoices that ends in the extension .inv, you cannot preview those files without adding the extension to your site's settings.

Supported Source Code Languages

Our previewer supports the associated files of over 280 programming languages. Source files using standard extensions preview within Files.com with automatic syntax highlighting.

For source code files that do not use a standard extension, add that extension as a custom text file extension for your site. You can then preview the files within Files.com, though without automatic syntax highlighting.