If you are a web developer, you would have definitely used the “View page source” feature of any browser. A feature which opens the source (HTML) of the page and displays it in an editor. Firefox uses its internal editor for displaying the page source and it has very limited functionalities. All of us will have our own choice of text editors when it comes to editing the source code. To make use of the editor of your choice in Firefox:
- Type “about:config” in the address bar. “config” is a valid URI supported by about: protocol in Firefox and it will take you to the list of Firefox configurations.
- Firefox will warn you before showing the config list. Click “I’ll be careful, I promise!”. After this, the list of internal configurations on Firefox will be shown.
- Filter the list by typing “view_source”.
- Set the value of “view_source.editor.external” to “true” either by double clicking the entry or by choosing the “Toggle” button from the context menu. This will enable the external editor.
- Next step is to provide the location of your editor. Set the value of “view_source.editor.path” to point your editor’s absolute path. That’s it. You are done setting up your favorite editor in Firefox. If you would like to pass some additional arguments to your text editor, pass them via the config entry named “view_source.editor.args”.
Check out the screenshots below. IE users can refer to this.
-- Varun
No comments:
Post a Comment