From c4328e9c66b4120c52b09b0493dcbde9fbaa572b Mon Sep 17 00:00:00 2001 From: Dmitry Merkushin Date: Mon, 15 Nov 2021 13:53:41 +0300 Subject: [PATCH 1/3] Display the list of available brushes These brushes could be used as shortcodes instead of passing them to lang property. Previously, this list was available on the external website but now is not reachable anymore. --- syntaxhighlighter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntaxhighlighter.php b/syntaxhighlighter.php index 65faa1d..6d40fbc 100644 --- a/syntaxhighlighter.php +++ b/syntaxhighlighter.php @@ -1594,13 +1594,13 @@ function settings_page() { ?> sprintf( // translators: %1$s Lang parameter; %2$s Language parameter; %3$s Valid tags link. _x( - '%1$s or %2$s — The language syntax to highlight with. You can alternately just use that as the tag, such as [php]code[/php]. Click here for a list of valid tags (under "aliases").', + '%1$s or %2$s — The language syntax to highlight with. You can alternately just use that as the tag, such as [php]code[/php]. Available tags: %3$s.', 'language parameter', 'syntaxhighlighter' ), 'lang', 'language', - 'http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/' + implode(', ', array_keys($this->brushes)) ), array( 'a' => array( From 6da3b14f8aaa3bc56d32af889985773e8a286b78 Mon Sep 17 00:00:00 2001 From: Dmitry Merkushin Date: Mon, 15 Nov 2021 14:07:30 +0300 Subject: [PATCH 2/3] Fix code style --- syntaxhighlighter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntaxhighlighter.php b/syntaxhighlighter.php index 6d40fbc..3581493 100644 --- a/syntaxhighlighter.php +++ b/syntaxhighlighter.php @@ -1600,7 +1600,7 @@ function settings_page() { ?> ), 'lang', 'language', - implode(', ', array_keys($this->brushes)) + implode( ', ', array_keys( $this->brushes ) ) ), array( 'a' => array( From b04d4aa37023067900a509e086981ed8606fff76 Mon Sep 17 00:00:00 2001 From: Dmitry Merkushin Date: Thu, 18 Nov 2021 21:11:02 +0300 Subject: [PATCH 3/3] Update comment for translators --- syntaxhighlighter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntaxhighlighter.php b/syntaxhighlighter.php index 3581493..54abb05 100644 --- a/syntaxhighlighter.php +++ b/syntaxhighlighter.php @@ -1592,7 +1592,7 @@ function settings_page() { ?> [php]code[/php]. Available tags: %3$s.', 'language parameter',