On Jul 9, 1:21 am, ase <
ase...@gmail.com> 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