Skip to content

Commit 70d226e

Browse files
authored
Merge pull request #29 from javiereguiluz/support_php_attributes
Support for php-attributes code blocks
2 parents 073b051 + 5f08926 commit 70d226e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/Directive/ConfigurationBlockDirective.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ private function formatLanguageTab(string $language): string
5656
switch ($language) {
5757
case 'php-annotations':
5858
return 'Annotations';
59+
case 'php-attributes':
60+
return 'Attributes';
5961
case 'xml':
6062
case 'yaml':
6163
case 'php':

src/Renderers/CodeNodeRenderer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class CodeNodeRenderer implements NodeRenderer
2828
'html+php' => 'html',
2929
'xml+php' => 'xml',
3030
'php-annotations' => 'php',
31+
'php-attributes' => 'php',
3132
'terminal' => 'bash',
3233
'rst' => 'markdown',
3334
'php-standalone' => 'php',

0 commit comments

Comments
 (0)