← All extensions

Caddyfile

v0.0.7 · by Bowen Sun · added 3 November 2026

Caddyfile support with syntax highlighting and Tree-sitter grammar.

Languages

How to install

With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.

You can also open the Extensions panel in the app and search for Caddyfile. The extension's id is caddyfile.

Don't have Forge Super yet? Download it here.

README

From the extension's repository, written by its authors and not by Mentenaz. See the source.

Caddyfile Support for Zed Editor

This extension adds basic support for Caddyfile syntax highlighting in the Zed editor.

Features

  • Syntax Highlighting: Provides syntax highlighting for Caddyfile configurations in Zed.

Installation

  1. Clone the Repository:

    git clone https://github.com/nusnewob/caddyfile-zed.git
    
  2. Install the Extension:

    Follow Zed's guidelines to install the extension into your editor.

  3. Configure:

    Update your Zed config file.

    "file_types": {
      "Caddyfile": ["Caddyfile*", "*.caddyfile"]
    },
    "languages": {
      "Caddyfile": {
        "format_on_save": "on",
        "tab_size": 2,
        "formatter": {
          "external": {
            "command": "caddy",
            "arguments": ["fmt", "-c", "-"]
            // for Caddy docker container
            // "command": "docker",
            // "arguments": ["run", "--rm", "-i", "caddy", "caddy", "fmt", "-c", "-"]
          }
        }
      }
    }
    

Acknowledgments

This extension utilizes the tree-sitter-caddyfile for parsing Caddyfile. Special thanks to the contributors of that project for their work.