Use <<<HTML for vim docstring syntax highlighting
authorAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 29 Aug 2010 19:07:06 +0000 (19:07 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 29 Aug 2010 19:07:06 +0000 (19:07 +0000)
This way vim highlights the docstring as HTML instead of plaintext,
which is nice.

includes/EditPage.php

index a362dd7..4aeb8e0 100644 (file)
@@ -1559,13 +1559,13 @@ HTML
        protected function showFormBeforeText() {
                global $wgOut;
                $section = htmlspecialchars( $this->section );
-               $wgOut->addHTML( <<<INPUTS
+               $wgOut->addHTML( <<<HTML
 <input type='hidden' value="{$section}" name="wpSection" />
 <input type='hidden' value="{$this->starttime}" name="wpStarttime" />
 <input type='hidden' value="{$this->edittime}" name="wpEdittime" />
 <input type='hidden' value="{$this->scrolltop}" name="wpScrolltop" id="wpScrolltop" />
 
-INPUTS
+HTML
                );
                if ( !$this->checkUnicodeCompliantBrowser() )
                        $wgOut->addHTML(Xml::hidden( 'safemode', '1' ));