parallax/filament-syntax-entry
A Filament form field that adds a syntax-highlighted code editor to your admin panels. SyntaxEntry makes editing code, JSON, and config in forms easier with configurable languages, themes, and a clean developer-friendly input experience.
What the package is. A Filament infolist entry that renders read-only code blocks with client-side highlight.js syntax highlighting and a themable presentation layer. It is a UI component, not a data or business-logic package. Scope is deliberately narrow: it only matters if we run Filament and need to display code, config, JSON payloads, SQL, or logs in a detail/infolist view.
Architecture fit.**
<pre> tag with a JS highlighter.Integration feasibility.**
Technical risk.**
highlight.js is loaded client-side. If it is pulled from a CDN, that is a supply-chain and CSP problem; in air-gapped or strict-CSP environments it silently fails. Self-hosting the JS and theme CSS should be a precondition, not a follow-up.highlight.js theme CSS is a maintenance surface that will look wrong before it breaks.Key questions for the maintainer/vendor spike.
composer.json, and is there a public v4 branch or issue?highlight.js sourced from — CDN, npm bundle, or published vendor asset — and is there a supported way to self-host?Stack fit.**
Migration path.**
TextEntry for the syntax entry in one schema, evaluate, revert if needed.CodeEntry subclass or Blade partial so that if we fork, pin, or replace it, call sites do not change.Compatibility.**
hljs classes and produce unreadable output; this is the most common silent failure.Sequencing.**
<script>, very long lines, unicode) and audit the escaping path.highlight.js and theme CSS, register assets explicitly in the panel provider, confirm CSP compliance, add a truncation cap.Maintenance.**
composer update side effect.highlight.js version and theme CSS we now ship — that becomes our asset to track and patch.Support.**
Scaling.**
Failure modes.**
<pre> fallback.Ramp-up.**
Recommendation. Approve for a bounded pilot in an internal admin panel where we control CSP and can self-host assets, with a wrapper class and a pinned version. Do not adopt as a platform standard until it has survived one Filament patch upgrade and the escaping behavior has been verified by review. The opportunity is real but small; the dependency is cheap to try and cheap to drop, which is precisely the condition under which a low-adoption package is acceptable.
How can I help you explore Laravel packages today?