• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

syntax_highlight/php/HFile/HFile_gedcom.php

Go to the documentation of this file.
00001 <?php
00002 $BEAUT_PATH = realpath(".")."/syntax_highlight/php";
00003 if (!isset ($BEAUT_PATH)) return;
00004 require_once("$BEAUT_PATH/Beautifier/HFile.php");
00005   class HFile_gedcom extends HFile{
00006    function HFile_gedcom(){
00007      $this->HFile();    
00008 /*************************************/
00009 // Beautifier Highlighting Configuration File 
00010 // Gedcom
00011 /*************************************/
00012 // Flags
00013 
00014 $this->nocase                   = "0";
00015 $this->notrim                   = "0";
00016 $this->perl                     = "0";
00017 
00018 // Colours
00019 
00020 $this->colours          = array("blue", "purple", "gray");
00021 $this->quotecolour              = "blue";
00022 $this->blockcommentcolour       = "green";
00023 $this->linecommentcolour        = "green";
00024 
00025 // Indent Strings
00026 
00027 $this->indent                   = array();
00028 $this->unindent                 = array();
00029 
00030 // String characters and delimiters
00031 
00032 $this->stringchars              = array("@");
00033 $this->delimiters               = array(",", "/", "#", " ", "!", ">", "<", "    ", ".", "?");
00034 $this->escchar                  = "";
00035 
00036 // Comment settings
00037 
00038 $this->linecommenton            = array("");
00039 $this->blockcommenton           = array("");
00040 $this->blockcommentoff          = array("");
00041 
00042 // Keywords (keyword mapping to colour number)
00043 
00044 $this->keywords                 = array(
00045                         "ABBR" => "1", 
00046                         "ADDR" => "1", 
00047                         "ADR1" => "1", 
00048                         "ADR2" => "1", 
00049                         "ADOP" => "1", 
00050                         "AFN" => "1", 
00051                         "AGE" => "1", 
00052                         "AGNC" => "1", 
00053                         "ALIA" => "1", 
00054                         "ANCE" => "1", 
00055                         "ANCI" => "1", 
00056                         "ANUL" => "1", 
00057                         "ASSO" => "1", 
00058                         "AUTH" => "1", 
00059                         "BAPL" => "1", 
00060                         "BAPM" => "1", 
00061                         "BARM" => "1", 
00062                         "BASM" => "1", 
00063                         "BIRT" => "1", 
00064                         "BLES" => "1", 
00065                         "BLOB" => "1", 
00066                         "BURI" => "1", 
00067                         "CALN" => "1", 
00068                         "CAST" => "1", 
00069                         "CAUS" => "1", 
00070                         "CENS" => "1", 
00071                         "CHAN" => "1", 
00072                         "CHAR" => "1", 
00073                         "CHIL" => "1", 
00074                         "CHR" => "1", 
00075                         "CHRA" => "1", 
00076                         "CITY" => "1", 
00077                         "CONC" => "1", 
00078                         "CONF" => "1", 
00079                         "CONL" => "1", 
00080                         "CONT" => "1", 
00081                         "COPR" => "1", 
00082                         "CORP" => "1", 
00083                         "CREM" => "1", 
00084                         "CTRY" => "1", 
00085                         "DATA" => "1", 
00086                         "DATE" => "1", 
00087                         "DEAT" => "1", 
00088                         "DESC" => "1", 
00089                         "DESI" => "1", 
00090                         "DEST" => "1", 
00091                         "DIV" => "1", 
00092                         "DIVF" => "1", 
00093                         "DSCR" => "1", 
00094                         "EDUC" => "1", 
00095                         "EMIG" => "1", 
00096                         "ENDL" => "1", 
00097                         "ENGA" => "1", 
00098                         "EVEN" => "1", 
00099                         "FAM" => "1", 
00100                         "FAMC" => "1", 
00101                         "FAMF" => "1", 
00102                         "FAMS" => "1", 
00103                         "FCOM" => "1", 
00104                         "FILE" => "1", 
00105                         "FORM" => "1", 
00106                         "GEDC" => "1", 
00107                         "GIVN" => "1", 
00108                         "GRAD" => "1", 
00109                         "HEAD" => "1", 
00110                         "HUSB" => "1", 
00111                         "IDNO" => "1", 
00112                         "IMMI" => "1", 
00113                         "INDI" => "1", 
00114                         "LANG" => "1", 
00115                         "LEGA" => "1", 
00116                         "MARB" => "1", 
00117                         "MARC" => "1", 
00118                         "MARL" => "1", 
00119                         "MARR" => "1", 
00120                         "MARS" => "1", 
00121                         "MEDI" => "1", 
00122                         "NAME" => "1", 
00123                         "NATI" => "1", 
00124                         "NATU" => "1", 
00125                         "NCHI" => "1", 
00126                         "NICK" => "1", 
00127                         "NMR" => "1", 
00128                         "NOTE" => "1", 
00129                         "NPFX" => "1", 
00130                         "NSFX" => "1", 
00131                         "OBJE" => "1", 
00132                         "OCCU" => "1", 
00133                         "ORDI" => "1", 
00134                         "ORDN" => "1", 
00135                         "PAGE" => "1", 
00136                         "PEDI" => "1", 
00137                         "PHON" => "1", 
00138                         "PLAC" => "1", 
00139                         "POST" => "1", 
00140                         "PROB" => "1", 
00141                         "PROP" => "1", 
00142                         "PUBL" => "1", 
00143                         "QUAY" => "1", 
00144                         "REFN" => "1", 
00145                         "RELA" => "1", 
00146                         "RELI" => "1", 
00147                         "REPO" => "1", 
00148                         "RESI" => "1", 
00149                         "RESN" => "1", 
00150                         "RETI" => "1", 
00151                         "RFN" => "1", 
00152                         "RIN" => "1", 
00153                         "ROLE" => "1", 
00154                         "SEX" => "1", 
00155                         "SLGC" => "1", 
00156                         "SLGS" => "1", 
00157                         "SOUR" => "1", 
00158                         "SPFX" => "1", 
00159                         "SSN" => "1", 
00160                         "STAE" => "1", 
00161                         "STAT" => "1", 
00162                         "SUBM" => "1", 
00163                         "SUBN" => "1", 
00164                         "SURN" => "1", 
00165                         "TEMP" => "1", 
00166                         "TEXT" => "1", 
00167                         "TIME" => "1", 
00168                         "TITL" => "1", 
00169                         "TRLR" => "1", 
00170                         "TYPE" => "1", 
00171                         "VERS" => "1", 
00172                         "WIFE" => "1", 
00173                         "WILL" => "1", 
00174                         "APR" => "2", 
00175                         "AUG" => "2", 
00176                         "bmp" => "2", 
00177                         "DEC" => "2", 
00178                         "FEB" => "2", 
00179                         "gif" => "2", 
00180                         "jpeg" => "2", 
00181                         "JAN" => "2", 
00182                         "JUL" => "2", 
00183                         "JUN" => "2", 
00184                         "MAR" => "2", 
00185                         "MAY" => "2", 
00186                         "NOV" => "2", 
00187                         "OCT" => "2", 
00188                         "ole" => "2", 
00189                         "pcx" => "2", 
00190                         "SEP" => "2", 
00191                         "tiff" => "2", 
00192                         "wav" => "2", 
00193                         "adopted" => "3", 
00194                         "birth" => "3", 
00195                         "foster" => "3", 
00196                         "sealing" => "3", 
00197                         "ABT" => "3", 
00198                         "AFT" => "3", 
00199                         "AND" => "3", 
00200                         "BEF" => "3", 
00201                         "BET" => "3", 
00202                         "BIC" => "3", 
00203                         "BOTH" => "3", 
00204                         "CAL" => "3", 
00205                         "CANCELED" => "3", 
00206                         "CHILD" => "3", 
00207                         "CLEARED" => "3", 
00208                         "COMPLETED" => "3", 
00209                         "EST" => "3", 
00210                         "FROM" => "3", 
00211                         "INFANT" => "3", 
00212                         "INT" => "3", 
00213                         "PRE-1970" => "3", 
00214                         "QUALIFIED" => "3", 
00215                         "STILLBORN" => "3", 
00216                         "SUBMITTED" => "3", 
00217                         "TO" => "3", 
00218                         "UNCLEARED" => "3");
00219 
00220 // Special extensions
00221 
00222 // Each category can specify a PHP function that returns an altered
00223 // version of the keyword.
00224         
00225         
00226 
00227 $this->linkscripts      = array(
00228                         "1" => "donothing", 
00229                         "2" => "donothing", 
00230                         "3" => "donothing");
00231 }
00232 
00233 
00234 function donothing($keywordin)
00235 {
00236         return $keywordin;
00237 }
00238 
00239 }?>

Generated on Fri Dec 13 2013 09:06:39 for ILIAS Release_3_4_x_branch .rev 46804 by  doxygen 1.7.1