# Changelog

All notable changes to `shiki-php` will be documented in this file.

## 2.3.3 - 2026-02-01

### What's Changed

* Fix: Support large code blocks by passing input via stdin instead of command-line arguments (#36) by @drewrichards

This fixes the `proc_open(): posix_spawn() failed: Argument list too long` error that occurred when highlighting large code blocks.

## 2.3.2 - 2025-02-21

### What's Changed

* Removed PHP ^7.4 from requirements by @timoisik in https://github.com/spatie/shiki-php/pull/30

### New Contributors

* @timoisik made their first contribution in https://github.com/spatie/shiki-php/pull/30

**Full Changelog**: https://github.com/spatie/shiki-php/compare/2.3.1...2.3.2

## 2.3.1 - 2025-02-18

### What's Changed

* fix: restore blade grammar file by @heywhy in https://github.com/spatie/shiki-php/pull/31

**Full Changelog**: https://github.com/spatie/shiki-php/compare/2.3.0...2.3.1

## 2.3.0 - 2025-02-10

### What's Changed

* feat: upgrade shiki to v2 by @heywhy in https://github.com/spatie/shiki-php/pull/29

**Full Changelog**: https://github.com/spatie/shiki-php/compare/2.2.2...2.3.0

## 2.2.2 - 2024-11-06

### What's Changed

* fix: support string and object for `token.htmlStyle` by @Barbapapazes in https://github.com/spatie/shiki-php/pull/28

**Full Changelog**: https://github.com/spatie/shiki-php/compare/2.2.1...2.2.2

## 2.2.1 - 2024-11-05

### What's Changed

* fix: create shiki with dual themes by @Barbapapazes in https://github.com/spatie/shiki-php/pull/27

**Full Changelog**: https://github.com/spatie/shiki-php/compare/2.2.0...2.2.1

## 2.2.0 - 2024-11-05

### What's Changed

* feat: support (at least) dual themes by @Barbapapazes in https://github.com/spatie/shiki-php/pull/26

### New Contributors

* @Barbapapazes made their first contribution in https://github.com/spatie/shiki-php/pull/26

**Full Changelog**: https://github.com/spatie/shiki-php/compare/2.1.0...2.2.0

## 2.1.0 - 2024-09-29

### What's Changed

* Allow running in vanilla PHP projects by @timacdonald in https://github.com/spatie/shiki-php/pull/25
* Re-add `getAvailableLanguages`, `getAvailableThemes`, `languageIsAvailable` and `themeIsAvailable` by @s3ththompson in https://github.com/spatie/shiki-php/pull/23

### New Contributors

* @timacdonald made their first contribution in https://github.com/spatie/shiki-php/pull/25
* @s3ththompson made their first contribution in https://github.com/spatie/shiki-php/pull/23

**Full Changelog**: https://github.com/spatie/shiki-php/compare/2.0.0...2.1.0

## 2.0.0 - 2024-02-19

### Upgrading

- The `getAvailableLanguages`, `getAvailableThemes`, `languageIsAvailable` and `themeIsAvailable` methods have been removed. These are no longer necessary as Shiki 1.0 lazy loads these when necessary.

#### What's Changed

* feat: upgrade support to shiki v1 by @heywhy in https://github.com/spatie/shiki-php/pull/21
* Close code block by @mxsgx in https://github.com/spatie/shiki-php/pull/15
* Update README.md by @joshbruce in https://github.com/spatie/shiki-php/pull/17
* Fix badges by @erikn69 in https://github.com/spatie/shiki-php/pull/18
* feat: support tj/n by @axelrindle in https://github.com/spatie/shiki-php/pull/20

#### New Contributors

* @mxsgx made their first contribution in https://github.com/spatie/shiki-php/pull/15
* @joshbruce made their first contribution in https://github.com/spatie/shiki-php/pull/17
* @erikn69 made their first contribution in https://github.com/spatie/shiki-php/pull/18
* @axelrindle made their first contribution in https://github.com/spatie/shiki-php/pull/20
* @heywhy made their first contribution in https://github.com/spatie/shiki-php/pull/21

**Full Changelog**: https://github.com/spatie/shiki-php/compare/1.3.0...2.0.0

## 1.3.0 - 2022-06-01

### What's Changed

- Allow php7.4 by @jonassiewertsen in https://github.com/spatie/shiki-php/pull/14

### New Contributors

- @jonassiewertsen made their first contribution in https://github.com/spatie/shiki-php/pull/14

**Full Changelog**: https://github.com/spatie/shiki-php/compare/1.2.0...1.3.0

## 1.2.0 - 2022-02-24

## What's Changed

- Add information to README.md about using NVM by @Drewdan in https://github.com/spatie/shiki-php/pull/10
- Update antlers.tmLanguage.json by @JohnathonKoster in https://github.com/spatie/shiki-php/pull/13
- Allow for user customizable renderer scripts by @mallardduck in https://github.com/spatie/shiki-php/pull/9

## New Contributors

- @Drewdan made their first contribution in https://github.com/spatie/shiki-php/pull/10
- @JohnathonKoster made their first contribution in https://github.com/spatie/shiki-php/pull/13
- @mallardduck made their first contribution in https://github.com/spatie/shiki-php/pull/9

**Full Changelog**: https://github.com/spatie/shiki-php/compare/1.1.7...1.2.0

## 1.1.7 - 2021-07-22

- fix Node path

## 1.1.6 - 2021-07-22

- add common locations to look for node

## 1.1.5 - 2021-07-12

- Update Antlers syntax highlighting

## 1.1.4 - 2021-07-12

- Fix compatibility on lower versions of Node

## 1.1.3 - 2021-07-11

- Fix an issue where embedded languages weren't being highlighted correctly

## 1.1.2 - 2021-07-11

- Fix an issue where focus was applied to the Shiki div when not needed

## 1.1.1 - 2021-07-10

- Fix an issue when passing lines to be highlighted

## 1.1.0 - 2021-07-10

- You can now mark lines as `highlighted`, `added`, `deleted` or `focus`

## 1.0.2 - 2021-07-09

- significantly improve speed

## 1.0.1 - 2021-07-09

- use default executable name

## 1.0.0 - 2021-07-09

- initial release
