package ochre-cli

  1. Overview
  2. Docs
On This Page
  1. 1.0.0
Command-line interface for ochre syntax highlighter

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ochre-1.1.0.tbz
sha256=a8e38fbcd22fbb68b0f7d93b36a2ba1670e8bd061b43a0177226738307183a32
sha512=7b344c3812be283b0101078564e564732f878ad226c7ce0212c9e9139fb41a291e4d31ad52c949f2978c48e04240d4d22b5b4ae63808e15a21c44a2fbeed8a22

doc/CHANGES.html

1.1.0

  • Add built-in plaintext/text/txt languages that produce unstyled tokens without a grammar, in both the library and the CLI.
  • Add ?options and ?extra_themes to Ochre.to_string, giving the runtime-format API the same HTML capabilities as Ochre.to_html.
  • Report the real package version from ochre --version instead of a hardcoded string.
  • Preserve source line endings across tokenization, CLI input, and rendered output.
  • Reject multi-theme transforms that produce incompatible token structures.
  • Count decoration positions as Unicode scalar values instead of UTF-8 bytes.
  • Report CLI input and theme loading failures without uncaught exceptions.
  • Document all CLI flags, bundled grammars, and dual-theme HTML output in the CLI reference.
  • Deploy API documentation and dual-theme/ANSI/tokens previews to GitHub Pages.

1.0.0

  • Initial release of ochre, a syntax highlighter inspired by Shiki, using TextMate grammars and themes to produce accurate, beautiful syntax highlighting. It supports HTML output with inline styles, ANSI terminal colors, and raw token output
  • Initial release of ochre-cli, a CLI tool for highlighting source code using TextMate grammars and themes