Using the viewer, is there a way to parse a file (say a .go file) as a file type (in the previous case, say txt) for viewing?
Just not finding anything on it…
Using the viewer, is there a way to parse a file (say a .go file) as a file type (in the previous case, say txt) for viewing?
Just not finding anything on it…
Yes, you can render any file as a text file by passing LoadOptions
as it show in Specify file type when loading a document.
LoadOptions textLoadOptions = new LoadOptions(FileType.TXT);
using (Viewer viewer = new Viewer("main.go", textLoadOptions)
{
HtmlViewOptions viewOptions = HtmlViewOptions.ForEmbeddedResources();
viewer.View(viewOptions);
}