tinta for VS CodeTinta is a language for interactive documents with controls, calculations, conditions, tables and charts. It is compatible with Markdown, so you can use familiar text formatting alongside its interactive capabilities. The VS Code extension highlights Learn more about the language, examples and other tools in the tinta project on GitHub. The syntax cheatsheet is a useful reference while writing. Install and start writingInstall the supplied Try this in
Run tinta: Open Preview and move the slider. The result changes as you read. Use tinta: Reset Reading to return to the document's starting values. The top right of the editor has three buttons: Show Source (code icon), Open Preview (split preview icon), and Show Preview (preview icon). Use them to switch between source, source beside preview, and preview in the same editor group. The buttons also appear in the preview. Your source stays open, including unsaved edits; hiding and recreating the preview resets reading answers. Type Add a chart with a small table:
Work with Markdown and imagesTo build on an existing For an image such as Use tinta: Open Source Bundle to open a Export a documentRun tinta: Export Interactive HTML to give readers working controls and charts, or tinta: Export Static HTML to save the current visible result. You can export the document's starting values or the current preview answers. Both HTML files open in a browser without the extension. Interactive HTML contains the complete source, data and hidden branches. Static HTML contains the visible result and its required images. Review the export choice when the document contains private content. Limits and helpPreview answers stay in memory and reset when the preview is closed or recreated. Editing an existing file with mixed or lone-CR line endings may require tinta: Create UTF-8/LF Copy for Preview; the original remains untouched. Image, bundle, Markdown enrichment and export commands require a trusted workspace. The extension has no rename, quick fix or formatting command. It does not run authored JavaScript, CSS or HTML. For language details and troubleshooting, see the project documentation. |