搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

setting an external editor for the view_source options

more options

Hi,

I used the refresh Firefox option yesterday and after that have been unable to configure Firefox 105.0.2 to use my favorite external editor (notepad++). My old instructions for setting this up seem not to work anymore. Are there instructions for setting the view_source options that work in current Firefox versions?

I've used notepad++ to view and edit my HTML pages in Firefox for many years. This is a really big deal for me. Thanks in advance

Dave

Hi, I used the refresh Firefox option yesterday and after that have been unable to configure Firefox 105.0.2 to use my favorite external editor (notepad++). My old instructions for setting this up seem not to work anymore. Are there instructions for setting the view_source options that work in current Firefox versions? I've used notepad++ to view and edit my HTML pages in Firefox for many years. This is a really big deal for me. Thanks in advance Dave

所有回覆 (2)

more options

Where are you settings the related prefs ? On about:config you can set the path normally, if you edit prefs.js or use user.js then on Windows you need to escape a backslash (\\).

You can find these prefs on the about:config page to set what external viewer/editor to use.

  • view_source.editor.args
  • view_source.editor.external
  • view_source.editor.path

You can paste this code in the Browser Console (Ctrl+Shift+J) to check whether the path is valid.

try {
  var viewSourceAppPath = Services.prefs.getComplexValue("view_source.editor.path", Ci.nsIFile);
  console.log(viewSourceAppPath.path)
} catch (ex) {Cu.reportError(ex);}

more options

I have this:

view_source.editor.path => C:\\Program Files\\Notepad++\\notepad++.exe