Browser extension
Run code
There are two ways to get code into the extension.
From a page you are reading
- Select the code on the page.
- Right click, and choose Execute with JDoodle.
- The panel opens beside the page with your code already in it.
- Check the language and version, then choose Execute.
This works wherever the text can be selected, including an answer from an AI assistant.
By typing or pasting
- Choose the JDoodle icon to open the panel.
- Clear whatever is in the editor.
- Type or paste your code.
- Choose the language and version, then choose Execute.
You can edit the code in the panel either way, before or after a run.
Language and version
Both are dropdowns underneath the Execute button. Set the language first, because the version list changes with it.
The extension tries to work out the language from the code you paste. It is often right, but not always, so check it before you run. Setting it yourself is always faster than debugging a wrong guess.
Resizing the panel
Drag the edge between the page and the panel. The panel keeps the width you give it.
What to keep out of it
Treat the panel like any other editor on a shared screen. Do not paste passwords, API keys or tokens into code you are about to run, and be careful running unfamiliar code that reads files or makes network calls.
What next
Execution history keeps what you ran.