Signature
Parameters
None.Returns
Usage
Get All Code
Access Specific Editor Code
Get Result Page HTML
Export Code to File
Compare Source and Compiled Code
Save Code Snapshot
Watch for Code Changes
Notes
- The
compiledfield contains the processed/transpiled code ready for execution. - For languages that don’t require compilation (e.g., plain HTML, CSS, JavaScript),
compiledequalscontent. - The
resultfield contains the complete HTML document sent to the result iframe. - If the playground is not yet loaded, calling this method will load it first.
- Code compilation happens automatically; you don’t need to call
run()beforegetCode().
Related Methods
getConfig()- Get the full configuration objectsetConfig()- Update playground codewatch()- Watch for code changesrun()- Execute the code