Good morning,

On 23/03/14 at 4:06 PM -0400, Lawrence San <[email protected]> wrote:

Charlie Garrison said:

IOW, javascript knows the functions it just parsed, so let it give you the
list. Will almost always be more accurate than a regex solution.

I'm sure you're right... in theory that would be more accurate. Of course I
don't know any way to run JavaScript on a BBEdit file directly; BBEdit
doesn't contain an internal JS engine. I guess I could run a
list-the-functions function in Firebug's command line,

Node.js

(from memory)
$ brew install node

No need to use a web browser to run javascript.

The other drawback would (I think) be that I'd have to leave BBEdit
entirely to do that,

Use a Text Filter; no need to move away from your .js file. Create a text filter that uses node.js to run your javascript code that examines the source of your front window.

I know, sounds complicated, but it's not. Have a look at a variety of existing Text Filters; they are really just normal scripts with a shebang. Use same idea to create one that runs javascript (node) instead of perl, python, bash, etc.


Charlie

--
    Make-Tracks Secure Hosting Pty Ltd  <http://www.make-tracks.com>
    PO Box 141                               <[email protected]>
    Windsor NSW 2756  Australia                 Ph:  +61 2 9043 0613

    ** Take Control of Your Website **

--
This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].

Reply via email to