From ff2470fdea383873fb53dcd03d6b8c485ab14fd7 Mon Sep 17 00:00:00 2001 From: Aaron Francis Date: Wed, 26 May 2021 19:10:05 -0500 Subject: [PATCH] Readme [ci skip] --- README.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4c13b34..b964b78 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,9 @@ echo "here is my code" Wasn't that good code? ~~~ -Torchlight will handle highlighting that block of code now. If you want to add additional classes or an ID, you can use the syntax that is supported by Jigsaw's [underlying markdown parser](https://github.com/michelf/php-markdown). +Torchlight will handle highlighting that block of code. + +If you want to add additional classes or an ID, you can use the syntax that is supported by Jigsaw's [underlying markdown parser](https://github.com/michelf/php-markdown). ~~~markdown This is my great markdown file! I'm going to show some code now: @@ -130,7 +132,23 @@ echo "here is my code" Wasn't that good code? ~~~ -The resulting code block will have an id of `some-html-id` and classes of `mt-4 mb-8`, along with any classes that Torchlight applies. +The resulting `code` element will have an id of `some-html-id` and classes of `mt-4 mb-8`, along with any classes that Torchlight applies. ### Blade +If you want to use Torchlight in your `.blade.php` files, you can use the custom blade component `x-torchlight-code`. + +```blade +

+    echo "hello world";
+
+``` + +You can add any classes or other attributes, and they will be preserved: + +```blade +

+    echo "hello world";
+
+``` +