X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

Default source code viewer command line

Posted

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.

Post a Reply

Additional System Details

Installed Plug-ins

  • Next Generation Java Plug-in 10.13.2 for Mozilla browsers
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Shockwave Flash 11.5 r502
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • RealJukebox Netscape Plugin
  • RealPlayer(tm) HTML5VideoShim Plug-In
  • RealPlayer(tm) LiveConnect-Enabled Plug-In
  • 6.0.12.732
  • Nokia Suite Enabler Plugin
  • GEPlugin
  • Adobe Shockwave for Director Netscape plug-in, version 11.6.8.638
  • Adobe PDF Plug-In For Firefox and Netscape 11.0.0
  • NPWLPG
  • LightshotPlugin
  • 5.1.10411.0
  • Version 0.9.19, Copyright 2006-2012 Veetle Inchttp://www.veetle.com/
  • Version 0.9.18, copyright 2006-2010 Veetle Inchttp://www.veetle.com/
  • iTunes Detector Plug-in
  • IE Tab Plug-in for Mozilla/Firefox
  • The plug-in allows you to open and edit files using Microsoft Office applications
  • Office Authorization plug-in for NPAPI browsers

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0

More Information

cor-el
  • Top 10 Contributor
  • Moderator
8461 solutions 80004 answers
Posted

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

Was this helpful to you? 4
Reply
Posted

Question owner

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?

Was this helpful to you?
Reply
Southerner 0 solutions 9 answers
Posted

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?

Was this helpful to you?
Reply
cor-el
  • Top 10 Contributor
  • Moderator
8461 solutions 80004 answers
Posted

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

Was this helpful to you?
Reply

Post a Reply

You must log in to your account to reply to posts.

Don't have an account? You can create a free account now.