Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tempestphp/highlight
🎨 Fast, extensible, server-side code highlighting for web and terminal
https://github.com/tempestphp/highlight
code highlight php
Last synced: 3 months ago
JSON representation
🎨 Fast, extensible, server-side code highlighting for web and terminal
- Host: GitHub
- URL: https://github.com/tempestphp/highlight
- Owner: tempestphp
- License: mit
- Created: 2024-03-15T09:29:27.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-01T22:24:51.000Z (5 months ago)
- Last Synced: 2024-07-09T12:03:04.268Z (4 months ago)
- Topics: code, highlight, php
- Language: PHP
- Homepage: https://tempest.stitcher.io/highlight/01-getting-started
- Size: 1.06 MB
- Stars: 573
- Watchers: 8
- Forks: 32
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Fast, extensible, server-side code highlighting
[![Coverage Status](https://coveralls.io/repos/github/tempestphp/highlight/badge.svg?branch=main)](https://coveralls.io/github/tempestphp/highlight?branch=main)## Quickstart
```php
composer require tempest/highlight
```Highlight code like this:
```php
$highlighter = new \Tempest\Highlight\Highlighter();$code = $highlighter->parse($code, 'php');
```Continue reading in the docs: [https://tempest.stitcher.io/highlight/01-getting-started](https://tempest.stitcher.io/highlight/01-getting-started).