Skip to content

Commit

Permalink
Fix highlighting in blade samples (#8106)
Browse files Browse the repository at this point in the history
  • Loading branch information
machour committed Mar 13, 2024
1 parent aacb01d commit 9658c7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ If your [layout file](#layout-files) has any named slots in addition to `$slot`,
<!-- resources/views/components/layouts/app.blade.php -->
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', $lang ?? app()->getLocale()) }}"> // [tl! highlight]
<html lang="{{ str_replace('_', '-', $lang ?? app()->getLocale()) }}"> <!-- [tl! highlight] -->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand All @@ -611,7 +611,7 @@ If your [layout file](#layout-files) has any named slots in addition to `$slot`,
Then, in your component view, define an `<x-slot>` element outside the root element:

```blade
<x-slot:lang>fr</x-slot> // This component is in French [tl! highlight]
<x-slot:lang>fr</x-slot> // This component is in French <!-- [tl! highlight] -->
<div>
// French content goes here...
Expand Down

0 comments on commit 9658c7c

Please sign in to comment.