We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8901ad2 commit 32c72bdCopy full SHA for 32c72bd
reference/twig_reference.rst
@@ -595,18 +595,14 @@ file_excerpt
595
596
.. code-block:: twig
597
598
- {{ file|file_excerpt(line, srcContext = 3) }}
+ {{ file|file_excerpt(line) }}
599
600
``file``
601
**type**: ``string``
602
``line``
603
**type**: ``integer``
604
-``srcContext`` *(optional)*
605
- **type**: ``integer``
606
607
-Generates an excerpt of a code file around the given ``line`` number. The
608
-``srcContext`` argument defines the total number of lines to display around the
609
-given line number (use ``-1`` to display the whole file).
+Generates an excerpt of a code file around the given ``line`` number.
610
611
format_file
612
~~~~~~~~~~~
0 commit comments