From 49f24b86cf85900ed36717180bfb8f136c98215c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atakan=20Demircio=C4=9Flu?= <31544037+atakde@users.noreply.github.com> Date: Sat, 20 Apr 2024 16:33:08 +0300 Subject: [PATCH] Highlighter :: added getter for supported languages --- src/Highlighter.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Highlighter.php b/src/Highlighter.php index 90b95fe..3494dc0 100644 --- a/src/Highlighter.php +++ b/src/Highlighter.php @@ -98,6 +98,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;