minor cleanup in comments in ContentHandler
authordaniel <daniel.kinzler@wikimedia.de>
Mon, 11 Jun 2012 15:45:17 +0000 (17:45 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Mon, 11 Jun 2012 15:45:17 +0000 (17:45 +0200)
includes/ContentHandler.php

index 035de96..ce7d083 100644 (file)
@@ -949,8 +949,7 @@ abstract class TextContentHandler extends ContentHandler {
        protected function getHtml( Content $content ) {
                $this->checkModelID( $content->getModel() );
 
-               #XXX: hook?
-               return $this->getHighlighteHtml( $content );
+               return $this->getHighlightHtml( $content );
        }
 
        /**
@@ -964,8 +963,7 @@ abstract class TextContentHandler extends ContentHandler {
        protected function getHighlightHtml( Content $content ) {
                $this->checkModelID( $content->getModel() );
 
-               #TODO: use highlighter, if available
-               #XXX: hook?
+               #TODO: make Highlighter interface, use here highlighter, if available
                return htmlspecialchars( $content->getNativeData() );
        }
 
@@ -1032,7 +1030,7 @@ class WikitextContentHandler extends TextContentHandler {
        }
 }
 
-#XXX: make ScriptContentHandler base class with plugin interface for syntax highlighting?
+#XXX: make ScriptContentHandler base class, do highlighting stuff there?
 
 /**
  * @since WD.1