# Installation `email.sublime-syntax` requires **Sublime Text 4 (Build 4143+)** and also integrates with [bat](https://github.com/sharkdp/bat). ## Package Control (Recommended) 1. Open the Command Palette: - **macOS**: `Cmd+Shift+P` - **Windows / Linux**: `Ctrl+Shift+P` 2. Choose **Package Control: Install Package**. 3. Search for **EML (E-Mail)** and press `Enter`. ## Manual Installation (Git Clone) Clone this repository directly into your Sublime Text `Packages` directory: ### macOS ```bash git clone https://github.com/mariozaizar/email.sublime-syntax.git "$HOME/Library/Application Support/Sublime Text/Packages/Email" ``` ### Linux ```bash git clone https://github.com/mariozaizar/email.sublime-syntax.git "$HOME/.config/sublime-text/Packages/Email" ``` ### Windows (Command Prompt) ```cmd git clone https://github.com/mariozaizar/email.sublime-syntax.git "%APPDATA%\Sublime Text\Packages\Email" ``` *(For local development from a cloned repository, you can symlink it into Sublime Text with `./scripts/link_sublime.sh`.)* ## Integration with `bat` [bat](https://github.com/sharkdp/bat) ships with `email.sublime-syntax` built in. To install the latest version directly as a custom override without waiting for the next `bat` release: ```bash mkdir -p "$(bat --config-dir)/syntaxes" curl -fsSL -o "$(bat --config-dir)/syntaxes/email.sublime-syntax" \ https://raw.githubusercontent.com/mariozaizar/email.sublime-syntax/master/email.sublime-syntax bat cache --build ``` *(For local development from a cloned repository, run `./scripts/link_bat.sh` to symlink your working copy and rebuild the cache.)* > **Note:** Quoted-Printable HTML bodies (`Content-Type: text/html` with `Content-Transfer-Encoding: quoted-printable`) are highlighted in Sublime Text 4 using `email_qp.sublime-syntax`, which relies on ST4 syntax inheritance (`extends:`). Because `bat`'s `syntect` engine does not yet support `extends:`, only `email.sublime-syntax` is loaded in `bat` and Quoted-Printable HTML parts fall back to plain text.