如何启动在查看源文件模式浏览器? [英] How to launch a browser in view source mode?

查看:106
本文介绍了如何启动在查看源文件模式浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开一个浏览器中的文件(任何人都这样做),我想看到​​它在查看源文件模式,而不是在标准的浏览器窗口。这可以分两步来完成,通过打开该文件,然后去查看源代码窗口(在每个浏览器不同的快捷方式),但我想直接去查看源代码窗口。我还没有发现针对Firefox浏览器也没有任何这样的命令行参数。

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 window. I have not found any such command line argument for Firefox nor Chrome.

这可能只是基本浏览器功能?

Is this possible just with the base browser functionality?

推荐答案

在Chrome和Firefox,你可以使用查看源代码URI方案由$ p $ ,提供查看源代码pfixing您的网址:如下面的例子:

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/

这篇关于如何启动在查看源文件模式浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆