Is the same problem I am acing on local machine. On localhost it doesn't do
anything, however, it works on a remote URL.
You can see more discussion in this older post:
https://groups.google.com/forum/#!topic/firebug/5gp45wiFtvg
How i configured is using a PHP script
Line commands:
Executable: path to PHP executable
Arguments:c:\path_to_php_file"%url" /%line
inside the PHP file I translate the URL argument($argv[1]) into filesystem
path(I use xampp), and then open the file with pspad at line $argv[2]. The
localhost condition doesn't work, but you can change the yourdomain.com
condition as you need, that one works
<?php
if(preg_match("/^http\:\/\/localhost/",$argv[1])) {
$argv[1] = preg_replace(array("/^http\:\/\/localhost/","/\?.+$/"),
array("C:\xampp\htdocs",""),$argv[1]);
}
if(preg_match("/^http\:\/\/yourdomain.com/",$argv[1])) {// if
http://yourdomain.com/styles.css corresponds to
C:\xampp\htdocs\project\styles.css
$argv[1] = preg_replace(array("/^http\:\/\/yourdomain.com/","/\?.+$/"),
array("C:\xampp\htdocs\project",""),$argv[1]);
}
system('"c:\\Program Files (x86)\\PSPad editor\\PSPad.exe" '.$argv[1]." ".
$argv[2]);
?>
On Wednesday, June 11, 2014 12:39:08 AM UTC+3, San wrote:
>
> From reading an earlier post in this group, I just discovered the Open
> With Editor command in Firebug, which I never noticed before.
>
> Background: I run a local devel server (Apache) on the same Mac that I use
> for browsing and editing web pages, so the "server file" and the "local dev
> file" is actually the same file residing on the same machine. I normally
> open it in Firefox as a .dev URL, not as a "file" (so all my scripts will
> work, among other things).
>
> However, using a Firefox extension called Dafzilla ViewSourceWith, I've
> been able to set up a mapping that correlates the URLs with the local
> files. For example, when Firefox shows the URL of the current page as:
>
> http://sanstudio.dev/test/linktest.html
>
> ...I can click on the ViewSourceWith button in the Firefox toolbar, and my
> text editor (BBEdit) will open the "local" file that my local Apache used
> to actually generate that URL:
>
> /Volumes/MyHardDrive/MyDevFolder/test/linktest.html
>
> That's my real master source file, not some cached copy. This is extremely
> useful to me, but ViewSourceWith doesn't always work with every version of
> Firefox.
>
> So I thought it might be possible to get a similar mapping into Firebug
> using the Open With Editor dialog. It was easy to add BBEdit as the editor;
> that works fine. However, when BBEdit opens a page via Firebug that way,
> it's always opening the temporary cached file that the browser uses, not
> the real local source file the way ViewSourceWith does.
>
> So I played with Firebug's "Launch Arguments" in the Configure Editors
> dialog, trying to figure out how to add a mapping, presumably using the
> %file parameter. I tried various things like:
>
> %file /Volumes/MyHardDrive/MyDevFolder/
>
> ... and various other things, but when I click the "test" button, every
> argument format I've tried either opens Firefox's cached temporary file
> (same as if I had entered no arguments) or does nothing at all.
>
> I did a lot of Googling trying to find *specifically* how you enter the
> text in the Arguments box, and I looked through the examples in the
> dialog's popdown menu, and I still got nowhere.
>
> Next to the %file text-entry box there's a hint that says "Path to the
> local file (or to the temporary copy)" which certainly sounds like it
> doesn't *have* to be the temporary copy. Is it possible to do what I want
> with the Configure Editors dialog? Can anybody tell me how to enter the
> argument? Thanks.
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/firebug.
To view this discussion on the web visit
https://groups.google.com/d/msgid/firebug/d94e023a-8c0f-43e1-9f9d-b995759e8961%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.