GeSHi Language File Generator Script

To use this script, make sure that geshi.php is in the parent directory or in your include_path, and that the language files are in a subdirectory of GeSHi's directory called geshi/.

If not already done, select a language file below that will be used as base for the language file to generate or create a blank one. Following this you can do whatever you like to edit your language file. But note that not all features are made available through this script.

Checking GeSHi installation ... OK

array(3) {
  ["ai"]=>
  array(3) {
    ["name"]=>
    string(13) "Benny Baumann"
    ["email"]=>
    string(15) "BenBE@geshi.org"
    ["web"]=>
    string(28) "http://qbnz.com/highlighter/"
  }
  ["li"]=>
  array(2) {
    ["file"]=>
    string(7) "example"
    ["desc"]=>
    string(7) "Example"
  }
  ["ld"]=>
  array(5) {
    ["cmt"]=>
    array(3) {
      ["sl"]=>
      array(1) {
        [1]=>
        array(2) {
          ["start"]=>
          string(2) "//"
          ["style"]=>
          string(4) "test"
        }
      }
      ["ml"]=>
      array(1) {
        [1]=>
        array(3) {
          ["start"]=>
          string(2) "/*"
          ["end"]=>
          string(2) "*/"
          ["style"]=>
          string(35) "font-style: italic; color: #666666;"
        }
      }
      ["rxc"]=>
      array(1) {
        [1]=>
        array(2) {
          ["rx"]=>
          string(7) "/Hello/"
          ["style"]=>
          string(13) "color: #00000"
        }
      }
    }
    ["str"]=>
    array(3) {
      ["qm"]=>
      array(0) {
      }
      ["ec"]=>
      array(1) {
        ["char"]=>
        string(0) ""
      }
      ["erx"]=>
      array(0) {
      }
    }
    ["kw"]=>
    array(0) {
    }
    ["kw_case"]=>
    string(20) "GESHI_CAPS_NO_CHANGE"
    ["sy"]=>
    array(0) {
    }
  }
}
Generic Information
Author
Comments
Single Line
Comment Group 1
Comment Group 2
Multiple Lines
Comment Group 1
Comment Group 2
Regular Expressions
Comment Group 1
Strings
String \ Quotes (delimiters, parsed)
Quotemark Group 1
Quotemark Group 2
Escape Sequences
Generic Escape Char
Escape Regexp Group 1
Escape Regexp Group 2
Keywords
Case of Keywords
Keyword Group 1
Symbols
Symbols Group 1
Language File Source
<?php
/*************************************************************************************
 * example.php
 * --------
 * Author: Benny Baumann (BenBE@geshi.org)
 * Copyright: (c) 2025 Benny Baumann (http://qbnz.com/highlighter/)
 * Release Version: 1.0.8.11
 * Date Started: 2025/03/15
 *
 * Example language file for GeSHi.
 *
 * CHANGES
 * -------
 * 2025/03/15 (1.0.8.11)
 *  -  First Release
 *
 * TODO (updated 2025/03/15)
 * -------------------------
 * * Complete language file
 *
 *************************************************************************************
 *
 *     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' => 'Example',
    'COMMENT_SINGLE' => array(
        1 => '//'
        ),
    'COMMENT_MULTI' => array(
        '/*' => '*/'
        ),
    'COMMENT_REGEXP' => array(
        1 => '/Hello/'
        ),
    'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
    'QUOTEMARKS' => array(),
    'ESCAPE_CHAR' => '',
    'ESCAPE_REGEXP' => array(),
    'HARDQUOTE' => array(),
    'HARDESCAPE' => array(),
    'HARDCHAR' => '',
    'NUMBERS' =>
        GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX |
        GESHI_NUMBER_FLT_SCI_ZERO,
    'KEYWRODS' => array(),
    'CASE_SENSITIVE' => array(),
    'SYMBOLS' => array(),
    'STYLES' => array(
        'KEYWRODS' => array(),
        'COMMENTS' => array(
            1 => 'test',
            1 => 'color: #00000',
            'MULTI' => 'font-style: italic; color: #666666;'
            ),
        'ESCAPE_CHAR' => array(),
        'BRACKETS' => array(),
        'STRINGS' => array(),
        'NUMBERS' => array(),
        'METHODS' => array(),
        'SYMBOLS' => array(),
        'REGEXPS' => array(),
        'SCRIPT' => array()
        ),
    'URLS' => array(),
    'OOLANG' => false,
    'OBJECT_SPLITTERS' => array(),
    'REGEXPS' => array(),
    'STRICT_MODE_APPLIES' => GESHI_MAYBE,
    'SCRIPT_DELIMITERS' => array(),
    'HIGHLIGHT_STRICT_BLOCK' => array(),
    'TAB_WIDTH' => 4
);
?>

Operation completed in 0.04 seconds.