views:

723

answers:

1

I want to view the HTML source of a web page, I've using ICSharpCode.TextEditor, Scintilla,... and they're all good. But, I have missed Firefox HTML source viewer.

I wonder if I can use Mozilla ActiveX Control to open the source viewer or is there a command line argument that make Firefox open it? Thanks!

+3  A: 

You can do that from the command line like:

$> firefox view-source:http://stackoverflow.com

Or you can put something like this in the URL bar: "view-source:http://stackoverflow.com"

If you happen to want to open it in a new window:

$> firefox -new-window view-source:http://stackoverflow.com

There is a reference at mozillazine.org.

GreenReign
Btw, do u know the way to open the find toolbar? I also wondering how to get the content of the HTML document
NVA
Those tasks are a bit more technical, and I don't have a good answer off the top of my head. You can use the `System.Net.WebClient` class to easily download various things.
GreenReign