This is as days pass by, by Stuart Langridge

And this is Showing source in Firefox, written , and concerning JavaScript and the DOM, Howtos

Annoyed that Firefox pops up the source of a page in a separate window when you View Source? Annoyed that Epiphany shows the source of a page in Gedit? Help is at hand! Simply drag the following link to your bookmarklet bar: Toggle source Clicking it will replace the page you're viewing with that page's source, nicely syntax-highlighted, in the same browser tab. Clicking it again will go back to the page. That should keep Sean Middleditch happy and stop complaints about Epiphany using Gedit as an HTML viewer. (Warning: I don't know what happens if you do this on a page where you've just posted some data, like if you've just placed an Amazon order or something. Don't do that.)

Comments

Stoffe

If gedit didn't take longer than firefox to cold start, maybe that would be even better. :)

As nice as this is, it only solves a tiny part of the problem for an even tinier part of the users.

sil

Stoffe: which problem do you think it was trying to solve?

Calum

Cool... now we just need a Dreamweaver-like split view in Epiphany, where the selection in the code view is mirrored in the in the HTML view, and vice versa :)

mibus

Excellent - thanks!!

kus

very usefull thanks :)

tkoopa

great tip, thanks

ekbworldwide

I hope this isn't a stupid question - I've asked all over the net...

Is there a way I can get Firefox (via a settling in about:config maybe?) to display absolute paths in view source?

View source sometimes doesn't show the absolute path of links.

wikipedia for example

http://en.wikipedia.org/wiki/Main_Page

ekbworldwide

By the way - "Post comment and follow comments in your feed reader" - brilliant.

sil

ekbworldwide: as far as I'm aware, you'd need an extension to make Firefox show full paths. Bear in mind that that would make "View Source" stop actually viewing the source, which makes it pretty unreliable, so I doubt that Firefox could do it. It could be done with JavaScript, too, if you could get the JavaScript to run in a view-source window.

ekbworldwide

I should have said "copy absolute paths".

Anyway...

If you're curious (or if anybody is) - I started a thread about it at userscripts.org

Fixing the "copy and paste" relative path problem – Userscripts.org

http://userscripts.org/forums/2/topics/1436

Cory Michael McKenna

Thanks, that just solved this irksome problem I have been having with epiphany opening up a freaking spreadsheet to view the source - what's up with that?

Showing Source By URL in Firefox | Mats Lindh

[...] to see the HTML source for Wikipedia’s front page. The solution was presented over at Stuart Langridge’s blog where he also presents a simple bookmarklet for swapping source view on and off in the current [...]

This website belongs to Stuart Langridge. Contact details are available. Don't eat yellow snow. Valid HTML5, at least in theory, except for the bits that aren't because I'm that futuristic that I'm ahead of the spec, oh yes. HTML5 help from Bruce Lawson, among others. Fonts from the superb FontSquirrel. End.