X
Tap here to go to the mobile version of the site.

Support Forum

When viewing a web page how do i display that web pages source code

Posted

IE provides in the view menu the option of displaying the source code of the page being viewed, I cannot find this function in firefox

IE provides in the view menu the option of displaying the source code of the page being viewed, I cannot find this function in firefox

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.5 r502
  • RealPlayer(tm) LiveConnect-Enabled Plug-In
  • RealPlayer Download Plugin
  • Adobe PDF Plug-In For Firefox and Netscape 10.1.5
  • RealNetworks(tm) RealDownloader Chrome Background Extension Plug-In
  • RealNetworks(tm) RealDownloader PepperFlashVideoShim Plug-In
  • RealNetworks(tm) RealDownloader HTML5VideoShim Plug-In
  • RealDownloader Plugin
  • A plugin to detect whether the Adobe Application Manager is installed on this machine.
  • Google Update
  • RealNetworks(tm) RealPlayer Chrome Background Extension Plug-In
  • RealPlayer(tm) HTML5VideoShim Plug-In
  • 4.1.10329.0
  • Picasa plugin
  • NPWLPG
  • The plug-in allows you to open and edit files using Microsoft Office applications
  • Office Authorization plug-in for NPAPI browsers
  • np-mswmp

Application

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

More Information

cor-el
  • Top 10 Contributor
  • Moderator
12302 solutions 113913 answers

Helpful Reply

  • Firefox > Web Developer > Page Source
  • Tools > Web Developer > Page Source (Ctrl+U)
  • Right-click on a web page to open the context menu and select View Page Source
*Firefox > Web Developer > Page Source *Tools > Web Developer > Page Source (Ctrl+U) *Right-click on a web page to open the context menu and select View Page Source
Southerner 0 solutions 12 answers

That would be helpful except that it does not open the page in the external page source editor that I have set in config. It still opens it in the default Firefox page source viewer which is lame and useless for editing!

That would be helpful except that it does not open the page in the external page source editor that I have set in config. It still opens it in the default Firefox page source viewer which is lame and useless for editing!
cor-el
  • Top 10 Contributor
  • Moderator
12302 solutions 113913 answers

You can first open the source code in a Firefox tab with the view-source: protocol and then use View Page Source (Ctrl+U) to open the source in the external editor.

You can first open the source code in a Firefox tab with the view-source: protocol and then use View Page Source (Ctrl+U) to open the source in the external editor.
Southerner 0 solutions 12 answers

That does not work, at least on my installation. It merely opens the source page in a second Firefox source viewer window and not in an external editor window. I have the path to my Notepad++ escaped as suggested elsewhere but it does not get called or opened.

That does not work, at least on my installation. It merely opens the source page in a second Firefox source viewer window and not in an external editor window. I have the path to my Notepad++ escaped as suggested elsewhere but it does not get called or opened.
cor-el
  • Top 10 Contributor
  • Moderator
12302 solutions 113913 answers

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

''(fixed for Southerner as per: [[/questions/939775#answer-406824]])''
Southerner 0 solutions 12 answers

Helpful Reply

As Cor-el said, it is working now.

that worked. No changes that I made in about:config seemed to make much difference but editing prefs.js directly as you suggested (for 64 bit Windows 7):

user_pref("view_source.editor.path", "C:\\\\Program Files (x86)\\\\Notepad++\\\\Notepad++.exe");

The config file shows the path to Notepad++ as being identical to what I had already entered! That entry is and was: C:\\Program Files (x86)\\Notepad++\\Notepad++.exe

It is ironic that entering it in Prefs.js made it work but putting it in via the about:config page did not.  Of course in prefs.js there are two back slashes for every one shown above.

Oh well, at least now it works.

Thank you.

As Cor-el said, it is working now. that worked. No changes that I made in about:config seemed to make much difference but editing prefs.js directly as you suggested (for 64 bit Windows 7): user_pref("view_source.editor.path", "C:\\\\Program Files (x86)\\\\Notepad++\\\\Notepad++.exe"); The config file shows the path to Notepad++ as being identical to what I had already entered! That entry is and was: C:\\Program Files (x86)\\Notepad++\\Notepad++.exe It is ironic that entering it in Prefs.js made it work but putting it in via the about:config page did not. Of course in prefs.js there are two back slashes for every one shown above. Oh well, at least now it works. Thank you.