Skip to content

Commit 62a2da1

Browse files
committed
Add css for PHP code in DocBlocks
1 parent f3b8b8e commit 62a2da1

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/PHPFUI/InstaDoc/MarkDownParser.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public function text(string $markdown) : string
3838
$codeBlocks = $dom->find('.language-PHP');
3939
foreach ($codeBlocks as $block)
4040
{
41-
$this->page->addStyleSheet('highlighter/styles/PHPFUI.css');
4241
$child = $block->firstChild();
4342
$highlighted = $hl->highlight('php', $child->text());
4443
$block->setAttribute('class', 'hljs ' . $highlighted->language);

src/PHPFUI/InstaDoc/Page.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public function __construct(Controller $controller)
2121
$this->mainColumn = new \PHPFUI\Cell(12, 8, 9);
2222
$this->addStyleSheet('css/styles.css');
2323
$this->addStyleSheet('css/markdown.css');
24+
$this->addStyleSheet('highlighter/styles/PHPFUI.css');
2425
}
2526

2627
public function addBody($item) : PageInterface

0 commit comments

Comments
 (0)