v0.14.0

23 October 2026

Code fields highlight with Phiki, and templates get a highlight() function.

Added

  • {highlight($code, 'latte')} returns highlighted code for a template. A latte grammar ships with the code fieldtype, and latte is a selectable language.

Changed

  • The code fieldtype highlights with phiki/phiki instead of tempest/highlight, using the one-dark-pro theme. FieldTypeCode::decode(), and so {$page->field} and {highlight()}, returns a complete <pre> element carrying the theme's background. A template that wraps it in <pre><code> now nests two <pre> elements: wrap it in a styled <div> instead.
  • Code that used Tempest\Highlight directly no longer autoloads.

Comments

No comments yet. Be the first!

Loading form…