Web Editor
The t-Plot Web Editor is the primary tool for creating and editing stories. It is a full-featured code editor built into the Developers Portal with Yarn syntax highlighting, intelligent autocomplete, and an integrated debugger.
Why Use the Web Editorβ
- No setup required β start writing immediately in your browser
- Syntax highlighting β Yarn commands, tags, variables, and options are color-coded
- Smart autocomplete β commands, node names, variables, speakers, and tags
\\shortcuts β quickly insert commands and media tags with two keystrokes- Smart input β automatic escaping, auto-replace for special characters, smart Enter
- Formatting β keyboard shortcuts and context menu for bold, italic, underline, and more
- Integrated debugger β test your story without leaving the editor
- Instant validation β catch errors before publishing
Getting Startedβ
- Go to Developers Portal
- Click Add build
- Choose Create in editor to open the web editor
- Write your story using Yarn syntax
- Use the debugger panel to test your story
- Publish when ready
Editor Layoutβ
The editor consists of two main areas:
- Code panel (left) β where you write your Yarn script with full syntax support
- Debug panel (right) β a Telegram-like preview where you can test your story in real time
Legacy Method: Uploading .yarn Filesβ
You can still create stories by uploading .yarn files:
- Write your script in any text editor (we recommend VS Code with the Yarn Spinner extension)
- Go to Developers Portal
- Click Add build, then Upload Story
- Select your
.yarnfiles (max 5 MB total) - The parser will validate your script and report any errors
Recommendation
The web editor is the recommended way to create stories. It provides real-time feedback, autocomplete, and an integrated debugger that significantly speed up the development process.