From: Tim Düsterhus Date: Wed, 28 Nov 2018 15:48:36 +0000 (+0100) Subject: Mark PHP based highlighters as deprecated X-Git-Tag: 5.2.0_Alpha_1~420^2~5^2~12 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ce43877185e5e6789587cc1f84207cb5edd13d9a;p=GitHub%2FWoltLab%2FWCF.git Mark PHP based highlighters as deprecated see #2752 --- diff --git a/wcfsetup/install/files/lib/data/bbcode/BBCodeCache.class.php b/wcfsetup/install/files/lib/data/bbcode/BBCodeCache.class.php index e18db8874f..762c00bdbe 100644 --- a/wcfsetup/install/files/lib/data/bbcode/BBCodeCache.class.php +++ b/wcfsetup/install/files/lib/data/bbcode/BBCodeCache.class.php @@ -22,6 +22,7 @@ class BBCodeCache extends SingletonFactory { /** * list of known highlighters * @var string[] + * @deprecated since 3.2, use Prism to highlight your code. */ protected $highlighters = []; @@ -70,6 +71,7 @@ class BBCodeCache extends SingletonFactory { * Returns a list of known highlighters. * * @return string[] + * @deprecated since 3.2, use Prism to highlight your code. */ public function getHighlighters() { if (empty($this->highlighters)) { diff --git a/wcfsetup/install/files/lib/system/bbcode/highlighter/BashHighlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/highlighter/BashHighlighter.class.php index d9667d34f1..078965c2cf 100644 --- a/wcfsetup/install/files/lib/system/bbcode/highlighter/BashHighlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/highlighter/BashHighlighter.class.php @@ -8,6 +8,7 @@ namespace wcf\system\bbcode\highlighter; * @copyright 2011-2013 Tim Duesterhus * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Bbcode\Highlighter + * @deprecated since 3.2, use Prism to highlight your code. */ class BashHighlighter extends Highlighter { /** diff --git a/wcfsetup/install/files/lib/system/bbcode/highlighter/CHighlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/highlighter/CHighlighter.class.php index c8e8b1257c..328bc89b43 100644 --- a/wcfsetup/install/files/lib/system/bbcode/highlighter/CHighlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/highlighter/CHighlighter.class.php @@ -8,6 +8,7 @@ namespace wcf\system\bbcode\highlighter; * @copyright 2001-2018 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Bbcode\Highlighter + * @deprecated since 3.2, use Prism to highlight your code. */ class CHighlighter extends Highlighter { /** diff --git a/wcfsetup/install/files/lib/system/bbcode/highlighter/CssHighlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/highlighter/CssHighlighter.class.php index 14de08b96d..87297a8e17 100644 --- a/wcfsetup/install/files/lib/system/bbcode/highlighter/CssHighlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/highlighter/CssHighlighter.class.php @@ -8,6 +8,7 @@ namespace wcf\system\bbcode\highlighter; * @copyright 2001-2018 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Bbcode\Highlighter + * @deprecated since 3.2, use Prism to highlight your code. */ class CssHighlighter extends Highlighter { /** diff --git a/wcfsetup/install/files/lib/system/bbcode/highlighter/DiffHighlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/highlighter/DiffHighlighter.class.php index 0997712b77..0aeb0d93b6 100644 --- a/wcfsetup/install/files/lib/system/bbcode/highlighter/DiffHighlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/highlighter/DiffHighlighter.class.php @@ -9,6 +9,7 @@ use wcf\util\StringUtil; * @copyright 2011 Tim Duesterhus * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Bbcode\Highlighter + * @deprecated since 3.2, use Prism to highlight your code. */ class DiffHighlighter extends Highlighter { /** diff --git a/wcfsetup/install/files/lib/system/bbcode/highlighter/Highlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/highlighter/Highlighter.class.php index 3eaaf1dfea..e9c1700f5b 100644 --- a/wcfsetup/install/files/lib/system/bbcode/highlighter/Highlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/highlighter/Highlighter.class.php @@ -13,6 +13,7 @@ use wcf\util\StringUtil; * @copyright 2001-2018 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Bbcode\Highlighter + * @deprecated since 3.2, use Prism to highlight your code. */ abstract class Highlighter extends SingletonFactory { /** diff --git a/wcfsetup/install/files/lib/system/bbcode/highlighter/HtmlHighlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/highlighter/HtmlHighlighter.class.php index 0e0cfe4043..1ef1da0691 100644 --- a/wcfsetup/install/files/lib/system/bbcode/highlighter/HtmlHighlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/highlighter/HtmlHighlighter.class.php @@ -11,6 +11,7 @@ use wcf\util\StringUtil; * @copyright 2001-2018 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Bbcode\Highlighter + * @deprecated since 3.2, use Prism to highlight your code. */ class HtmlHighlighter extends XmlHighlighter { /** diff --git a/wcfsetup/install/files/lib/system/bbcode/highlighter/JavaHighlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/highlighter/JavaHighlighter.class.php index f95a95b710..ed5a2f58cc 100644 --- a/wcfsetup/install/files/lib/system/bbcode/highlighter/JavaHighlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/highlighter/JavaHighlighter.class.php @@ -8,6 +8,7 @@ namespace wcf\system\bbcode\highlighter; * @copyright 2001-2018 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Bbcode\Highlighter + * @deprecated since 3.2, use Prism to highlight your code. */ class JavaHighlighter extends Highlighter { /** diff --git a/wcfsetup/install/files/lib/system/bbcode/highlighter/JsHighlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/highlighter/JsHighlighter.class.php index 00dadb647c..8fa268ff7a 100644 --- a/wcfsetup/install/files/lib/system/bbcode/highlighter/JsHighlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/highlighter/JsHighlighter.class.php @@ -8,6 +8,7 @@ namespace wcf\system\bbcode\highlighter; * @copyright 2001-2018 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Bbcode\Highlighter + * @deprecated since 3.2, use Prism to highlight your code. */ class JsHighlighter extends Highlighter { /** diff --git a/wcfsetup/install/files/lib/system/bbcode/highlighter/PerlHighlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/highlighter/PerlHighlighter.class.php index 87d8228476..4ff441c417 100644 --- a/wcfsetup/install/files/lib/system/bbcode/highlighter/PerlHighlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/highlighter/PerlHighlighter.class.php @@ -8,6 +8,7 @@ namespace wcf\system\bbcode\highlighter; * @copyright 2011 Tim Duesterhus * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Bbcode\Highlighter + * @deprecated since 3.2, use Prism to highlight your code. */ class PerlHighlighter extends Highlighter { /** diff --git a/wcfsetup/install/files/lib/system/bbcode/highlighter/PhpHighlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/highlighter/PhpHighlighter.class.php index 3577e4aaf1..5dbf684a3e 100644 --- a/wcfsetup/install/files/lib/system/bbcode/highlighter/PhpHighlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/highlighter/PhpHighlighter.class.php @@ -9,6 +9,7 @@ use wcf\system\Regex; * @copyright 2001-2018 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Bbcode\Highlighter + * @deprecated since 3.2, use Prism to highlight your code. */ class PhpHighlighter extends Highlighter { public static $colorToClass = []; diff --git a/wcfsetup/install/files/lib/system/bbcode/highlighter/PlainHighlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/highlighter/PlainHighlighter.class.php index 3b9282426a..3a05583e54 100644 --- a/wcfsetup/install/files/lib/system/bbcode/highlighter/PlainHighlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/highlighter/PlainHighlighter.class.php @@ -9,6 +9,7 @@ use wcf\util\StringUtil; * @copyright 2011 Tim Duesterhus * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Bbcode\Highlighter + * @deprecated since 3.2, use Prism to highlight your code. */ class PlainHighlighter extends Highlighter { /** diff --git a/wcfsetup/install/files/lib/system/bbcode/highlighter/PythonHighlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/highlighter/PythonHighlighter.class.php index b901fd414e..78fcc84cd8 100644 --- a/wcfsetup/install/files/lib/system/bbcode/highlighter/PythonHighlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/highlighter/PythonHighlighter.class.php @@ -8,6 +8,7 @@ namespace wcf\system\bbcode\highlighter; * @copyright 2011-2013 Tim Duesterhus * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Bbcode\Highlighter + * @deprecated since 3.2, use Prism to highlight your code. */ class PythonHighlighter extends Highlighter { /** diff --git a/wcfsetup/install/files/lib/system/bbcode/highlighter/SqlHighlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/highlighter/SqlHighlighter.class.php index a2439c1d54..f1a8ccb52e 100644 --- a/wcfsetup/install/files/lib/system/bbcode/highlighter/SqlHighlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/highlighter/SqlHighlighter.class.php @@ -10,6 +10,7 @@ use wcf\util\StringUtil; * @copyright 2001-2018 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Bbcode\Highlighter + * @deprecated since 3.2, use Prism to highlight your code. */ class SqlHighlighter extends Highlighter { /** diff --git a/wcfsetup/install/files/lib/system/bbcode/highlighter/TexHighlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/highlighter/TexHighlighter.class.php index 8d34880ff8..7e9f5ae390 100644 --- a/wcfsetup/install/files/lib/system/bbcode/highlighter/TexHighlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/highlighter/TexHighlighter.class.php @@ -9,6 +9,7 @@ use wcf\system\Regex; * @copyright 2001-2018 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Bbcode\Highlighter + * @deprecated since 3.2, use Prism to highlight your code. */ class TexHighlighter extends Highlighter { /** diff --git a/wcfsetup/install/files/lib/system/bbcode/highlighter/TplHighlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/highlighter/TplHighlighter.class.php index aec8413856..ca650ff72c 100644 --- a/wcfsetup/install/files/lib/system/bbcode/highlighter/TplHighlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/highlighter/TplHighlighter.class.php @@ -9,6 +9,7 @@ use wcf\system\Regex; * @copyright 2001-2018 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Bbcode\Highlighter + * @deprecated since 3.2, use Prism to highlight your code. */ class TplHighlighter extends HtmlHighlighter { /** diff --git a/wcfsetup/install/files/lib/system/bbcode/highlighter/XmlHighlighter.class.php b/wcfsetup/install/files/lib/system/bbcode/highlighter/XmlHighlighter.class.php index 8f84fa9bfd..ad570bec6c 100644 --- a/wcfsetup/install/files/lib/system/bbcode/highlighter/XmlHighlighter.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/highlighter/XmlHighlighter.class.php @@ -11,6 +11,7 @@ use wcf\util\StringUtil; * @copyright 2001-2018 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Bbcode\Highlighter + * @deprecated since 3.2, use Prism to highlight your code. */ class XmlHighlighter extends Highlighter { /**