ActiveState Community

Windows Vista

Javascript autocomplete "hints" and mixin classes

Hi,
I have two separate, but related questions about autocomplete in Javascript:

First, is there a way to add "hints" to autocomplete without using .cix, but rather inline comments?

Something like:

function dothis(str, id){
  /* caption: "this function does that" */
  /* args: string, number */
  /* return: string */

  var someVar = "abc";

  //...more code

  return someVar;
}

"The current buffer contains syntax errors."

What does this mean? Does it mean there's something wrong with my code? Why can't it just point me to the "bad" code? How do I see the "bad" code?
Thanks.

seeing my "ends" braced

Hi,
I'm having some problems with some Ruby code. I need to be able to see, graphically, all of my blocks properly. I appear to be missing an "end" somewhere. Can someone please tell me how that's done with Komodo?
Thanks,
Peter

line numbers

Hi,
Can someone please tell me how I can have the viewing of line numbers be the default?
Thanks,
Peter

Previewing using Localhost as the URL

I'm using Komodo edit as a result of using this excellent editor on a course recently but I can't seem to work out how to preview the open file(s) using localhost instead of just the file reference.

I want to be 'served' the page(s)

http://localhost/(company name)/sample.php

instead of just 'viewing' the page

file:///d:/xampp/htdocs/(company name)/sample.php

Can anyone help?

(Many thanks, in advance)

Info. for a newbie

Hi,
I just got the trial version of Komodo. I'm using it for Ruby development. I have a couple of questions.
1. When I press F5 to run a script, it comes with an argument panel. I press OK and it fires off the script. Can I have it NOT do that? I'd like to just run the script.
2. Why is it that, when a script is finished, Komodo gives me no indication that it's done. I'm used to seeing something in the output window, telling me that the script is finished.

Thanks,
Peter

How can I trigger an event when a file is modified?

I would like to have a piece of Perl code sit waiting for a particular file to be changed, at which point it will take some action and then go back to waiting.

Is there an easier way than extracting the modified date of the file and just repeatedly checking to see if the date changes? OK now that I've written that it doesn't sound so terribly difficult, but I'll still throw this out there in case there's a simpler way. Thanks...

can I display html without opening new browser window?

Is it possible using ActiveState::Browser (or some other method) to open an HTML file without opening a new browser window each time?

Ideally I'd like to open a new browser window once, and then just have the same browser window display the new HTML I generate repeatedly. I guess even more simply I could generate the new HTML into the same filename so that the displayed browser window could just be refreshed when I want to see the new HTML.

PHP syntax highlighting

Hi!

I've just downloaded Komodo Edit. My problem is that it won't recognise php functions such as mysql_close, date, etc. as keywords. Instead, it displays them as identifiers. Is there a solution for this? What should I look for?

Komodo IDE 5.2.0 alpha 1: used too much memory on first run

On the first run, Komodo was using a lot of dual core CPU (about 30%+), and memory usage rose to over 300 MB (it normally uses less than 100 MB). During this time, it was scanning files (PEAR files and what not, as if I needed it to). I had to close Komodo and restart it.

By the way, please make Komodo NOT preload libraries for languages a given user has no plans to use.