@@ -90,11 +90,25 @@ The previous reStructuredText snippet renders as follow:
9090
9191 // Configuration in PHP
9292
93+ It may be relevant in some cases to write code examples when using the whole Symfony framework, but also
94+ when using components as standalone libraries without the whole framework installed. In this case, you
95+ may use special formats ``php-symfony `` and ``php-standalone ``, which will be rendered like this:
96+
97+ .. configuration-block ::
98+
99+ .. code-block :: php-symfony
100+
101+ // PHP code using features provided by the Symfony framework
102+
103+ .. code-block :: php-standalone
104+
105+ // PHP code using standalone components
106+
93107 The current list of supported formats are the following:
94108
95- =================== ======================================
109+ =================== ==========================================================================================
96110Markup Format Use It to Display
97- =================== ======================================
111+ =================== ==========================================================================================
98112``html `` HTML
99113``xml `` XML
100114``php `` PHP
@@ -105,7 +119,9 @@ Markup Format Use It to Display
105119``ini `` INI
106120``php-annotations `` PHP Annotations
107121``php-attributes `` PHP Attributes
108- =================== ======================================
122+ ``php-symfony `` PHP code example when using the Symfony framework
123+ ``php-standalone `` PHP code to be used in a standalone context, for example when using standalone components
124+ =================== ==========================================================================================
109125
110126Adding Links
111127~~~~~~~~~~~~
0 commit comments