Line numbers when copying code

193 views
Skip to first unread message

Gustavo

unread,
Feb 16, 2011, 1:11:26 PM2/16/11
to Firebug, gustavo...@stvin.org
Hello,

While inspecting website codes, when selecting, copying and pasting
the code into anything (e.g., notepad), the line numbers appear. Any
way to avoid this?

Thanks!

Gustavo
Santa Fe, NM

Pedro Simonetti Garcia

unread,
Feb 16, 2011, 3:46:25 PM2/16/11
to fir...@googlegroups.com
Hi Gustavo,

I'm working on some improvements in the Script Panel and I found how to fix this problem, but it will possibly break some other Firebug extension. We have to create a migration plan and possibly get some feedback from extension developers before fixing this problem, but we're likely to fix this in a future version.

Could you please open a bug report for this problem?

http://code.google.com/p/fbug/issues/list

regards,

Pedro Simonetti.


2011/2/16 Gustavo <gse...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Firebug" group.
To post to this group, send email to fir...@googlegroups.com.
To unsubscribe from this group, send email to firebug+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/firebug?hl=en.


Gustavo Seluja

unread,
Feb 17, 2011, 11:30:07 AM2/17/11
to fir...@googlegroups.com
Hola Pedro,

Thanks very much for the response.  I went ahead and opened a bug report per your instructions:

"Line numbers copy after selecting/copying/pasting code"

I attached to the bug report a pdf with steps and screenshots.  I am also attaching the pdf here.  Let me know if there's anything else you need.

Best regards,

Gustavo Seluja
Santa Fe, NM
FIREBUG DEFECT.pdf

John J Barton

unread,
Feb 17, 2011, 12:10:21 PM2/17/11
to Firebug
Just right click on the Script panel and pick Copy Source.
jjb

On Feb 17, 8:30 am, Gustavo Seluja <gsel...@gmail.com> wrote:
> Hola Pedro,
>
> Thanks very much for the response.  I went ahead and opened a bug report per
> your instructions:
>
> "Line numbers copy after selecting/copying/pasting code"
>
> I attached to the bug report a pdf with steps and screenshots.  I am also
> attaching the pdf here.  Let me know if there's anything else you need.
>
> Best regards,
>
> Gustavo Seluja
> Santa Fe, NM
>
> On Wed, Feb 16, 2011 at 1:46 PM, Pedro Simonetti Garcia <
>
> pedrosimone...@gmail.com> wrote:
> > Hi Gustavo,
>
> > I'm working on some improvements in the Script Panel and I found how to fix
> > this problem, but it will possibly break some other Firebug extension. We
> > have to create a migration plan and possibly get some feedback from
> > extension developers before fixing this problem, but we're likely to fix
> > this in a future version.
>
> > Could you please open a bug report for this problem?
>
> >http://code.google.com/p/fbug/issues/list
>
> > regards,
>
> > Pedro Simonetti.
>
> > 2011/2/16 Gustavo <gsel...@gmail.com>
>
> >> Hello,
>
> >> While inspecting website codes, when selecting, copying and pasting
> >> the code into anything (e.g., notepad), the line numbers appear.  Any
> >> way to avoid this?
>
> >> Thanks!
>
> >> Gustavo
> >> Santa Fe, NM
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Firebug" group.
> >> To post to this group, send email to fir...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> firebug+u...@googlegroups.com.
> >> For more options, visit this group at
> >>http://groups.google.com/group/firebug?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Firebug" group.
> > To post to this group, send email to fir...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > firebug+u...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/firebug?hl=en.
>
>
>
>  FIREBUG DEFECT.pdf
> 249KViewDownload

Gustavo Seluja

unread,
Feb 17, 2011, 1:10:08 PM2/17/11
to fir...@googlegroups.com
Hi John,

Can you send a screenshot?  I could not find 'Copy Source'.

Thx,
Gustavo

Mike Ratcliffe

unread,
Feb 17, 2011, 1:27:36 PM2/17/11
to Firebug
You can only use 'Copy Source' from the Script tab, it is not
available from expanded scripts in the HTML tab.

On Feb 17, 7:10 pm, Gustavo Seluja <gsel...@gmail.com> wrote:
> Hi John,
>
> Can you send a screenshot?  I could not find 'Copy Source'.
>
> Thx,
> Gustavo
>
> On Thu, Feb 17, 2011 at 10:10 AM, John J Barton <johnjbar...@johnjbarton.com

Gustavo Seluja

unread,
Feb 17, 2011, 1:30:58 PM2/17/11
to fir...@googlegroups.com
Mike,

Then we are back to square one (ie, my original report).  If the code is not viewable on the Scripts tab (e.g., referenced javascript), then it cannot be copied.

Gustavo

Mike Ratcliffe

unread,
Feb 17, 2011, 2:39:03 PM2/17/11
to Firebug
All JavaScript is viewable in the script tab, you just select it from
the dropdown.

On Feb 17, 7:30 pm, Gustavo Seluja <gsel...@gmail.com> wrote:
> Mike,
>
> Then we are back to square one (ie, my original report).  If the code is not
> viewable on the Scripts tab (e.g., referenced javascript), then it cannot be
> copied.
>
> Gustavo
>
> On Thu, Feb 17, 2011 at 11:27 AM, Mike Ratcliffe <
>

Gustavo Seluja

unread,
Feb 17, 2011, 4:16:29 PM2/17/11
to fir...@googlegroups.com
I know.  But try selecting, and then copy and paste into notepad. or anything else.  The code line numbers carry over.

Gustavo

Jan Odvarko

unread,
Feb 17, 2011, 6:13:45 PM2/17/11
to fir...@googlegroups.com

You need to make  a selection and right click on it.

Honza

 


copy-source.png

Gustavo Seluja

unread,
Feb 18, 2011, 9:37:51 AM2/18/11
to fir...@googlegroups.com
Jan,

You can only do this when the code is part of the html (the script tab).  If the code is referenced (the html tab), the copy source option is not available.  Moreover, expanding the code, selecting, copying/pasting will carry over the line numbers.  Give it a try.  Find a webpage that has something like this in it:

<script type="text/javascript" src="js/test.js"></script>

Then expand the code in the FB html tab, and see what happens.

Gustavo

John J Barton

unread,
Feb 18, 2011, 10:41:32 AM2/18/11
to Firebug


On Feb 18, 6:37 am, Gustavo Seluja <gsel...@gmail.com> wrote:
> Jan,
>
> You can only do this when the code is part of the html (the *script* tab).
> If the code is referenced (the *html *tab), the copy source option is not
> available.  Moreover, expanding the code, selecting, copying/pasting will
> carry over the line numbers.  Give it a try.  Find a webpage that has
> something like this in it:
>
> <script type="text/javascript" src="js/test.js"></script>
>
> Then expand the code in the FB *html* tab, and see what happens.

Why can't you just use the Script panel's copy of js/test.js?

jjb

>
> Gustavo
>
> On Thu, Feb 17, 2011 at 4:13 PM, Jan Odvarko <odva...@gmail.com> wrote:
> >  You need to make  a selection and right click on it.
>
> > Honza
>
> >   ------------------------------
>
> > *From:* fir...@googlegroups.com [mailto:fir...@googlegroups.com] *On
> > Behalf Of *Gustavo Seluja
> > *Sent:* Thursday, February 17, 2011 7:10 PM
> > *To:* fir...@googlegroups.com
> > *Subject:* Re: Line numbers when copying code
>
> > Hi John,
>
> > Can you send a screenshot?  I could not find 'Copy Source'.
>
> > Thx,
> > Gustavo
>
> >  On Thu, Feb 17, 2011 at 10:10 AM, John J Barton <

Gustavo Seluja

unread,
Feb 18, 2011, 11:52:20 AM2/18/11
to fir...@googlegroups.com
You can't.  Try it.  The script panels opens the what's in the source.

Besides, the FB folks know of this issue/bug.

gustavo

John J Barton

unread,
Feb 18, 2011, 1:19:40 PM2/18/11
to Firebug


On Feb 18, 8:52 am, Gustavo Seluja <gsel...@gmail.com> wrote:
> You can't.  Try it.  The script panels opens the what's in the source.

I would try if you have a test case.

>
> Besides, the FB folks know of this issue/bug.

Which FB folks?

jjb

>
> gustavo
>
> On Fri, Feb 18, 2011 at 8:41 AM, John J Barton
> <johnjbar...@johnjbarton.com>wrote:

Honza (Jan Odvarko)

unread,
Feb 18, 2011, 1:31:23 PM2/18/11
to Firebug
On Feb 18, 5:52 pm, Gustavo Seluja <gsel...@gmail.com> wrote:
> You can't.  Try it.  The script panels opens the what's in the source.
I tried with this test case:
http://www.softwareishard.com/temp/test/test.html

1) Load the page
2) Switch to the HTML panel
3) expand the js/test.js script tag
4) Select the source code and right click on it.
5) There is a "Copy" menu item (not "Copy Source"), pick it.
6) Line numbers are not copied into the clipboard (but the source is
not properly intended)

Is that what you see?

Honza
Reply all
Reply to author
Forward
0 new messages