Syntax highlighting, live preview, and code snippets for .pretdf.md templates.
Features
- Syntax highlighting for YAML front-matter, Liquid tags/outputs, remark-directive blocks, Markdown, and embedded HTML.
- Live preview panel (
Cmd+Shift+P / Ctrl+Shift+P) that compiles your template to HTML in real-time.
- Snippets for common template patterns: scaffolds, tables, callouts, columns, loops, conditionals, and more.
- Status bar indicator when editing pretdf templates.
Usage
- Open any
.pretdf.md file.
- Run pretdf: Open Preview from the command palette or press
Cmd+Shift+P.
- Place a
data.json file next to your template, or use pretdf: Set Data File to pick one.
Snippets
| Prefix |
Description |
pretdf-init |
Full template scaffold |
pretdf-frontmatter |
YAML front-matter block |
pretdf-table |
Table with Liquid for loop |
pretdf-callout |
Callout with type attribute |
pretdf-columns |
Columns with cards |
pretdf-section |
Section directive |
pretdf-page-break |
Page break |
pretdf-source |
Source footer |
pretdf-for |
Liquid for loop |
pretdf-if |
Liquid if/else |
pretdf-render |
Liquid render partial |
pretdf-currency |
Currency filter expression |
License
Apache-2.0
| |