help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to run javascript in emacs?


From: Xah
Subject: Re: how to run javascript in emacs?
Date: Wed, 9 Jul 2008 20:05:47 -0700 (PDT)
User-agent: G2/1.0

answer to my own question: just installed spidermonkey thru MacPorts.
It works great. (Spidermonkey is the js engine written in C)

 Xah

On Jul 9, 6:10 pm, Xah <address@hidden> wrote:
> I want to run Javascript in a console with emacs. Does anyone have
> suggestions on what's the solution?
>
> Here's some detail... In perl/python/php, i can just write the code in
> a buffer/file and run it with M-!. I would like to have something
> similar for javascript. Basically, with the end result that i just
> type in a buffer, save, press some button or command in emacs, and see
> results. How can i do this?
>
> I haven't much experience in coding javascript other than coding
> simple sample scripts, and today i just downloaded Firebug in Firefox
> 3 but i don't want to have to switch to the browser.
>
> The context is learning and experimenting with the language. I don't
> need the DOM attached. Just need to for example write fibonacci or
> prime generator and or other pure string manipulation functions with
> js.
>
> Since FF has a js engine...  is there a way to call the js interpreter
> with operating system's command line? If so, that'd solve my problem.
> (am not familiar with FF dev)
>
> Thanks.
>
>   Xah
>http://xahlee.org/
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]