A fast, lightweight Windows application for generating XML tags with attributes through a simple text interface.
- Real-time XML generation - See XML output update instantly as you type
- Intuitive syntax - Use tabs to separate tag names, attributes, and values
- Smart attribute handling - Automatically distinguishes boolean attributes from key-value pairs
- Two output modes:
- Type mode (Enter) - Types XML directly into the active application with reliable Shift+Enter line breaks
- Clipboard mode (Ctrl+Enter or Shift+Enter) - Copies XML to clipboard
- Undo/Redo support - Undo changes with Ctrl+Z and redo with Ctrl+Y
- Clipboard paste - Paste clipboard content into a value (after first tab) using Ctrl+V
- XML mode toggle - Switch between regular tags and self-closing tags (e.g.,
<br />
) with Ctrl+S - Special character escaping - Replaces unsupported characters with
~
and escapes&
,<
,>
, and"
in attribute values - Text wrapping - Automatically wraps long lines in the display view for readability
- Multi-monitor support - Opens on the monitor where your mouse cursor is located
- Clean, modern UI - Built with the Sokol graphics library
- Run
tag.exe
- Type your tag structure using tabs to separate elements
- (Optional) Use Ctrl+V to paste clipboard content into an attribute value, Ctrl+Z/Ctrl+Y to undo/redo, or Ctrl+S to toggle between regular and self-closing tag modes
- Press Enter to type the XML into the active window, or Ctrl+Enter/Shift+Enter to copy XML to the clipboard and quit
Input:
div
Output:
<div>
</div>
Input:
img<tab>src<tab>photo.jpg<tab>alt<tab>A photo
Output:
<img src="photo.jpg" alt="A photo">
</img>
Input:
button<tab>disabled<tab><tab>type<tab>submit
Output:
<button disabled type="submit">
</button>
- Type characters - Build your tag structure
- TAB - Insert tab character (separates tag name, attributes, values)
- BACKSPACE - Delete last character
- ENTER - Close the app and type XML with reliable Shift+Enter line breaks
- CTRL+ENTER or SHIFT+ENTER - Copy XML to clipboard and quit
- CTRL+V - Paste clipboard content into a value (after first tab)
- CTRL+Z - Undo last action
- CTRL+Y - Redo last undone action
- CTRL+S - Toggle between regular and self-closing XML modes
- ESC - Cancel and quit immediately
- Zig (latest)
# Debug build (shows console logs)
zig build
# Release build (no console window)
zig build -Doptimize=ReleaseFast
# Run tests
zig build test
# Run directly
zig build run
Special thanks to SUI (Simple User Input) - This project relies on the excellent SUI library by Finxx1 for reliable keyboard input simulation on Windows. SUI provides the robust foundation that makes the typing functionality work seamlessly across different applications.
- Language: Zig
- Graphics: Sokol
- Input Simulation: SUI by Finxx1
- Platform: Windows (input simulation is Windows-specific)
- Architecture: Single executable, no external dependencies
MIT License - see LICENSE file for details.