Repository navigation
What's New
Three more languages — scss, php, and pwsh — bundled with the rest. No new imports. Default bundle is ~19 kB gzip with 33 languages.
SCSS
// comments, $variables, #{$interpolation}, and !default / !global / !optional, on top of CSS. sass and less resolve to the same grammar.
<Diff language="scss" :prev="before" :current="after" />PHP
Tags, $variables, attributes, HTML outside <?php, and variables inside double-quoted strings. phtml resolves to it.
<Diff language="php" :prev="before" :current="after" />PowerShell
Verb-Noun cmdlets, $variables, and -eq / parameters. ps1 and powershell resolve to it. Dark, coral, GitHub, Monokai, and Twilight palettes give cmdlets, numbers, and operators their own colors.
<Diff language="pwsh" :prev="before" :current="after" />Try them in the live demo.
Also in 1.3.0
- Coral themes color numbers, booleans, variables, and classes in every language. Those roles were gray, or tinted only for JSON and markup.
@speed-highlight/core2.1: Markdown headings and lists, CSS at-rules and custom properties, HTML attributes written in another language, and JavaScript regex-versus-division follow the upstream grammar fixes.
Full Changelog: v1.2.0...v1.3.0