Add support for JSRun, a online code editor for testing your code, such as JavaScript, CSS, HTML, Go, PHP and so on.
Become a backer or sponsor to support our work.
1{{< jsrun [id] >}}
id
Position | Name | Type | Required | Default | Since | Example |
---|---|---|---|---|---|---|
#0 | id | string | ✓ | - | - | - |
Code ID.
theme
Position | Name | Type | Required | Default | Since | Example |
---|---|---|---|---|---|---|
- | theme | string | - | light | - | - |
Theme.
Available options: light
, dark
.
tabs
Position | Name | Type | Required | Default | Since | Example |
---|---|---|---|---|---|---|
- | tabs | string | - | all | - | - |
The comma-separated tabs.
Available options: js
, html
, css
, result
.
height
Position | Name | Type | Required | Default | Since | Example |
---|---|---|---|---|---|---|
- | height | number | - | 300 | - | - |
Frame height.
mode
Position | Name | Type | Required | Default | Since | Example |
---|---|---|---|---|---|---|
- | mode | string | - | 300 | - | - |
Operating mode for other languages.
Available options: quick
, term
.
1{{< jsrun QG6Kp >}}
1{{< jsrun id=e3dKp mode=term >}}
1{{< jsrun id=Q3dKp mode=quick >}}
1{{< jsrun id=QG6Kp tabs=html,css,result >}}
1{{< jsrun id=QG6Kp theme=dark >}}
1{{< jsrun id=QG6Kp height=200 >}}
1{{< jsrun id=QG6Kp tabs=html,css,result theme=dark >}}