View Text Files


Text files contain plain unformatted text. Text files can be opened by text-editor apps such as Microsoft Notepad or text-processing apps like Microsoft Word.

Supported Text Files

The following Text Files are supported by the GroupDocs.Viewer for Java

Auto Detection means that GroupDocs.Viewer can determine the type of the Text file by analyzing file contents.

File ExtensionFile TypeAuto Detection
.TXTPlain Text File(tick)
.XMLXML File(tick)
.LOGLog File 
.CSC# source code 
.VBVisual Basic source code 
.ASActionScript File 
.AS3ActionScript File 
.ASMAssembly Language Source Code File 
.BATDOS Batch File 
.CC/C++ Source Code File 
.CCC++ Source Code File 
.CMAKECMake File 
.CPPC++ Source Code File 
.CSSCascading Style Sheet 
.CXXC++ Source Code File 
.DIFFPatch File 
.ERBRuby ERB Script 
.GROOVYGroovy Source Code File 
.HC/C++/Objective-C Header File 
.HAMLHaml Source Code File 
.HHC++ Header File 
.JAVAJava Source Code File 
.JSJavaScript File 
.JSONJavaScript Object Notation File 
.LESSLESS Style Sheet 
.LOGLog File 
.MObjective-C Implementation File 
.MAKEXcode Makefile Script 
.MLML Source Code File 
.MMObjective-C++ Source File 
.PHPPHP Source Code File 
.PLPerl Script 
.PROPERTIESJava Properties File 
.PYPython Script 
.RBRuby Source Code 
.RSTreStructuredText File 
.SASSSyntactically Awesome StyleSheets File 
.SCALAScala Source Code File 
.SCMScheme Source Code File 
.SCRIPTGeneric Script File 
.SHBash Shell Script 
.SMLStandard ML Source Code File 
.SQLStructured Query Language Data File 
.VIMVim Settings File 
.YAMLYAML Document 

Note: to get actual information about supported formats it is recommended to call getSupportedFileTypes() method of FileType class

In this section

The articles given in this section describes the usage of GroupDocs.Viewer to convert Text files with different available options.