Code Snippet Types
| Type | Description | Use Cases | Notes |
|---|---|---|---|
| HTML | Copy-ready HTML code for embedding visualizations and charts. Use HTML snippets to add Zark-generated charts to your websites or applications, allowing you to integrate visualizations directly into your own interfaces. | • Embedding charts in websites • Creating custom dashboards • Building web applications • Integrating visualizations | HTML snippets include syntax highlighting and are ready to paste into your project. |
| Markdown | Formatted Markdown code for documentation and reports. Use Markdown snippets to document findings, create reports, or share insights in formatted documents. | • Creating documentation • Writing reports • Building documentation sites • Sharing formatted content | Markdown snippets are formatted and ready to use in markdown-compatible tools. |
Best Practices
| Snippet Type | Guidelines |
|---|---|
| HTML Snippets | • Review code before using • Test in your environment • Customize styling as needed • Ensure compatibility with your stack |
| Markdown Snippets | • Use in markdown-compatible tools • Customize formatting • Add your own content • Share formatted documents |
Example Prompts:Basic:
- “Generate HTML code for this chart”
- “Give me markdown for this table”
- “Create embeddable HTML for the price comparison chart”
- “Export this analysis as markdown documentation”
- “Generate a complete HTML dashboard with these three charts”
- “Create markdown documentation with all the key findings”