0

I am working on a VSIX(Visual Studio Extension) project where I am fetching html text from a Service. I need to open the retrieved html text in the Visual Studio Editor. Any idea on how to achieve it or any sample code ?

Thanks

Pratish Nair
  • 111
  • 12

2 Answers2

3

You can save the text to a .html file and then open it in the VS editor with DTE.ItemOperations.OpenFile(file);

Sergey Vlasov
  • 26,641
  • 3
  • 64
  • 66
2

Take a look at AutoFindReplace extension which opens existing files in the editor window. You can download it from the VS Gallery.

kenorb
  • 155,785
  • 88
  • 678
  • 743
Greg Trevellick
  • 1,361
  • 1
  • 16
  • 26