为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Default source code viewer command line

  • 5 个回答
  • 4 人有此问题
  • 4 次查看
  • 最后回复者为 Southerner

more options

Not sure if this is the right place to ask this but does anyone know what is the command line to launch the built in source code viewer for FF please?

I've read someone that it's: "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" "view-source"

But this doesn't work.

If anyone's able to shed some light on it, that would be great.

Thanks.

Not sure if this is the right place to ask this but does anyone know what is the command line to launch the built in source code viewer for FF please? I've read someone that it's: "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" "view-source" But this doesn't work. If anyone's able to shed some light on it, that would be great. Thanks.

所有回复 (5)

more options

You can prefix an URL with the view-source: protocol to see the page source.

more options

Thanks.

That works but I'm trying to add the default source code viewer to the ViewSourceWith extension.

I add the path to FF and if I add view-source: as parameter then when I click to check the source using those details, a page loads with the following address: view-source:file:///C:/Program%20Files%20%28x86%29/Mozilla%20Firefox/

The contents of the page seem to list all the .dll files being used by FF.

Is there anything I can add to the parameters to make it load the current page in the source viewer please?

more options

The view source: does not give you the option to edit the source code. It only gives me the option to view it. I had notepad+ set as my external source viewer in version 16 but now I no longer have the option in 18 even though external viewer is set in config. What am I missing?

more options

(fixed for Southerner as per: [/questions/939775#answer-406824])

more options

I am back to having the same problem! When version 22.0 installed I lost the option to view source in Notepad++. The about lines still show that it should work but it does not. Control U brings up the source but in the Mozilla viewer which does not allow editing the source. What am I missing and why does it get reset?

I also noticed that with version 22 (32 bit for XP) the default printer is not the windows default printer but keeps the last printer used in Firefox even if that printer no longer exists.

Thank you for the help.