开发者

How to launch a browser in view source mode?

I want to open a file in a web browser (anyone will do) and I want to see it in the view source mode instead of in the standard browser window. This can be done in two steps, by opening the file and then go to the view source window (different shortcuts in each browser), but I want to directly go to the view source wi开发者_开发问答ndow. I have not found any such command line argument for Firefox nor Chrome.

Is this possible just with the base browser functionality?


In Chrome and Firefox you can use the view-source URI scheme by prefixing your URLs with view-source: as in the following example:

view-source:http://stackoverflow.com/questions/2831226/
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜