Download the PHP package torchlight/torchlight-ibis without Composer
On this page you can find all versions of the php package torchlight/torchlight-ibis. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download torchlight/torchlight-ibis
More information about torchlight/torchlight-ibis
Files in torchlight/torchlight-ibis
Package torchlight-ibis
Short Description A Torchlight client for the PDF book builder Ibis
License MIT
Homepage https://torchlight.dev
Informations about the package torchlight-ibis
Torchlight Client for Ibis
A Torchlight syntax highlighting extension for the ebook builder Ibis.
Torchlight is a VS Code-compatible syntax highlighter that requires no JavaScript, supports every language, every VS Code theme, line highlighting, git diffing, and more.
Installation
To install, require the package from composer:
If you haven't already, Composer will ask you to create a composer.json
file in the root of your book directory.
In your ibis.php
file, add the following to your configuration:
At the top of your ibis.php
file, you'll also need to add the composer autoloader if it's not already there:
To publish the Torchlight configuration file, you may run ./vendor/bin/torchlight
. It will place a torchlight.php
file next to your ibis.php
file.
You'll need to add a few styles to your stylesheet. These are slightly different from the default styles that Torchlight uses, because Ibis uses mPDF to convert the HTML to a PDF, and it has a few specific requirements.
Here is a good starting set of styles, but feel free to tweak them to match your needs.