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

How to set external source code editor in Firefox v16

Posted

Hi..

could someone tell me how to set notepad++ as the default source code viewer in FF v16 please?

I've set view_source.editor.external to true and set notepad++ location in view_source.editor.path but the FF default one still opens page source.

Any help would be appreciated.

Thank you.

Chosen solution

It's working now! Not sure how or why, I just set the path again and it worked...used exactly the same path as before!

Would be nice if it worked for 'view selected source' too but that still opens in the default viewer but at least it's better than before.

Thanks for the help :)

Read this answer in context 0

Additional System Details

Installed Plug-ins

  • Next Generation Java Plug-in 10.7.2 for Mozilla browsers
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Shockwave Flash 11.4 r402
  • RealJukebox Netscape Plugin
  • RealPlayer(tm) HTML5VideoShim Plug-In
  • RealPlayer(tm) LiveConnect-Enabled Plug-In
  • 6.0.12.732
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • Adobe Shockwave for Director Netscape plug-in, version 11.6.7.637
  • Nokia Suite Enabler Plugin
  • 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
  • GEPlugin
  • Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
  • 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:16.0) Gecko/20100101 Firefox/16.0

More Information

Application Basics
Name
Firefox
Version
16.0.1
User Agent
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0
Profile Folder
Show Folder
Enabled Plugins
about:plugins
Build Configuration
about:buildconfig
Crash Reports
about:crashes
Memory Use
about:memory
Extensions
Name
Version
Enabled
ID
Adblock Plus
2.1.2
true
{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}
AutoPagerize
0.9.5
true
jid0-tKjnEA5X3eBoP5HnqjBYQ4U3AcM@jetpack
Brief
1.6.2
true
brief@mozdev.org
British English Dictionary
1.19.1
true
en-GB@dictionaries.addons.mozilla.org
Click&Clean
4.0
true
clickclean@hotcleaner.com
Download Statusbar
0.9.10
true
{D4DD63FA-01E4-46a7-B6B1-EDAB7D6AD389}
DownThemAll!
2.0.15
true
{DDC359D1-844A-42a7-9AA1-88A850A938A8}
Easy YouTube Video Downloader
6.5
true
{c0c9a2c7-2e5c-4447-bc53-97718bc91e1b}
Element Properties
7
true
properties@darktrojan.net
FireGestures
1.6.18
true
firegestures@xuldev.org
Flagfox
4.2.2
true
{1018e4d6-728f-4b20-ad56-37578a4de76b}
Flashblock
1.5.15.1
true
{3d7eb24f-2740-49df-8937-200b1cc08f8a}
Forecastfox
2.2.2
true
{0538E3E3-7E9B-4d49-8831-A227C80A7AD3}
Google Translator for Firefox
2.1.0.2
true
translator@zoli.bod
Greasemonkey
1.4
true
{e4a8a97b-f2ed-450b-b12d-ee082ba24781}
IE Tab +
2.04.20110724
true
coralietab@mozdev.org
Image Zoom
0.4.6
true
{1A2D0EC4-75F5-4c91-89C4-3656F6E44B68}
LastPass
2.0.0
true
support@lastpass.com
Lightshot (screenshot tool)
3.0.0
true
{394DCBA4-1F92-4f8e-8EC9-8D2CB90CB69B}
New Tab Homepage
0.4.3
true
{66E978CD-981F-47DF-AC42-E3CF417C1467}
Omnibar
0.7.14.20120803
true
omnibar@ajitk.com
Password Exporter
1.2.1
true
{B17C1C5A-04B1-11DB-9804-B622A1EF5492}
Popup ALT Attribute
2.0.2011082901
true
{61FD08D8-A2CB-46c0-B36D-3F531AC53C12}
Print Edit
8.8
true
printedit@DW-dev
QuickDrag
2.1.3.23
true
quickdrag@mozilla.ktechcomputing.com
Search by Image for Google
1.2.0
true
{ab4b5718-3998-4a2c-91ae-18a7c2db513e}
SmoothWheel (AMO)
0.45.6.20100202.1
true
{5F590AA2-1221-4113-A6F4-A4BB62414FAC}
Speed Dial
0.9.6.10
true
{64161300-e22b-11db-8314-0800200c9a66}
Tab Preview
0.3
true
{1de0de3c-0b5c-4f67-90c6-689623894991}
Textarea Cache
0.8.8
true
{578e7caa-210f-4967-a0d3-88fe5b59a39f}
Thumbnail Zoom Plus
2.3
true
thumbnailZoom@dadler.github.com
Unhide Passwords
1.2.7.0
true
{2e17e2b2-b8d4-4a67-8d7b-fafa6cc9d1d0}
RealPlayer Browser Record Plugin
1.1.4
false
{ABDE892B-13A8-4d1b-88E6-365A6E755758}
Important Modified Preferences
Name
Value
accessibility.typeaheadfind.flashBar
0
browser.cache.disk.capacity
1048576
browser.cache.disk.smart_size.first_run
false
browser.cache.disk.smart_size_cached_value
640000
browser.display.background_color
#C0C0C0
browser.display.use_system_colors
true
browser.history_expire_days.mirror
2
browser.link.open_newwindow
1
browser.places.importBookmarksHTML
false
browser.places.importDefaults
false
browser.places.leftPaneFolderId
-1
browser.places.migratePostDataAnnotations
false
browser.places.smartBookmarksVersion
4
browser.places.updateRecentTagsUri
false
browser.search.suggest.enabled
false
browser.search.update
false
browser.search.useDBForOrder
true
browser.sessionstore.resume_from_crash
false
browser.startup.homepage
chrome://speeddial/content/speeddial.xul
browser.startup.homepage_override.buildID
20121010144125
browser.startup.homepage_override.mstone
16.0.1
browser.tabs.insertRelatedAfterCurrent
false
browser.tabs.loadInBackground
false
browser.tabs.warnOnClose
false
dom.disable_open_during_load
false
dom.ipc.plugins.enabled.npietab2.dll
true
extensions.lastAppVersion
16.0.1
font.name.serif.x-western
Segoe UI
gfx.direct3d.prefer_10_1
true
network.cookie.prefsMigrated
true
network.http.max-persistent-connections-per-server
22
places.database.lastMaintenance
1349903120
places.history.expiration.transient_current_max_pages
104858
places.history.expiration.transient_optimal_database_size
167772160
places.last_vacuum
1301745860
plugin.disable_full_page_plugin_for_types
audio/x-mpeg,audio/mpeg,audio/wav,video/x-mpeg,audio/x-wav,video/quicktime,audio/midi,audio/x-midi,audio/AMR,video/3gpp,…
print.print_printer
hp psc 1310 series
print.printer_hp_psc_1310_series.print_bgcolor
false
print.printer_hp_psc_1310_series.print_bgimages
false
print.printer_hp_psc_1310_series.print_command
print.printer_hp_psc_1310_series.print_downloadfonts
false
print.printer_hp_psc_1310_series.print_edge_bottom
0
print.printer_hp_psc_1310_series.print_edge_left
0
print.printer_hp_psc_1310_series.print_edge_right
0
print.printer_hp_psc_1310_series.print_edge_top
0
print.printer_hp_psc_1310_series.print_evenpages
true
print.printer_hp_psc_1310_series.print_footercenter
print.printer_hp_psc_1310_series.print_footerleft
&PT
print.printer_hp_psc_1310_series.print_footerright
&D
print.printer_hp_psc_1310_series.print_headercenter
print.printer_hp_psc_1310_series.print_headerleft
&T
print.printer_hp_psc_1310_series.print_headerright
&U
print.printer_hp_psc_1310_series.print_in_color
true
print.printer_hp_psc_1310_series.print_margin_bottom
0.5
print.printer_hp_psc_1310_series.print_margin_left
0.5
print.printer_hp_psc_1310_series.print_margin_right
0.5
print.printer_hp_psc_1310_series.print_margin_top
0.5
print.printer_hp_psc_1310_series.print_oddpages
true
print.printer_hp_psc_1310_series.print_orientation
0
print.printer_hp_psc_1310_series.print_pagedelay
500
print.printer_hp_psc_1310_series.print_paper_data
9
print.printer_hp_psc_1310_series.print_paper_height
11.00
print.printer_hp_psc_1310_series.print_paper_size_type
0
print.printer_hp_psc_1310_series.print_paper_size_unit
1
print.printer_hp_psc_1310_series.print_paper_width
8.50
print.printer_hp_psc_1310_series.print_reversed
false
print.printer_hp_psc_1310_series.print_scaling
1.00
print.printer_hp_psc_1310_series.print_shrink_to_fit
true
print.printer_hp_psc_1310_series.print_to_file
false
print.printer_hp_psc_1310_series.print_unwriteable_margin_bottom
0
print.printer_hp_psc_1310_series.print_unwriteable_margin_left
0
print.printer_hp_psc_1310_series.print_unwriteable_margin_right
0
print.printer_hp_psc_1310_series.print_unwriteable_margin_top
0
privacy.clearOnShutdown.cookies
false
privacy.clearOnShutdown.extensions-dta
true
privacy.clearOnShutdown.extensions-sessionmanager
true
privacy.clearOnShutdown.sessions
false
privacy.cpd.cookies
false
privacy.cpd.extensions-dta
true
privacy.cpd.extensions-sessionmanager
true
privacy.cpd.sessions
false
privacy.item.cookies
true
privacy.item.extensions-dta
true
privacy.item.extensions-sessionmanager
true
privacy.sanitize.migrateFx3Prefs
true
privacy.sanitize.promptOnSanitize
false
privacy.sanitize.sanitizeOnShutdown
true
privacy.sanitize.timeSpan
0
security.warn_viewing_mixed
false
Graphics
Adapter Description
ATI Radeon HD 3800 Series
Vendor ID
0x1002
Device ID
0x9505
Adapter RAM
512
Adapter Drivers
aticfx64 aticfx64 aticfx32 aticfx32 atiumd64 atidxx64 atiumdag atidxx32 atiumdva atiumd6a atitmm64
Driver Version
8.892.0.0
Driver Date
9-8-2011
Direct2D Enabled
true
DirectWrite Enabled
true (6.1.7601.17789)
ClearType Parameters
ClearType parameters not found
WebGL Renderer
Google Inc. -- ANGLE (ATI Radeon HD 3800 Series) -- OpenGL ES 2.0 (ANGLE 1.0.0.1041)
GPU Accelerated Windows
1/1 Direct3D 10
AzureBackend
direct2d
JavaScript
Incremental GC
1
Accessibility
Activated
0
Prevent Accessibility
0
Library Versions
Expected minimum version
Version in use
NSPR
4.9.2
4.9.2
NSS
3.13.6.0 Basic ECC
3.13.6.0 Basic ECC
NSS Util
3.13.6.0
3.13.6.0
NSS SSL
3.13.6.0 Basic ECC
3.13.6.0 Basic ECC
NSS S/MIME
3.13.6.0 Basic ECC
3.13.6.0 Basic ECC

cor-el
  • Top 10 Contributor
  • Moderator
10776 solutions 96959 answers

Helpful Reply

Did this work in previous Firefox versions?

Do you set the file path on the about:config page or via a user.js file or by editing prefs.js?
You need to escape the backslashes (use a double \\)

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

Question owner

Thanks for the reply cor-el.

I've been using v15.x and 16 and it hasn't worked at all...although, if memory serves me correctly, it used to work on much older versions. I've been using other browsers and have only recently switched back to FF.

I set the path in about:config but when checking the prefs.js file, everything looks fine and the backslashes are escaped.

Would love to find a fix for this as the default viewer is a bit naff.

Thanks.

Chosen Solution

It's working now! Not sure how or why, I just set the path again and it worked...used exactly the same path as before!

Would be nice if it worked for 'view selected source' too but that still opens in the default viewer but at least it's better than before.

Thanks for the help :)

Southerner 0 solutions 12 answers

It is not working for me. I do not even have the option to view page source and selecting view source: uses the default editor which does not allow page editing. This worked in older versions but not this version with my XP Pro. View_source.editor.external is set to true and view_source.editor.path is set to "C:\\Program Files\\Notepad++\\notepad++.exe" What am I missing?

cor-el
  • Top 10 Contributor
  • Moderator
10776 solutions 96959 answers

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

I have upgraded to version 18 and am getting the same behavior on both my XP machine and my Windows 7 machine. On both installations: view_source.editor.external;true view_source.editor.path; "C:\\Program Files (x86)\\Notepad++\\notepad++.exe"

and in both cases if I open Tools; Developer Tools; and Page source or whether I view_source: on the page and Control U as you suggest it merely opens a second Firefox source viewer window which does not allow editing the page source. What am I missing? I have tried copying the path with escape and without and with quotes and without. The path is correct as I find the path then copy it.

cor-el
  • Top 10 Contributor
  • Moderator
10776 solutions 96959 answers

You only need tho escape the backslashes in the prefs.js or user.js file.

On the about:config page you need a path with a single backslash.

  • view_source.editor.path: "C:\Program Files (x86)\Notepad++\notepad++.exe"
Southerner 0 solutions 12 answers

I have tried the escape character. I have tried it without the escape character. I have tried it with quotes. I have tried it with %20 for the spaces and yet it still insists on opening with the default Firefox viewer.

Question owner

I've noticed that even when notepad++ was set as the source code viewer, in some websties the default one would still open instead. Perhaps it's something to do with encoding, not sure but try another website or two to make sure that isn't happening with you.

Also, if you can't sort it, try the ViewSourceWith extension as you can set Notepad++ in there and choose to overwrite the default settings on right click. It works really well.

cor-el
  • Top 10 Contributor
  • Moderator
10776 solutions 96959 answers

Helpful Reply

This works for me in the prefs.js file, so apparently escaping is necessary in this case

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

You will have to adjust the path for your 64 bit Windows version.

  • user_pref("view_source.editor.path", "C:\\\\Program Files (x86)\\\\Notepad++\\\\Notepad++.exe");
Southerner 0 solutions 12 answers

Nick2012: I did not see a viewsourcewith variable.

Cor-el: that worked. No changes that I made in about:config seemed to make much difference but editing prefs.js directly as you suggested: •user_pref("view_source.editor.path", "C:\\\\Program Files (x86)\\\\Notepad++\\\\Notepad++.exe");

did take care of the problem.

Thank you.

cor-el
  • Top 10 Contributor
  • Moderator
10776 solutions 96959 answers

You're welcome.

You can check the value on the about:config page to see how it looks there in case you want to use another editor.

Modified by cor-el

Southerner 0 solutions 12 answers

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.