PHP Classes

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

Recommend this page to a friend!
  Classes of Oliver Lillie  >  PHP Custom Tags  >  examples/tags/syntax/geshi/geshi/plsql.php  >  Download  
File: examples/tags/syntax/geshi/geshi/plsql.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: Update of examples/tags/syntax/geshi/geshi/plsql.php
Date: 2 months ago
Size: 14,583 bytes


Class file image Download
 * plsql.php
 * -------
 * Author: Victor Engmark <>
 * Copyright: (c) 2006 Victor Engmark (
 * Release Version: 1\.0\.8
 * Date Started: 2006/10/26
 * Oracle 9.2 PL/SQL language file for GeSHi.
 * Formatting is based on the default setup of TOAD 8.6.
 * -------
 * 2006/10/27 (1.0.0)
 *    -    First Release
 * TODO (updated 2006/10/27)
 * -------------------------
 * * Add < and > to brackets
 * * Remove symbols which are also comment delimiters / quote marks?
 *         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
 *     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' => 'PL/SQL',
    'COMMENT_SINGLE' => array(1 =>'--'), //
    'COMMENT_MULTI' => array('/*' => '*/'), //
    'QUOTEMARKS' => array("'", '"'), //
    'ESCAPE_CHAR' => '\\',
    'KEYWORDS' => array(
        //PL/SQL reserved keywords (
        1 => array('ZONE', 'YEAR', 'WRITE', 'WORK', 'WITH', 'WHILE', 'WHERE',
        'NUMBER', 'NULL', 'NOWAIT', 'NOT', 'NOCOPY', 'NEXTVAL', 'NEW',
        'LOOP', 'LONG', 'LOCK', 'LIMITED', 'LIKE', 'LEVEL', 'JAVA',
        'HOUR', 'HEAP', 'HAVING', 'GROUP', 'GOTO', 'FUNCTION', 'FROM',
        'FORALL', 'FOR', 'FLOAT', 'FETCH', 'FALSE', 'EXTENDS', 'EXIT',
        'CLUSTER', 'CLOSE', 'CHECK', 'CHAR_BASE', 'CHAR', 'CASE', 'BY', 'BULK',
        'AT', 'ASC', 'AS', 'ARRAY', 'ANY', 'AND', 'ALTER', 'ALL'),
        //SQL functions ( &
        'ASCII', 'ADD_MONTHS', 'ACOS', 'ABS'),
        //PL/SQL packages (
        3 => array('UTL_URL', 'UTL_TCP', 'UTL_SMTP', 'UTL_REF', 'UTL_RAW',
        //PL/SQL predefined exceptions (
        4 => array('ZERO_DIVIDE', 'VALUE_ERROR', 'TOO_MANY_ROWS',
        //Static data dictionary views (
        5 => array('USER_REPSITES', 'USER_REPSCHEMA',
    'SYMBOLS' => array(
        //PL/SQL delimiters (
        '+', '%', "'", '.', '/', '(', ')', ':', ',', '*', '"', '=', '<', '>', '@', ';', '-', ':=', '=>', '||', '**', '<<', '>>', '/*', '*/', '..', '<>', '!=', '~=', '^=', '<=', '>='
    'CASE_SENSITIVE' => array(
        GESHI_COMMENTS => false,
        1 => false,
        2 => false,
        3 => false,
        4 => false,
        5 => false
    'STYLES' => array(
        'KEYWORDS' => array(
            1 => 'color: #00F;',
            2 => 'color: #000;',
            3 => 'color: #00F;',
            4 => 'color: #F00;',
            5 => 'color: #800;'
        'COMMENTS' => array(
            1 => 'color: #080; font-style: italic;',
            'MULTI' => 'color: #080; font-style: italic;'
        'ESCAPE_CHAR' => array(
            0 => 'color: #000; font-weight: bold;'
        'BRACKETS' => array(
            0 => 'color: #00F;'
        'STRINGS' => array(
            0 => 'color: #F00;'
        'NUMBERS' => array(
            0 => 'color: #800;'
        'METHODS' => array(
            0 => 'color: #0F0;'
        'SYMBOLS' => array(
            0 => 'color: #00F;'
        'REGEXPS' => array(
        'SCRIPT' => array(
            0 => 'color: #0F0;'
        'URLS' => array(
            1 => '{FNAMEU}',
            2 => '{FNAMEU}',
            3 => '{FNAMEU}',
            4 => '{FNAMEU}',
            5 => '{FNAMEU}'
    'OOLANG' => false,
    'OBJECT_SPLITTERS' => array(),
    'REGEXPS' => array(),
    'SCRIPT_DELIMITERS' => array(),

For more information send a message to info at phpclasses dot org.