Skip to content

Function syntax highlighting \sf #1488

Open

Description

@flyte

Description

Is it possible to apply syntax highlighting to the function definitions returned by \sf <function-name>?

Your environment

Postgres

  • Ubuntu 24.04
  • pgcli 4.1.0

Activity

  1. Muneer320 commented on Nov 5, 2026

    @Muneer320

    I'd like to take this. I'd trace the existing \sf result from pgspecial through format_output, then apply SQL highlighting to the definition text while preserving plain redirected output. Is pgcli the preferred place for that rendering change, or should part of it live in pgspecial? I'm interested in handling the pgcli side if it's available.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions