How to launch the browser in view mode?

I want to open the file in a web browser (someone will do it), and I want to see it in the view source mode, and not in the standard browser window. This can be done in two stages by opening the file, and then go to the view source window (different shortcuts in each browser), but I want to go directly to the view source window. I did not find such a command line argument for Firefox and Chrome.

Is this only possible with basic browser features?

+6
html browser
source share
1 answer

In Chrome and Firefox, you can use the view-source URI scheme by first specifying your view-source: URLs, as shown in the following example:

 view-source:http://stackoverflow.com/questions/2831226/ 
+7
source share

All Articles