Erik, I believe there is some facility in the extension I'm using
(Dafizilla ViewSourceWith) to map to server scripts as well -- as you say,
to define a "source map" -- but I'm not sure because I don't bother with it.

All I want is for the main, core HTML file (corresponding to what I'm
looking at in Firefox) to pop up in my code editor. It makes no difference
whether the page is completely static (rare) or has PHP server code that
partially generates the "final" HTML -- if I wanted to see the final
composited result, I'd ask to see the browser's own generated/cached source
in one of the usual ways. What I'm getting with my approach is just the
master HTML file from the server; that's all I want. If there are (for
example) calls to PHP in there, they show up as calls to PHP, not as the
result. This is *complementary* to seeing the final/generated code that the
browser uses and can show you; it doesn't *replace* that other meaning of
"viewing the source."

In fact, I haven't even bothered figuring out how the ViewSourceWith
extension handles other *client* languages (i.e, CSS and JS) -- although I
know it can -- because my main code editor (BBEdit) has its own popdown
menu showing me all the CSS, JS, PHP, etc. that is linked to that page, and
I use that menu to access the resources associated with the current HTML
file, as needed.

As I said, I really wish that Firebug could add this live-mapping feature,
so I wouldn't be dependent on another tool to do this.

On Wed, May 4, 2016 at 5:43 PM, Erik Krause <erik.kra...@gmx.de> wrote:

> Am 04.05.2016 um 18:41 schrieb Lawrence San:
>
>> My workflow is based on browsing through the website I'm building,
>> in Firefox, and when I see something that needs editing (content or code),
>> I click one button in the Firefox toolbar and the actual server page pops
>> up in my code editor (in my case, BBEdit on the Mac, or Notepad++ in
>> Windows). If I edit the code there and Save, I'm updating it*for real*.
>>
>
> This would be very nice indeed. And it might run for static pages. But as
> soon as some server side language is involved (like PHP, JSP, ASP etc.) the
> only way to do that would be to provide a source map. This should already
> work in the firefox dev tools (and hence for firebug.next) for JS and CSS.
> But I don't have any clue whether this would be possible for server side
> languages as well...
>
> --
> Erik Krause
> http://www.erik-krause.de <http://Sanstudio.com>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to firebug+unsubscr...@googlegroups.com.
To post to this group, send email to firebug@googlegroups.com.
Visit this group at https://groups.google.com/group/firebug.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/firebug/CAMoMLKjW3Wfv9Y4shvmhxctw8_vNFS3FHKU6dPPrPffCfTCf7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to