JSRun

Add support for JSRun, a online code editor for testing your code, such as JavaScript, CSS, HTML, Go, PHP and so on.

Syntax

1{{< jsrun [id] >}}

Parameters

id

PositionNameTypeRequiredDefaultSinceExample
#0idstring---

Code ID.

theme

PositionNameTypeRequiredDefaultSinceExample
-themestring-light--

Theme.

Available options: light, dark.

tabs

PositionNameTypeRequiredDefaultSinceExample
-tabsstring-all--

The comma-separated tabs.

Available options: js, html, css, result.

height

PositionNameTypeRequiredDefaultSinceExample
-heightnumber-300--

Frame height.

mode

PositionNameTypeRequiredDefaultSinceExample
-modestring-300--

Operating mode for other languages.

Available options: quick, term.

Examples

Source
1{{< jsrun QG6Kp >}}
Result

JSRun with Go in Term Mode

Source
1{{< jsrun id=e3dKp mode=term >}}
Result

JSRun with MySQL in Quick Mode

Source
1{{< jsrun id=Q3dKp mode=quick >}}
Result

JSRun with Custom Tabs

Source
1{{< jsrun id=QG6Kp tabs=html,css,result >}}
Result

JSRun with Dark Theme

Source
1{{< jsrun id=QG6Kp theme=dark >}}
Result

JSRun with Height

Source
1{{< jsrun id=QG6Kp height=200 >}}
Result

JSRun with Custom Tabs and Dark Theme

Source
1{{< jsrun id=QG6Kp tabs=html,css,result theme=dark >}}
Result