Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'View Firefox page source in an external editor' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
View Firefox page source in an external editor
Authored by: stevebr on Jan 07, '11 03:44:03PM

Great hint. TextMate users who want to do this may need to know that the command-line launcher is at the following path:

/Applications/TextMate.app/Contents/Resources/mate

But I just discovered that using the command line versions aren't necessary after all, if you set the external editor to "open" and also set an appropriate value in the preference "view_source.editor.args." For example, let's open the web page with TextEdit just for fun:

view_source.editor.external = /usr/bin/open
view_source.editor.args = -a TextEdit

You'll get the "such and such is an application downloaded from the internet..." quarantine message but it continues and opens if you approve the dialog.

I tested a couple of things and presumably you can open the file with any app that knows how to use a web page, so this might help with bloodnok's problem with Dreamweaver a couple of comments up.

I'm guessing you could also use this as a poor man's SiteSucker if you set your "editor" to wget and passed the appropriate arguments.

Wouldn't have seen the args setting if it weren't for this hint. Thanks.



[ Reply to This | # ]
View Firefox page source in an external editor
Authored by: bloodnok on Jan 10, '11 11:36:09AM

that should be a neat trick but rather than fixing dreamweaver, it breaks the default fall-back to viewing in firefox ...

must have something to do with dreamweaver.



[ Reply to This | # ]
View Firefox page source in an external editor
Authored by: bloodnok on Jan 10, '11 11:41:02AM

even better, tried "-a Adobe\ Dreamweaver\ CS5.app" to no avail (although that does work on the command line).



[ Reply to This | # ]