List Info

Thread: geshi-src/geshi/languages/c c.php,NONE,1.1




geshi-src/geshi/languages/c c.php,NONE,1.1
user name
2006-03-29 09:46:39
Update of /cvsroot/geshi/geshi-src/geshi/languages/c
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25068/geshi/languag
es/c

Added Files:
	c.php 
Log Message:
Added files containing initial highlighting support for C
including preprocessor directives.  No dialects yet and the
list of functions/standard identifiers is incomplete.  No
known bugs when highlighting well-formed code that doesn't
use any implementation-specific extensions..

--- NEW FILE: c.php ---
<?php
/**
 * GeSHi - Generic Syntax Highlighter
 *
 * For information on how to use GeSHi, please consult the
documentation
 * found in the docs/ directory, or online at http://geshi.org/docs/
 *
 *  This file is part of GeSHi.
 *
 *  GeSHi 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.
 *
 *  GeSHi 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 GeSHi; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
MA  02110-1301  USA
 *
 * You can view a copy of the GNU GPL in the COPYING file
that comes
 * with GeSHi, in the docs/ directory.
 *
 * package   lang
 * author    
 * license   http://www.gnu.o
rg/copyleft/gpl.html GNU GPL
 * copyright (C) 2006
 * version   $Id: c.php,v 1.1 2006/03/29 09:46:37
netocrat Exp $
 *
 */

/** Get the GeSHiCodeContext class */ 
require_once GESHI_CLASSES_ROOT .
'class.geshicodecontext.php';
/** Get the GeSHicCodeParser class */
require_once GESHI_CLASSES_ROOT . 'c' .
GESHI_DIR_SEPARATOR .
  'class.geshiccodeparser.php';

$this->_humanLanguageName = 'C';

$this->_rootContext =& new GeSHiCodeContext('c');
$this->_styler->setCodeParser(new
GeSHiCCodeParser($this->_styler,
  $this->_language));

?>


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking
scripting language
that extends applications into web and mobile media. Attend
the live webcast
and join the prime developer group breaking into this new
coding territory!
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
geshi-cvs mailing list
geshi-cvslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geshi-cvs

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )