tree-sitter.tree-sitter/docs
Will Lillis 3a76a8c8ca feat(cli)!: rework HTML output modes in highlight
- `--layout <document|line-numbers|fragment>` (default `document`): the
  document structure. `document` is a self-contained page wrapping a plain
  `<div class="highlight"><pre><code>` block, `line-numbers` adds a line-number
  `<table>`, and `fragment` emits only the code markup with no surrounding
  `<head>`/`<style>`/`<body>` so it can be embedded in an existing page.

- `--style <classes|inline|minimal>` (default `classes`): how token colors
  are applied. `classes` uses `class="..."` spans plus a generated `<style>`,
  `inline` bakes colors onto each span so the markup is self-contained, and
  `minimal` emits bare classes with no colors (bring your own stylesheet).

Deprecates the `--css-classes` flag.
2026-07-24 20:56:56 -04:00
..
src feat(cli)!: rework HTML output modes in highlight 2026-07-24 20:56:56 -04:00
theme docs: add favicon and logo 2024-12-25 21:23:36 -05:00
.gitignore docs: migrate to mdbook 2024-12-24 20:54:59 -05:00
book.toml treewide: add taplo config and reformat toml files 2026-02-18 00:59:34 -05:00
package.nix refactor: rework nix flake 2025-09-09 03:03:35 -04:00