mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 15:13:38 +01:00
Add Pkl language grammar into Highlight.js #351
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jcubit on GitHub (Oct 8, 2025).
Feature Name
Add Pkl language grammar into Highlight.js
Description
Hi 👋
Would it be possible to add a Pkl language grammar into highlight.js?
Thank you for considering this!
Motivation
highlight.jsis a popular syntax-highlighting javascript package. The community of Pkl users can benefit from this support. In particular, Docc renders language syntax viahighlight.js. Any website could use this javascript package to show Pkl code.@bioball commented on GitHub (Nov 11, 2025):
I agree that this is good to have. We'll look into it.
@bioball commented on GitHub (Dec 16, 2025):
This is now released! https://github.com/apple/highlightjs-pkl
I'm also working on a PR for https://github.com/swiftlang/swift-docc-render, should come shortly.
@jcubit commented on GitHub (Dec 16, 2025):
Awesome work! 🚀 Thank you