FillIn Template Variables
FillIn is CodeExpander’s form-on-expand feature: insert FillIn variables in a snippet (e.g. %filltext%, %fillarea%); on expand a popup opens for you to fill, then variables are replaced. Good for prompts, email templates, parameterized code blocks.
Variable Types
1. %filltext% — Single-line text
Format:
%filltext&name=id&default=value&width=px%Parameters: name required; default, width (default 100) optional.
Example:
Hello, %filltext&name=username&default=World&width=150%!2. %fillarea% — Multi-line text
Format: %fillarea&name=id&default=...&width=...&rows=N%
Parameters: name required; default, width, rows (default 2) optional.
3. %fillnote% — Comment (no output)
Format: %fillnote&name=id&default=comment&width=...%
Shown in editor only; removed from output.
4. %fillcheck% — Checkbox
Format: %fillcheck&name=id&default=value when checked&isCheck=0|1&width=...%
Example: when checked inserts default; when unchecked inserts nothing (or empty).
5. %fillmenu% — Dropdown
Format: %fillmenu&name=id&default=option&opt=Option1&opt=Option2&...%
Parameters: name, opt (one or more) required; default, isCheck, info, width optional.
Date %date%
Format: %date&format=...&lang=...&calc=days offset%
Common formats: YYYY-MM-DD, YY-M-D, HH:mm:ss, L / LL / LLL / LLLL (localized).
Keyboard %clavier%
Format: %clavier&key=key&modifier=mod%
Presets: %clavier&key=Enter%, %clavier&key=Escape%, %clavier&key=Tab%
Custom: %clavier&key=V&modifier=command% (Cmd+V)
Function variables
| Variable | Description |
|---|---|
%c% | Cursor position — caret stays here after expand |
%cv% | Clipboard content — insert current clipboard text |
%s:abbr% | Nested snippet — insert content of snippet with that abbreviation |
Example:
function %filltext&name=funcName&default=myFunction%() {
%c%
}FillIn Window
Flow
User types abbreviation → FillIn detected → Form opens → User fills → Variables replaced → OutputShortcuts
| Shortcut | Action |
|---|---|
Cmd/Ctrl + Enter | Confirm and insert |
Enter / Tab | Next field |
Content types
| Type | Description |
|---|---|
plain | Plain text |
rich | Rich text (HTML) |
shell | Shell (run and output) |
js | JavaScript (run and output) |
python | Python (run and output) |
applescript | AppleScript (macOS) |
powershell | PowerShell (Windows) |