I find I’m constantly using the “View Source” option in Firefox while working on sites, but the default viewer isn’t the best.
To configure Firefox so it’ll use a different viewer, do the following:
1. In Firefox, enter “about:config” in the address bar (if you get a warning about dragons, heed it, but continue)
2. type “view” in the Filter field
3. Double-click on “view_source.editor.path” and enter the path to the editor you desire (I used /usr/bin/kate)
4. Double-click “view_source.editor.external” to set it to “True”
5. Restart Firefox

Like