Tip: Change Default Text Editor in Fx

By default Firefox uses Notepad its own viewer when viewing the source of a page (CTRL+U or View, Page Source or selecting View Page Source from the Context Menu). You can select which text editor (such as Notepad++) Firefox uses by default with this simple tweak:

1. In a new tab type about:config in the address bar
2. In the filter field type view_source.editor.external
3. Double-click on the entry to set it to true
4. In the filter field type view_source.editor.path
5. Double-click on the entry and in the pop-up box enter the path for your text editor
6. Click OK and close the tab

Source: CyberNet Forum

11 Responses to “Tip: Change Default Text Editor in Fx”


  1. 1 Percy Tuesday, August 14, 2007 at 2:06 PM

    Um, Firefox provides its own source viewer and uses it by default. Still an interesting tip. Thanks!

  2. 2 Norm Tuesday, June 17, 2008 at 12:24 PM

    Firefox provides its own source viewer, that is right, but not everyone just wants to view the source sometimes.

    This change did exactly what I wanted it to do, got view source routed to my notepad++ thanks alot =]

  3. 3 Wayne Saturday, July 19, 2008 at 5:59 AM

    This fix does not work on my WinTel(DELL Dimension E521) machine.
    Is the path like this: “C:\Program Files\EditPlus 3″
    or from the firefox directory, like this: “..\Program Files\EditPlus 3″?

    Neither path funstions. I remain with the default editor. I even copied the path from the properties section of the EditPlus shortcut. No luck.

    Any ideas.

    Best regards

    Wayne

  4. 4 Henri Saturday, July 19, 2008 at 8:29 AM

    It looks like the path does not like the space between “Program” and “Files”. I replaced it with %20, and it worked.

    Best regards,

    Henri

  5. 5 Henri Saturday, July 19, 2008 at 8:40 AM

    Euh, sorry, I made a mistake. It doesn’t work
    Henri

  6. 6 suresh peddi Tuesday, July 22, 2008 at 1:19 PM

    I wanted FF to open my source in a notepad, but when i provide the source to be C:\WINDOWS\system32\notepad.exe, an new notepad window is opened, with a windows popup “The file name, directory name or volume label syntax is incorrect”.

    What is it that iam doing wrong? do i provide notepad.exe? or something else??

    Please let me know.

    Suresh

  7. 7 Peter Crouch Thursday, September 4, 2008 at 1:40 PM

    Personally I prefer this plain and simple old school text editor:
    http://home.online.no/~westerma/WestEdit/

  8. 8 John Sunday, October 26, 2008 at 10:30 AM

    Interestingly, this tip works for me using UltraEdit (a popular programmer’s text editor) for most web pages, but not this particular page. LOL!

    The problem seems to be in the title of the page which has some odd characters in it (specifically, the apostrophe) that FireFox passes along in the temporary file’s path that it sends the editor. I use UltraEdit as the default editor in IE, and have no problems. Therefore, it appears to be an issue with FireFox, not UltraEdit. It would appear that Firefox has resolved the issue in their source editor rather than creating and passing a file name that other editors will always like while IE doesn’t make this mistake.

    If anyone has any pull with the FireFox team, it seems like this would be relatively easy to fix in the next release.

    I have found that a plugin called ViewSourceWith fixes this problem and works perfectly. You can get it at
    https://addons.mozilla.org/en-US/firefox/addons/versions/394

    John

  9. 9 Emma Friday, November 7, 2008 at 2:38 AM

    Thanks – I was resorting to opening stuff in IE when I wanted to edit source, so this is really helpful, thanks.


  1. 1 Blog Year in Review: August 2007 « Firefox Extension Guru’s Blog Trackback on Saturday, December 29, 2007 at 10:10 AM
  2. 2 How to retrieve your ISP credentials from a DLink DIR-615 router (or any other router for that matter) Trackback on Saturday, August 16, 2008 at 7:03 PM

Leave a Reply




 

August 2007
S M T W T F S
« Jul   Sep »
 1234
567891011
12131415161718
19202122232425
262728293031  

Upcoming Releases

Fx 3.0.12 -- July 15th
Fx 3.0.13 -- September 1st
Fx 3.5.1 -- TBA

Chandler, AZ Weather

Categories

Archives

Blog Stats

  • 759,008 views
Upcoming Releases
- Fx 1.5.0.10/2.0.0.2
RELEASED February 23rd - Major Update (Fx 1.5.0.X to 2.0.0.X)
Mid/Late March - Fx 1.5.0.11/2.0.0.3
March 13 Tentative - Fx 1.5.0.12/2.0.0.4
April 2007 Tentative - Fx 3.0a2/Gecko 1.9a2
RELEASED February 7th - Fx 3.0a3/Gecko 1.9a3
March 19th Tentative - TB 1.5.0.10
RELEASED March 1st - TB 2.0b2
RELEASED January 24th - TB 2.0 (Final)
Late March 2007