diff --git a/docs/plugins/reference/diffs-language-pack.md b/docs/plugins/reference/diffs-language-pack.md index ef4301567a0d..4931fc42946f 100644 --- a/docs/plugins/reference/diffs-language-pack.md +++ b/docs/plugins/reference/diffs-language-pack.md @@ -17,3 +17,15 @@ Adds syntax highlighting for languages outside the default diffs viewer set. ## Surface plugin + + + +## Added languages + +The base `diffs` plugin already highlights the common languages documented in [Diffs](/tools/diffs). Install this language pack when you want syntax highlighting for a broader set of Shiki-supported languages. If the pack is not installed, those files still render as readable plain text. + +Examples include Astro, Vue, Svelte, MDX, GraphQL, Terraform/HCL, Nix, Clojure, Elixir, Haskell, OCaml, Scala, Zig, Solidity, Verilog/VHDL, Fortran, MATLAB, LaTeX, Mermaid, Sass/Less/SCSS, Nginx, Apache, CSV, dotenv, INI, and diff files. + +See [Shiki languages](https://shiki.style/languages) for Shiki's upstream language and alias catalog. + + diff --git a/docs/tools/diffs.md b/docs/tools/diffs.md index bf1687c90831..e3095fc0e56c 100644 --- a/docs/tools/diffs.md +++ b/docs/tools/diffs.md @@ -216,7 +216,9 @@ Install the Diff Viewer Language Pack plugin to highlight other languages: openclaw plugins install clawhub:@openclaw/diffs-language-pack ``` -With the language pack available, OpenClaw automatically uses it for languages outside the default list. Without it, those files stay readable as plain text. +With the language pack available, OpenClaw can highlight many more languages. If the pack is not installed, files outside the default list still render as readable plain text. Examples include Astro, Vue, Svelte, MDX, GraphQL, Terraform/HCL, Nix, Clojure, Elixir, Haskell, OCaml, Scala, Zig, Solidity, Verilog/VHDL, Fortran, MATLAB, LaTeX, Mermaid, Sass/Less/SCSS, Nginx, Apache, CSV, dotenv, INI, and diff files. + +See [Diffs Language Pack plugin](/plugins/reference/diffs-language-pack) for details and [Shiki languages](https://shiki.style/languages) for Shiki's upstream language and alias catalog. ## Output details contract diff --git a/extensions/diffs-language-pack/README.md b/extensions/diffs-language-pack/README.md index 4f0f5ecb9fd0..c3d977f121ea 100644 --- a/extensions/diffs-language-pack/README.md +++ b/extensions/diffs-language-pack/README.md @@ -4,6 +4,8 @@ Official extended syntax highlighting pack for the OpenClaw Diffs plugin. The base `@openclaw/diffs` plugin ships a curated language set. Install this package when you want the full Shiki language catalog available in rendered diff viewers and diff image/PDF output. +The pack adds highlighting for languages outside the default diffs viewer set, including Astro, Vue, Svelte, MDX, GraphQL, Terraform/HCL, Nix, Clojure, Elixir, Haskell, OCaml, Scala, Zig, Solidity, Verilog/VHDL, Fortran, MATLAB, LaTeX, Mermaid, Sass/Less/SCSS, Nginx, Apache, CSV, dotenv, INI, and diff files. See the plugin reference and Shiki language catalog for details. + ## Install ```bash