Sublime Forum

Running JavaScript code in a view?

#1

I’d like to run some React code in a Sublime view.

I see it can run some HTML, but doesn’t seem to have any JavaScript engine.

Is there any ways to run JavaScript code in a Sublime Text view? Maybe with an external Python library that can run JavaScript?

0 Likes

#2

I think you are asking an embedded browser anyhow, which won’t happen.

1 Like

#3

Well I’m not sure… I don’t need any other features than running JavaScript, that’s why I talked about a JavaScript engine.

Does it make any sense or not?

0 Likes

#4

The HTML view Sublime is a minimal implementation of HTML, quite limited, so I do not see a JS engine being integrated.

0 Likes

#5

there are plugins which download a JS runtime and execute JS code - the old Emmet used to do this for example

0 Likes

#6

Thank you for pointing this, I will have a look.

0 Likes