Subj : Re: Is there any editor or "check compiler" like tool out there? To : netscape.public.mozilla.jseng From : James Ross Date : Sun Feb 01 2004 07:47 pm dario wrote: > Hi!! > > I am working with very big JS scripts, and it is kind of a pain to work > without being able to compile it and having something that at least tell > me if the structure is correct... not to mention undefined vars and > functions... is there any tool to help a little in the sintactic check > or perhaps more checks like compilers use to do? > > Any suggestions are welcome. If you don't mind the work, you can use "xpcshell", a JavaScript shell built as part of the Mozilla build process. I have also seen this on a Linux system, so it may come with some versions, I don't know. Once in xpcshell, you can do load("local path to script.js"); to load your script, and it'll produce syntax error messages if there any - you can also then try calling some functions defined in your script, if you like. It lacks (as far as I know) any sort of DOM or other stuff you might find when on a web page, but it can be very useful anyway. HTH. -- James Ross Hmm... not being a girl myself, and having very little experience with romance in general, and knowing virtually nil about you and your girlfriend's relationship, I'm going to offer my opinion anyway. Isn't the Internet great? ^_^ -- Komodo Nibblies, Megatokyo Forums .