Torchlight.dev — The VS Code Compatible Syntax Highlighting API.

Torchlight Annotations

If for whatever reason you want to disable all of the Torchlight annotations, you may do so with the torchlightAnnotations option.

This option was added specifically for these docs. We don't expect you'll need it unless you're trying to show how Torchlight works!

1// torchlight! {"torchlightAnnotations": false}
2return [
3 'extensions' => [
4 // Add attributes straight from markdown.
5 AttributesExtension::class,
6
7 // Add Torchlight syntax highlighting.
8 TorchlightExtension::class, // [tl! focus]
9 ]
10]

Notice on line 7 that the Torchlight annotation was just left untouched.

1return [
2 'extensions' => [
3 // Add attributes straight from markdown.
4 AttributesExtension::class,
5 
6 // Add Torchlight syntax highlighting.
7 TorchlightExtension::class, // [tl! focus]
8 ]
9]
A Hammerstone, LLC Product.
Built with Love & Care by Aaron in Dallas, Texas.