Neat Firefox trick o’the day: Viewing source code in an external editor

Being able to right click on a web page to take a look at the source code is handy but the Firefox source code viewer is a bit limited (not surprisingly really – it is just a viewer after all). Inevitably, then, there will come a time when you want to do more than just look at the source and will, therefore, need to get it into a proper text editor of some sort. You could, of course, just copy and paste but there is a better way.

You can bring up the Firefox configuration options by entering about:config in the Awesome bar and then search for view_source.

There are two configuration options you need to change:
view_source.editor.external needs to be set to true
view_source.editor.path needs to be set to the full pathname of your editor of choice

And you’re done.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s