I'm sure there may be a more elegant ways to do this buuuuuut...

I past the following (between quotes) into a file with html as the extension

"<!DOCTYPE html>
<html>
<body>

<script src="Script.js">
</script>

</body>
</html>"

I then write my code in a file called "Script.js". The Script file is saved 
to the same directory/folder as my html file. Then you can run the script 
inside a browser by just saving the script file (not necessary to close) 
and double clicking or refreshing (if already open) the html.



On Tuesday, December 11, 2018 at 9:48:17 AM UTC-5, Gauvins wrote:
>
> Running Python scripts from BBEdit is extremely convenient.
>
> What would be the best way to test code snippets (or an entire script) 
> written in javascript (on OSx)?
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to