First party extensions#
Realtime Compiler#
The Hyde Realtime Compiler is now included with Hyde
installations and is what powers the php hyde serve
command.
- GitHub: hydephp/realtime-compiler
- Packagist: hydephp/realtime-compiler
- YouTube video: Introducing the Hyde Realtime Compiler
Integrations with third-party tools#
Torchlight#
About Torchlight#
Torchlight is an amazing API for syntax highlighting and is what this site uses. I cannot recommend it highly enough, especially for documentation sites and code-heavy blogs!
Getting started#
To get started you need an API token which you can get through the torchlight.dev website. It is entirely free for personal and open source projects.
When you have an API token, set it in the .env
file in the root directory of your project.
Once a token is set, Hyde will automatically enable the CommonMark extension.
1TORCHLIGHT_TOKEN=torch_<your-api-token>
Attribution and configuration#
Note that you need to provide an attribution link, thankfully Hyde injects a customizable link automatically to all pages
that use Torchlight. You can of course disable this in the config/torchlight.php
file.
1'attribution' => [2 'enabled' => true,3 'markdown' => 'Syntax highlighting by <a href="https://torchlight.dev/" rel="noopener nofollow">Torchlight.dev</a>',4],
Contribute#
Have an idea for an extension or integration? Let me know! I'd love to hear from you.