Location: PHPKode > projects > Pieforms > pieforms-php5-0.2.2/doc/geshi/geshi/languages/doxygen/doxygen.php
<?php
/**
 * GeSHi - Generic Syntax Highlighter
 * <pre>
 *   File:   geshi/languages/doxygen/doxygen.php
 *   Author: Nigel McNie
 *   E-mail: hide@address.com
 * </pre>
 * 
 * For information on how to use GeSHi, please consult the documentation
 * found in the docs/ directory, or online at http://geshi.org/docs/
 * 
 * This program is part of GeSHi.
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 * 
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 *
 * @package    geshi
 * @subpackage lang
 * @author     Nigel McNie <hide@address.com>
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL
 * @copyright  (C) 2004 - 2006 Nigel McNie
 * @version    $Id: doxygen.php 756 2006-06-14 09:46:18Z oracleshinoda $
 * 
 */

/**#@+
 * @access private
 */

/** @todo How to document the language file functions? */
function geshi_doxygen_doxygen (&$context)
{
    $context->addChild('tag');
    $context->addChild('link');
    $context->addChild('htmltag');
    $context->setComplexFlag(GESHI_COMPLEX_PASSALL);
    //$this->_contextStyleType = GESHI_STYLE_COMMENTS;
}

function geshi_doxygen_doxygen_tag (&$context)
{
    $context->addDelimiters('REGEX#(?<=[\s*])@#', 'REGEX#[^a-z]#');
    $context->setComplexFlag(GESHI_COMPLEX_PASSALL);
}

function geshi_doxygen_doxygen_link (&$context)
{
    $context->addDelimiters('{@', '}');
    $context->setComplexFlag(GESHI_COMPLEX_PASSALL);
}

function geshi_doxygen_doxygen_htmltag (&$context)
{
    $context->addDelimiters('REGEX#<[/a-z_0-6]+#i', '>');
    $context->setComplexFlag(GESHI_COMPLEX_PASSALL);
}

/**#@-*/

?>
Return current item: Pieforms