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 f67762d commit c2033c9Copy full SHA for c2033c9
reference/twig_reference.rst
@@ -604,7 +604,9 @@ file_excerpt
604
``srcContext`` *(optional)*
605
**type**: ``integer``
606
607
-Generates an excerpt of a code file around the given ``line`` number. An optional number of displayed lines can be passed.
+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).
610
611
format_file
612
~~~~~~~~~~~
0 commit comments