Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/tags/syntax/geshi/geshi/diff.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Oliver Lillie  >  PHP Custom Tags  >  examples/tags/syntax/geshi/geshi/diff.php  >  Download  
File: examples/tags/syntax/geshi/geshi/diff.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Custom Tags
Template engine based on tags similar to HTML
Author: By
Last change:
Date: 1 year ago
Size: 5,721 bytes
 

Contents

Class file image Download
<?php
/*************************************************************************************
 * diff.php
 * --------
 * Author: Conny Brunnkvist (conny@fuchsia.se), W. Tasin (tasin@fhm.edu)
 * Copyright: (c) 2004 Fuchsia Open Source Solutions (http://www.fuchsia.se/)
 * Release Version: 1\.0\.8
 * Date Started: 2004/12/29
 *
 * Diff-output language file for GeSHi.
 *
 * CHANGES
 * -------
 * 2008/05/23 (1.0.7.22)
 *  -  Added description of extra language features (SF#1970248)
 * 2006/02/27
 *  -  changing language file to use matching of start (^) and end ($) (wt)
 * 2004/12/29 (1.0.0)
 *  -  First Release
 *
 * TODO (updated 2006/02/27)
 * -------------------------
 *
 *
 *************************************************************************************
 *
 *     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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 ************************************************************************************/


$language_data = array (
    
'LANG_NAME' => 'Diff',
    
'COMMENT_SINGLE' => array(),
    
'COMMENT_MULTI' => array(),
    
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
    
'QUOTEMARKS' => array(),
    
'ESCAPE_CHAR' => ' ',
    
'KEYWORDS' => array(
            
=> array(
                
'\ No newline at end of file'
            
),
            
=> array(
                
'***************' /* This only seems to works in some cases? */
            
),
        ),
    
'SYMBOLS' => array(
        ),
    
'CASE_SENSITIVE' => array(
        
=> false,
        
=> false
        
),
    
'STYLES' => array(
        
'KEYWORDS' => array(
            
=> 'color: #aaaaaa; font-style: italic;',
            
=> 'color: #dd6611;',
            ),
        
'COMMENTS' => array(
            ),
        
'ESCAPE_CHAR' => array(
            
=> ''
            
),
        
'BRACKETS' => array(
            
=> ''
            
),
        
'STRINGS' => array(
            
=> ''
            
),
        
'NUMBERS' => array(
            
=> ''
            
),
        
'METHODS' => array(
            
=> ''
            
),
        
'SYMBOLS' => array(
            
=> ''
            
),
        
'SCRIPT' => array(
            
=> ''
            
),
        
'REGEXPS' => array(
            
=> 'color: #440088;',
            
=> 'color: #991111;',
            
=> 'color: #00b000;',
            
=> 'color: #888822;',
            
=> 'color: #888822;',
            
=> 'color: #0011dd;',
            
=> 'color: #440088;',
            
=> 'color: #991111;',
            
=> 'color: #00b000;',
            
=> 'color: #888822;',
            ),
        ),
    
'URLS' => array(
        
=> '',
        
=> ''
        
),
    
'OOLANG' => false,
    
'OBJECT_SPLITTERS' => array(),
    
'REGEXPS' => array(
        
=> "[0-9,]+[acd][0-9,]+",
        
//Removed lines
        
=> array(
            
GESHI_SEARCH => '^\\&lt;.*$',
            
GESHI_REPLACE => '\\0',
            
GESHI_MODIFIERS => 'm',
            
GESHI_BEFORE => '',
            
GESHI_AFTER => ''
            
),
        
//Inserted lines
        
=> array(
            
GESHI_SEARCH => '^\\&gt;.*$',
            
GESHI_REPLACE => '\\0',
            
GESHI_MODIFIERS => 'm',
            
GESHI_BEFORE => '',
            
GESHI_AFTER => ''
            
),
        
//Location line
        
=> array(
            
GESHI_SEARCH => '^[\\-]{3}\\s.*$',
            
GESHI_REPLACE => '\\0',
            
GESHI_MODIFIERS => 'm',
            
GESHI_BEFORE => '',
            
GESHI_AFTER => ''
            
),
        
//Inserted line
        
=> array(
            
GESHI_SEARCH => '^(\\+){3}\\s.*$',
            
GESHI_REPLACE => '\\0',
            
GESHI_MODIFIERS => 'm',
            
GESHI_BEFORE => '',
            
GESHI_AFTER => ''
            
),
        
//Modified line
        
=> array(
            
GESHI_SEARCH => '^\\!.*$',
            
GESHI_REPLACE => '\\0',
            
GESHI_MODIFIERS => 'm',
            
GESHI_BEFORE => '',
            
GESHI_AFTER => ''
            
),
        
//File specification
        
=> array(
            
GESHI_SEARCH => '^[\\@]{2}.*$',
            
GESHI_REPLACE => '\\0',
            
GESHI_MODIFIERS => 'm',
            
GESHI_BEFORE => '',
            
GESHI_AFTER => ''
            
),
        
//Removed line
        
=> array(
            
GESHI_SEARCH => '^\\-.*$',
            
GESHI_REPLACE => '\\0',
            
GESHI_MODIFIERS => 'm',
            
GESHI_BEFORE => '',
            
GESHI_AFTER => ''
            
),
        
//Inserted line
        
=> array(
            
GESHI_SEARCH => '^\\+.*$',
            
GESHI_REPLACE => '\\0',
            
GESHI_MODIFIERS => 'm',
            
GESHI_BEFORE => '',
            
GESHI_AFTER => ''
            
),
        
//File specification
        
=> array(
            
GESHI_SEARCH => '^(\\*){3}\\s.*$',
            
GESHI_REPLACE => '\\0',
            
GESHI_MODIFIERS => 'm',
            
GESHI_BEFORE => '',
            
GESHI_AFTER => ''
            
),
        ),
    
'STRICT_MODE_APPLIES' => GESHI_NEVER,
    
'SCRIPT_DELIMITERS' => array(
        ),
    
'HIGHLIGHT_STRICT_BLOCK' => array(
        )
);

?>