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

syntax_highlight/php/HFile/HFile_turboc.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_turboc extends HFile{
00006    function HFile_turboc(){
00007      $this->HFile();    
00008 /*************************************/
00009 // Beautifier Highlighting Configuration File 
00010 // Turbo C++
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", "brown", "blue");
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                         "#define" => "1", 
00046                         "#elif" => "1", 
00047                         "#else" => "1", 
00048                         "#endif" => "1", 
00049                         "#if" => "1", 
00050                         "#ifdef" => "1", 
00051                         "#ifndef" => "1", 
00052                         "#include" => "1", 
00053                         "#line" => "1", 
00054                         "#pragma" => "1", 
00055                         "#undef" => "1", 
00056                         "auto" => "2", 
00057                         "break" => "2", 
00058                         "case" => "2", 
00059                         "cdecl" => "2", 
00060                         "char" => "2", 
00061                         "const" => "2", 
00062                         "continue" => "2", 
00063                         "default" => "2", 
00064                         "do" => "2", 
00065                         "double" => "2", 
00066                         "else" => "2", 
00067                         "enum" => "2", 
00068                         "extern" => "2", 
00069                         "far" => "2", 
00070                         "float" => "2", 
00071                         "for" => "2", 
00072                         "fortran" => "2", 
00073                         "goto" => "2", 
00074                         "huge" => "2", 
00075                         "if" => "2", 
00076                         "int" => "2", 
00077                         "label" => "2", 
00078                         "long" => "2", 
00079                         "near" => "2", 
00080                         "pascal" => "2", 
00081                         "register" => "2", 
00082                         "return" => "2", 
00083                         "short" => "2", 
00084                         "signed" => "2", 
00085                         "sizeof" => "2", 
00086                         "static" => "2", 
00087                         "struct" => "2", 
00088                         "switch" => "2", 
00089                         "typedef" => "2", 
00090                         "union" => "2", 
00091                         "unsigned" => "2", 
00092                         "void" => "2", 
00093                         "volatile" => "2", 
00094                         "while" => "2", 
00095                         "FP_OFF" => "3", 
00096                         "FP_SEG" => "3", 
00097                         "MK_FP" => "3", 
00098                         "_OvrInitEms" => "3", 
00099                         "_OvrInitExt" => "3", 
00100                         "___emit___" => "3", 
00101                         "_chmod" => "3", 
00102                         "_clear87" => "3", 
00103                         "_close" => "3", 
00104                         "_control87" => "3", 
00105                         "_creat" => "3", 
00106                         "_exit" => "3", 
00107                         "_fpreset" => "3", 
00108                         "_graphfreemem" => "3", 
00109                         "_graphgetmem" => "3", 
00110                         "_lrotl" => "3", 
00111                         "_lrotr" => "3", 
00112                         "_open" => "3", 
00113                         "_read" => "3", 
00114                         "_rtol" => "3", 
00115                         "_rtor" => "3", 
00116                         "_setcursortype" => "3", 
00117                         "_status87" => "3", 
00118                         "_strerror" => "3", 
00119                         "_tolower" => "3", 
00120                         "_toupper" => "3", 
00121                         "_write" => "3", 
00122                         "abort" => "3", 
00123                         "abs" => "3", 
00124                         "absread" => "3", 
00125                         "abswrite" => "3", 
00126                         "access" => "3", 
00127                         "acos" => "3", 
00128                         "alloc.h" => "3", 
00129                         "allocmem" => "3", 
00130                         "arc" => "3", 
00131                         "arg" => "3", 
00132                         "asctime" => "3", 
00133                         "asin" => "3", 
00134                         "assert" => "3", 
00135                         "assert.h" => "3", 
00136                         "atan" => "3", 
00137                         "atan2" => "3", 
00138                         "atexit" => "3", 
00139                         "atof" => "3", 
00140                         "atoi" => "3", 
00141                         "atol" => "3", 
00142                         "bar" => "3", 
00143                         "bar3d" => "3", 
00144                         "bcd" => "3", 
00145                         "bcd.h" => "3", 
00146                         "bdos" => "3", 
00147                         "bdosptr" => "3", 
00148                         "bios.h" => "3", 
00149                         "bioscom" => "3", 
00150                         "biosdisk" => "3", 
00151                         "bioskey" => "3", 
00152                         "biosmemory" => "3", 
00153                         "biosprint" => "3", 
00154                         "biostime" => "3", 
00155                         "bisoequip" => "3", 
00156                         "brk" => "3", 
00157                         "bsearch" => "3", 
00158                         "cabs" => "3", 
00159                         "calloc" => "3", 
00160                         "ceil" => "3", 
00161                         "cgets" => "3", 
00162                         "chdir" => "3", 
00163                         "chmod" => "3", 
00164                         "chsize" => "3", 
00165                         "circle" => "3", 
00166                         "cleardevice" => "3", 
00167                         "clearerr" => "3", 
00168                         "clearviewport" => "3", 
00169                         "clock" => "3", 
00170                         "close" => "3", 
00171                         "closegraph" => "3", 
00172                         "clreol" => "3", 
00173                         "clrscr" => "3", 
00174                         "complex" => "3", 
00175                         "complex.h" => "3", 
00176                         "conio.h" => "3", 
00177                         "conj" => "3", 
00178                         "coreleft" => "3", 
00179                         "cos" => "3", 
00180                         "cosh" => "3", 
00181                         "country" => "3", 
00182                         "cprintf" => "3", 
00183                         "cputs" => "3", 
00184                         "creat" => "3", 
00185                         "creatnew" => "3", 
00186                         "creattemp" => "3", 
00187                         "cscanf" => "3", 
00188                         "ctime" => "3", 
00189                         "ctrlbrk" => "3", 
00190                         "ctype.h" => "3", 
00191                         "delay" => "3", 
00192                         "delline" => "3", 
00193                         "detectgraph" => "3", 
00194                         "difftime" => "3", 
00195                         "dir.h" => "3", 
00196                         "disable" => "3", 
00197                         "div" => "3", 
00198                         "dos.h" => "3", 
00199                         "dosexterr" => "3", 
00200                         "dostounix" => "3", 
00201                         "drawpoly" => "3", 
00202                         "dup" => "3", 
00203                         "dup2" => "3", 
00204                         "ecvt" => "3", 
00205                         "errno.h" => "3", 
00206                         "execl" => "3", 
00207                         "execle" => "3", 
00208                         "execlp" => "3", 
00209                         "execlpe" => "3", 
00210                         "execv" => "3", 
00211                         "execve" => "3", 
00212                         "execvp" => "3", 
00213                         "execvpe" => "3", 
00214                         "exit" => "3", 
00215                         "exp" => "3", 
00216                         "fabs" => "3", 
00217                         "farcalloc" => "3", 
00218                         "farcoreleft" => "3", 
00219                         "farfree" => "3", 
00220                         "farheapcheck" => "3", 
00221                         "farheapcheckfree" => "3", 
00222                         "farheapchecknode" => "3", 
00223                         "farheapfillfree" => "3", 
00224                         "farheapwalk" => "3", 
00225                         "farmalloc" => "3", 
00226                         "farrealloc" => "3", 
00227                         "fclose" => "3", 
00228                         "fcloseall" => "3", 
00229                         "fcntl.h" => "3", 
00230                         "fcvt" => "3", 
00231                         "fdopen" => "3", 
00232                         "feof" => "3", 
00233                         "ferror" => "3", 
00234                         "fflush" => "3", 
00235                         "fgetc" => "3", 
00236                         "fgetchar" => "3", 
00237                         "fgetpos" => "3", 
00238                         "fgets" => "3", 
00239                         "filelength" => "3", 
00240                         "fileno" => "3", 
00241                         "fillellipse" => "3", 
00242                         "fillpoly" => "3", 
00243                         "findfirst" => "3", 
00244                         "findnext" => "3", 
00245                         "float.h" => "3", 
00246                         "floodfill" => "3", 
00247                         "floor" => "3", 
00248                         "flushall" => "3", 
00249                         "fnmerge" => "3", 
00250                         "fnsplit" => "3", 
00251                         "fopen" => "3", 
00252                         "fprintf" => "3", 
00253                         "fputc" => "3", 
00254                         "fputchar" => "3", 
00255                         "fputs" => "3", 
00256                         "fread" => "3", 
00257                         "free" => "3", 
00258                         "freemem" => "3", 
00259                         "freopen" => "3", 
00260                         "frexp" => "3", 
00261                         "fscanf" => "3", 
00262                         "fseek" => "3", 
00263                         "fsetpos" => "3", 
00264                         "fstat" => "3", 
00265                         "fstream.h" => "3", 
00266                         "ftell" => "3", 
00267                         "ftime" => "3", 
00268                         "fwrite" => "3", 
00269                         "gcvt" => "3", 
00270                         "generic.h" => "3", 
00271                         "geninterrupt" => "3", 
00272                         "getarccoords" => "3", 
00273                         "getaspectratio" => "3", 
00274                         "getbkcolor" => "3", 
00275                         "getc" => "3", 
00276                         "getcbrk" => "3", 
00277                         "getch" => "3", 
00278                         "getchar" => "3", 
00279                         "getche" => "3", 
00280                         "getcolor" => "3", 
00281                         "getcurdir" => "3", 
00282                         "getcwd" => "3", 
00283                         "getdate" => "3", 
00284                         "getdefaultpalette" => "3", 
00285                         "getdfree" => "3", 
00286                         "getdisk" => "3", 
00287                         "getdrivername" => "3", 
00288                         "getdta" => "3", 
00289                         "getenv" => "3", 
00290                         "getfat" => "3", 
00291                         "getfatd" => "3", 
00292                         "getfillpattern" => "3", 
00293                         "getfillsettings" => "3", 
00294                         "getmasy" => "3", 
00295                         "getmaxcolor" => "3", 
00296                         "getmaxmode" => "3", 
00297                         "getmaxx" => "3", 
00298                         "getmodename" => "3", 
00299                         "getmoderange" => "3", 
00300                         "getpalette" => "3", 
00301                         "getpalettesize" => "3", 
00302                         "getpass" => "3", 
00303                         "getpid" => "3", 
00304                         "getpixel" => "3", 
00305                         "getpsp" => "3", 
00306                         "gets" => "3", 
00307                         "gettestinfo" => "3", 
00308                         "gettext" => "3", 
00309                         "gettextsettings" => "3", 
00310                         "gettime" => "3", 
00311                         "getvect" => "3", 
00312                         "getverify" => "3", 
00313                         "getviewsettings" => "3", 
00314                         "getw" => "3", 
00315                         "getx" => "3", 
00316                         "gety" => "3", 
00317                         "gmtime" => "3", 
00318                         "gotoxy" => "3", 
00319                         "graphdefaults" => "3", 
00320                         "grapherrormsg" => "3", 
00321                         "graphics.h" => "3", 
00322                         "graphresult" => "3", 
00323                         "harderr" => "3", 
00324                         "hardresume" => "3", 
00325                         "hardretn" => "3", 
00326                         "heapcheck" => "3", 
00327                         "heapcheckfree" => "3", 
00328                         "heapchecknode" => "3", 
00329                         "heapfillfree" => "3", 
00330                         "heapwalk" => "3", 
00331                         "highvideo" => "3", 
00332                         "hypot" => "3", 
00333                         "imag" => "3", 
00334                         "imagesize" => "3", 
00335                         "initgraph" => "3", 
00336                         "inp" => "3", 
00337                         "inport" => "3", 
00338                         "inportb" => "3", 
00339                         "insline" => "3", 
00340                         "installuserdriver" => "3", 
00341                         "installuserfont" => "3", 
00342                         "int86" => "3", 
00343                         "int86x" => "3", 
00344                         "intdos" => "3", 
00345                         "intdosx" => "3", 
00346                         "intr" => "3", 
00347                         "io.h" => "3", 
00348                         "ioctl" => "3", 
00349                         "iomanip.h" => "3", 
00350                         "iostream.h" => "3", 
00351                         "isalnum" => "3", 
00352                         "isalpha" => "3", 
00353                         "isascii" => "3", 
00354                         "isatty" => "3", 
00355                         "iscntrl" => "3", 
00356                         "isdigit" => "3", 
00357                         "isgraph" => "3", 
00358                         "islower" => "3", 
00359                         "isprint" => "3", 
00360                         "ispunct" => "3", 
00361                         "isspace" => "3", 
00362                         "isupper" => "3", 
00363                         "isxdigit" => "3", 
00364                         "itoa" => "3", 
00365                         "kbhit" => "3", 
00366                         "keep" => "3", 
00367                         "labs" => "3", 
00368                         "ldexp" => "3", 
00369                         "ldiv" => "3", 
00370                         "lfind" => "3", 
00371                         "limits.h" => "3", 
00372                         "line" => "3", 
00373                         "linerel" => "3", 
00374                         "lineto" => "3", 
00375                         "locale.h" => "3", 
00376                         "localeconv" => "3", 
00377                         "localtime" => "3", 
00378                         "lock" => "3", 
00379                         "log" => "3", 
00380                         "log10" => "3", 
00381                         "longjmp" => "3", 
00382                         "lowvideo" => "3", 
00383                         "lsearch" => "3", 
00384                         "lseek" => "3", 
00385                         "ltoa" => "3", 
00386                         "malloc" => "3", 
00387                         "math.h" => "3", 
00388                         "matherr" => "3", 
00389                         "max" => "3", 
00390                         "mem.h" => "3", 
00391                         "memccpy" => "3", 
00392                         "memchr" => "3", 
00393                         "memcmp" => "3", 
00394                         "memcpy" => "3", 
00395                         "memicmp" => "3", 
00396                         "memmove" => "3", 
00397                         "memset" => "3", 
00398                         "min" => "3", 
00399                         "mkdir" => "3", 
00400                         "mktemp" => "3", 
00401                         "mktime" => "3", 
00402                         "modf" => "3", 
00403                         "movedata" => "3", 
00404                         "movemem" => "3", 
00405                         "moverel" => "3", 
00406                         "movetext" => "3", 
00407                         "moveto" => "3", 
00408                         "norm" => "3", 
00409                         "normvideo" => "3", 
00410                         "nosound" => "3", 
00411                         "open" => "3", 
00412                         "outp" => "3", 
00413                         "outport" => "3", 
00414                         "outportb" => "3", 
00415                         "outtext" => "3", 
00416                         "outtextxy" => "3", 
00417                         "parsfnm" => "3", 
00418                         "peek" => "3", 
00419                         "peekb" => "3", 
00420                         "perror" => "3", 
00421                         "pieslice" => "3", 
00422                         "poke" => "3", 
00423                         "pokeb" => "3", 
00424                         "polar" => "3", 
00425                         "poly" => "3", 
00426                         "pow" => "3", 
00427                         "pow10" => "3", 
00428                         "printf" => "3", 
00429                         "process.h" => "3", 
00430                         "putc" => "3", 
00431                         "putch" => "3", 
00432                         "putchar" => "3", 
00433                         "putenv" => "3", 
00434                         "putimage" => "3", 
00435                         "putpixel" => "3", 
00436                         "puts" => "3", 
00437                         "puttext" => "3", 
00438                         "putw" => "3", 
00439                         "qsort" => "3", 
00440                         "raise" => "3", 
00441                         "rand" => "3", 
00442                         "randbrd" => "3", 
00443                         "randbwr" => "3", 
00444                         "random" => "3", 
00445                         "randomsize" => "3", 
00446                         "read" => "3", 
00447                         "real" => "3", 
00448                         "realloc" => "3", 
00449                         "rectangle" => "3", 
00450                         "registerbgidriver" => "3", 
00451                         "registerbgifont" => "3", 
00452                         "remove" => "3", 
00453                         "rename" => "3", 
00454                         "restorecrtmode" => "3", 
00455                         "rewind" => "3", 
00456                         "rmdir" => "3", 
00457                         "sbrk" => "3", 
00458                         "scanf" => "3", 
00459                         "searchpath" => "3", 
00460                         "sector" => "3", 
00461                         "segread" => "3", 
00462                         "setactivepage" => "3", 
00463                         "setallpalette" => "3", 
00464                         "setaspectratio" => "3", 
00465                         "setbkcolor" => "3", 
00466                         "setblock" => "3", 
00467                         "setbuf" => "3", 
00468                         "setcbrk" => "3", 
00469                         "setcolor" => "3", 
00470                         "setdate" => "3", 
00471                         "setdisk" => "3", 
00472                         "setdta" => "3", 
00473                         "setfillpattern" => "3", 
00474                         "setfillstyle" => "3", 
00475                         "setftime" => "3", 
00476                         "setgraphbufsize" => "3", 
00477                         "setgraphmode" => "3", 
00478                         "setjmp" => "3", 
00479                         "setjmp.h" => "3", 
00480                         "setlinestyle" => "3", 
00481                         "setlocale" => "3", 
00482                         "setmem" => "3", 
00483                         "setmode" => "3", 
00484                         "setpalette" => "3", 
00485                         "setrgbpalette" => "3", 
00486                         "settextjustify" => "3", 
00487                         "settextstyle" => "3", 
00488                         "settime" => "3", 
00489                         "setusercharsize" => "3", 
00490                         "setvbuf" => "3", 
00491                         "setvect" => "3", 
00492                         "setverify" => "3", 
00493                         "setviewport" => "3", 
00494                         "setvisualpage" => "3", 
00495                         "setwritemode" => "3", 
00496                         "share.h" => "3", 
00497                         "signal" => "3", 
00498                         "signal.h" => "3", 
00499                         "sin" => "3", 
00500                         "sinh" => "3", 
00501                         "sleep" => "3", 
00502                         "sopen" => "3", 
00503                         "spawn" => "3", 
00504                         "spawnl" => "3", 
00505                         "spawnle" => "3", 
00506                         "spawnlp" => "3", 
00507                         "spawnlpe" => "3", 
00508                         "spawnv" => "3", 
00509                         "spawnve" => "3", 
00510                         "spawnvp" => "3", 
00511                         "spawnvpe" => "3", 
00512                         "sprintf" => "3", 
00513                         "sqrt" => "3", 
00514                         "srand" => "3", 
00515                         "sscanf" => "3", 
00516                         "stat" => "3", 
00517                         "stat.h" => "3", 
00518                         "stdarg.h" => "3", 
00519                         "stddef.h" => "3", 
00520                         "stdio.h" => "3", 
00521                         "stdiostr.h" => "3", 
00522                         "stdlib.h" => "3", 
00523                         "stime" => "3", 
00524                         "stpcpy" => "3", 
00525                         "strcat" => "3", 
00526                         "strchr" => "3", 
00527                         "strcmp" => "3", 
00528                         "strcmpi" => "3", 
00529                         "strcoll" => "3", 
00530                         "strcpy" => "3", 
00531                         "strcspn" => "3", 
00532                         "strdup" => "3", 
00533                         "stream.h" => "3", 
00534                         "strerror" => "3", 
00535                         "strftime" => "3", 
00536                         "stricmp" => "3", 
00537                         "string.h" => "3", 
00538                         "strlen" => "3", 
00539                         "strlwr" => "3", 
00540                         "strncat" => "3", 
00541                         "strncmp" => "3", 
00542                         "strncmpi" => "3", 
00543                         "strncpy" => "3", 
00544                         "strnicmp" => "3", 
00545                         "strnset" => "3", 
00546                         "strpbrk" => "3", 
00547                         "strrchr" => "3", 
00548                         "strrev" => "3", 
00549                         "strset" => "3", 
00550                         "strspn" => "3", 
00551                         "strstr" => "3", 
00552                         "strstrea.h" => "3", 
00553                         "strtod" => "3", 
00554                         "strtok" => "3", 
00555                         "strtol" => "3", 
00556                         "strtoul" => "3", 
00557                         "strupr" => "3", 
00558                         "strxfrm" => "3", 
00559                         "swab" => "3", 
00560                         "system" => "3", 
00561                         "tan" => "3", 
00562                         "tanh" => "3", 
00563                         "tell" => "3", 
00564                         "textattr" => "3", 
00565                         "textbackground" => "3", 
00566                         "textcolor" => "3", 
00567                         "textheight" => "3", 
00568                         "textmode" => "3", 
00569                         "textwidth" => "3", 
00570                         "time" => "3", 
00571                         "time.h" => "3", 
00572                         "timeb.h" => "3", 
00573                         "tmpfile" => "3", 
00574                         "tmpnam" => "3", 
00575                         "toascii" => "3", 
00576                         "tolower" => "3", 
00577                         "toupper" => "3", 
00578                         "types.h" => "3", 
00579                         "tzset" => "3", 
00580                         "ultoa" => "3", 
00581                         "umask" => "3", 
00582                         "ungetc" => "3", 
00583                         "ungetch" => "3", 
00584                         "unixtodos" => "3", 
00585                         "unlink" => "3", 
00586                         "unlock" => "3", 
00587                         "va_arg" => "3", 
00588                         "va_end" => "3", 
00589                         "va_start" => "3", 
00590                         "values.h" => "3", 
00591                         "vfprintf" => "3", 
00592                         "vfscanf" => "3", 
00593                         "vprintf" => "3", 
00594                         "vscanf" => "3", 
00595                         "vsprintf" => "3", 
00596                         "vsscanf" => "3", 
00597                         "wherex" => "3", 
00598                         "wherey" => "3", 
00599                         "window" => "3", 
00600                         "write" => "3", 
00601                         "EOF" => "4", 
00602                         "FILE" => "4", 
00603                         "NULL" => "4", 
00604                         "SEEK_CUR" => "4", 
00605                         "SEEK_END" => "4", 
00606                         "SEEK_SET" => "4", 
00607                         "size_t" => "4", 
00608                         "!" => "5", 
00609                         "$" => "5", 
00610                         "&" => "5", 
00611                         "(" => "5", 
00612                         ")" => "5", 
00613                         "*" => "5", 
00614                         "+" => "5", 
00615                         "," => "5", 
00616                         "-" => "5", 
00617                         "." => "5", 
00618                         "//" => "5", 
00619                         "/" => "5", 
00620                         ":" => "5", 
00621                         ";" => "5", 
00622                         "<" => "5", 
00623                         "=" => "5", 
00624                         ">" => "5", 
00625                         "[" => "5", 
00626                         "]" => "5", 
00627                         "{" => "5", 
00628                         "|" => "5", 
00629                         "}" => "5", 
00630                         "~" => "5");
00631 
00632 // Special extensions
00633 
00634 // Each category can specify a PHP function that returns an altered
00635 // version of the keyword.
00636         
00637         
00638 
00639 $this->linkscripts      = array(
00640                         "1" => "donothing", 
00641                         "2" => "donothing", 
00642                         "3" => "donothing", 
00643                         "4" => "donothing", 
00644                         "5" => "donothing");
00645 }
00646 
00647 
00648 function donothing($keywordin)
00649 {
00650         return $keywordin;
00651 }
00652 
00653 }?>

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