Skip to content

Commit b376eca

Browse files
committed
minor #507 [LiveComponent] Fix code block language in docs (HypeMC)
This PR was merged into the 2.x branch. Discussion ---------- [LiveComponent] Fix code block language in docs | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Tickets | - | License | MIT Fixes incorrect language used in some code blocks. Commits ------- bacc8b3 [LiveComponent] Fix code block language in docs
2 parents 59babae + bacc8b3 commit b376eca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/LiveComponent/src/Resources/doc/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ Other times, you might want to update the internal value of a property,
321321
but wait until later to re-render the component (e.g. until a button is
322322
clicked). To do that, use ``norender`` modifier:
323323

324-
.. code-block:: diff
324+
.. code-block:: twig
325325
326326
<input data-model="norender|max">
327327
@@ -346,7 +346,7 @@ rely on the ``name`` attribute.
346346
To activate this, you must add a ``data-model`` attribute to
347347
the ``<form>`` element:
348348

349-
.. code-block:: diff
349+
.. code-block:: twig
350350
351351
<div {{ attributes }}>
352352
<form data-model="*">
@@ -370,7 +370,7 @@ Updating a Model Manually
370370
You can also change the value of a model more directly, without
371371
using a form field:
372372

373-
.. code-block:: diff
373+
.. code-block:: twig
374374
375375
<button
376376
type="button

0 commit comments

Comments
 (0)