On this page
Installation
Install Lara Zeus Torch Filament by running the following commands in your Laravel project directory.
1composer require lara-zeus/torch-filament
Usage
1TorchEntry::make('code') 2 ->columnSpanFull() 3 // set the theme, optional, the default is github theme 4 ->theme([ 5 'light' => 'everforest-light', 6 'dark' => 'everforest-dark', 7 ]) 8 // add Gutter for line numbers and (-+) marks 9 //->withGutter(false)10 // add a wrapper11 //->withWrapper(true)12 // code language13 //->grammar('php')14 ->state(<<<'PHP'15 echo "Hello, world!";16 echo "Hello, world! I am focused"; // [tl! focus]17 echo "Hello, world! Added"; // [tl! ++]18 echo "Hello, world! Deleted"; // [tl! --]19 PHP),