v.25.7Improvement

Highlighting in clickhouse-format and

Highlighting in clickhouse-format and in the client's echo will work in the same way as the highlighting in the command line prompt. #82874 (Alexey Milovidov).
Unified SQL Syntax Highlighting in clickhouse-format and Client Echo

This feature ensures that SQL syntax highlighting in the clickhouse-format tool and the echo output in the ClickHouse client matches the highlighting style used in the command line prompt.

Why it matters

Motivation:

To provide a consistent and unified visual experience for users interacting with ClickHouse across different interfaces by standardizing SQL syntax highlighting. This helps users easily read and understand SQL queries whether they are formatting queries using clickhouse-format, viewing echoed queries in the client, or working directly in the command line prompt.

How to use it

How to Use:

No explicit user action is required to enable this feature. The highlighting improvements are automatically applied in clickhouse-format and client echo outputs, matching the command line prompt's syntax highlighting style.