-
-
Notifications
You must be signed in to change notification settings - Fork 397
/
Copy pathtorchlight.php
58 lines (44 loc) · 1.91 KB
/
torchlight.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
return [
// The Torchlight client caches highlighted code blocks. Here
// you can define which cache driver you'd like to use. If
// leave this blank your default app cache will be used.
'cache' => env('TORCHLIGHT_CACHE_DRIVER'),
// Which theme you want to use. You can find all of the themes at
// https://torchlight.dev/docs/themes.
'theme' => env('TORCHLIGHT_THEME', 'synthwave-84'),
// Your API token from torchlight.dev.
'token' => env('TORCHLIGHT_TOKEN'),
// If you want to register the blade directives, set this to true.
'blade_components' => false,
// The Host of the API.
'host' => env('TORCHLIGHT_HOST', 'https://api.torchlight.dev'),
// We replace tabs in your code blocks with spaces in HTML. Set
// the number of spaces you'd like to use per tab. Set to
// `false` to leave literal tabs in the HTML.
'tab_width' => 4,
// If you pass a filename to the code component or in a markdown
// block, Torchlight will look for code snippets in the
// following directories.
'snippet_directories' => [
resource_path()
],
// Global options to control blocks-level settings.
// https://torchlight.dev/docs/options
'options' => [
// Turn line numbers on or off globally.
'lineNumbers' => false,
'defaultLanguage' => 'antlers',
// Control the `style` attribute applied to line numbers.
// 'lineNumbersStyle' => '',
'fileStyle' => 'html',
// Turn on +/- diff indicators.
// 'diffIndicators' => true,
// If there are any diff indicators for a line, put them
// in place of the line number to save horizontal space.
// 'diffIndicatorsInPlaceOfLineNumbers' => true,
// When lines are collapsed, this is the text that will
// be shown to indicate that they can be expanded.
// 'summaryCollapsedIndicator' => '...',
]
];