Skip to content

Commit

Permalink
Merge pull request #105 from atakde/main
Browse files Browse the repository at this point in the history
Highlighter :: added getter for supported languages
  • Loading branch information
brendt authored Apr 25, 2024
2 parents 2363ab7 + 49f24b8 commit bbaf7ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Highlighter.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ public function getCurrentLanguage(): ?Language
return $this->currentLanguage;
}

public function getSupportedLanguageNames(): array
{
return array_keys($this->languages);
}

public function setCurrentLanguage(Language $language): void
{
$this->currentLanguage = $language;
Expand Down

0 comments on commit bbaf7ce

Please sign in to comment.