On Jul 9, 1:21 am, ase <[email protected]> wrote:
> Im also interested in feature suggestions #1 and #2.
> Firerainbow does syntax hightlighting but only in the script tab and
> the developers said that for now the will not add it to the console
> tab...but it seems easily implementable...

Ok that's great news, let us know if you run in to issues in this
work.

> And i dont understand why they cut out the autocomplete feature when
> the code is in the multiline panel :S

Perhaps if I explain how autocomplete works, you can understand why we
don't implement it for multi-line.

Autocomplete works by extracting a string from the buffer and running
"eval()" on the string. The "eval()" runs in the global scope unless
you are stopped on a breakpoint. If you are stopped,  the eval() runs
in the scope of the stopped frame.

In the multiline case we have two new major problems that don't affect
the single line. First is extracting the string: with single line we
can simply take the string the cursor is in.  I don't know if this
will work in multiline. Second is the scope: multiline code often
introduces functions and block with new scope. Consider:
function foo(){
   var bar = new Date();
   bar.
The user wants completion of "bar.", but Firebug will only say
"undefined" because it has no way to know about "bar".

Completion in multiline is possible of course so let us know if you
want to work on its implementation.

jjb



>
> On Jun 24, 6:57 pm, industral <[email protected]> wrote:
>
> > On Jun 24, 6:21 am, John J Barton <[email protected]> wrote:
>
> > > On Jun 23, 3:18 pm, industral <[email protected]> wrote:
>
> > > > 1.Consolesyntaxhighlight(any plugin)
>
> > > I guess in Firebug terms you are asking for Command line syntax
> > > highlighting?
>
> > Sorry, yes command line.
>
> > > > 2. Code autocomplete (it's easy as Fb already able to make
> > > > interpolation)
>
> > > The command line does autocomplete when you hit  TAB
>
> > Hmm, it's really works if command line is small, but if it's in
> > multiline mode - it doesn't work.
> > Maybe there's some way to make it work in multiline mode?
>
> > > > 3. API for IDE using firebug as:
> > > >         a) debug (+ remote)
> > > >         b) advanced autocomplete (at least in Fx, but real working in 
> > > > real
> > > > time)
>
> > > You'll need to say more, I don't understand.
>
> > Just feather request, to create some API (or maybe plugin), to provide
> > bridge with Fb and other IDE.
> > For example, to write code in Eclipse and get autocomplete not from
> > simple IDE JS plugin but from Fb.
> > Some with debug. It'll be very helpful for developers.
> > Till not I didn't find how communicate Fb and Eclipse for these
> > features.
>
> > > jjb

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

Reply via email to