Skip to content

[FEATURE]: Color SQL, Dockerfiles, config files and scripts in file tools #54702

Open

Description

@Nowaker

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

write, edit and apply_patch color a file by its extension, and many everyday files come out plain:

  • no parser is registered for SQL, Dockerfiles, ini-style config/systemd units or HAML;
  • .sh maps to shellscript while the parser is bash (likewise makefile/make, terraform/hcl), so shell scripts, Makefiles and Terraform are never colored;
  • extensionless files (Dockerfile, Gemfile, PKGBUILD, .env, a script with a #! line) have no language at all;
  • ERB has an extension mapping but no parser.

Related: #39601 (extensionless files).

This is AI generated, but under direct supervision and on request of @Nowaker.

Activity

  1. opencode-agent commented on Oct 12, 2026

    @opencode-agent
    Contributor

    Thanks for the detailed request, @Nowaker! To restate it: when write, edit and apply_patch show a file, it should get syntax colors for more file types. That means SQL, Dockerfiles, ini/systemd config, HAML and ERB, extensionless files (Dockerfile, Gemfile, PKGBUILD, .env, #! scripts), and extensions whose language name doesn't match the parser's name.

    The shell-script part is already fixed on dev: #44772 maps .sh/.bash/.zsh/.ksh to the bash parser. The other cases are still open.

    Related:

    The maintainers will consider this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions