Basic
"External" demos let you write demo code in dedicated files: the MDX stays readable, and your IDE treats the demo as the source file it is.
Point a fenced block at one with file=, and add live:
Which turns into:
Loading demo…
The fence body stays empty — the file's contents are what gets shown. See
Usage for the path prefixes file= accepts.