ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
HFile_turboc.php
Go to the documentation of this file.
1<?php
2$BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3if (!isset ($BEAUT_PATH)) return;
4require_once("$BEAUT_PATH/Beautifier/HFile.php");
5 class HFile_turboc extends HFile{
6 function HFile_turboc(){
7 $this->HFile();
8/*************************************/
9// Beautifier Highlighting Configuration File
10// Turbo C++
11/*************************************/
12// Flags
13
14$this->nocase = "0";
15$this->notrim = "0";
16$this->perl = "0";
17
18// Colours
19
20$this->colours = array("blue", "purple", "gray", "brown", "blue");
21$this->quotecolour = "blue";
22$this->blockcommentcolour = "green";
23$this->linecommentcolour = "green";
24
25// Indent Strings
26
27$this->indent = array("{");
28$this->unindent = array("}");
29
30// String characters and delimiters
31
32$this->stringchars = array("\"", "'");
33$this->delimiters = array("~", "!", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", "?");
34$this->escchar = "";
35
36// Comment settings
37
38$this->linecommenton = array("//");
39$this->blockcommenton = array("/*");
40$this->blockcommentoff = array("*/");
41
42// Keywords (keyword mapping to colour number)
43
44$this->keywords = array(
45 "#define" => "1",
46 "#elif" => "1",
47 "#else" => "1",
48 "#endif" => "1",
49 "#if" => "1",
50 "#ifdef" => "1",
51 "#ifndef" => "1",
52 "#include" => "1",
53 "#line" => "1",
54 "#pragma" => "1",
55 "#undef" => "1",
56 "auto" => "2",
57 "break" => "2",
58 "case" => "2",
59 "cdecl" => "2",
60 "char" => "2",
61 "const" => "2",
62 "continue" => "2",
63 "default" => "2",
64 "do" => "2",
65 "double" => "2",
66 "else" => "2",
67 "enum" => "2",
68 "extern" => "2",
69 "far" => "2",
70 "float" => "2",
71 "for" => "2",
72 "fortran" => "2",
73 "goto" => "2",
74 "huge" => "2",
75 "if" => "2",
76 "int" => "2",
77 "label" => "2",
78 "long" => "2",
79 "near" => "2",
80 "pascal" => "2",
81 "register" => "2",
82 "return" => "2",
83 "short" => "2",
84 "signed" => "2",
85 "sizeof" => "2",
86 "static" => "2",
87 "struct" => "2",
88 "switch" => "2",
89 "typedef" => "2",
90 "union" => "2",
91 "unsigned" => "2",
92 "void" => "2",
93 "volatile" => "2",
94 "while" => "2",
95 "FP_OFF" => "3",
96 "FP_SEG" => "3",
97 "MK_FP" => "3",
98 "_OvrInitEms" => "3",
99 "_OvrInitExt" => "3",
100 "___emit___" => "3",
101 "_chmod" => "3",
102 "_clear87" => "3",
103 "_close" => "3",
104 "_control87" => "3",
105 "_creat" => "3",
106 "_exit" => "3",
107 "_fpreset" => "3",
108 "_graphfreemem" => "3",
109 "_graphgetmem" => "3",
110 "_lrotl" => "3",
111 "_lrotr" => "3",
112 "_open" => "3",
113 "_read" => "3",
114 "_rtol" => "3",
115 "_rtor" => "3",
116 "_setcursortype" => "3",
117 "_status87" => "3",
118 "_strerror" => "3",
119 "_tolower" => "3",
120 "_toupper" => "3",
121 "_write" => "3",
122 "abort" => "3",
123 "abs" => "3",
124 "absread" => "3",
125 "abswrite" => "3",
126 "access" => "3",
127 "acos" => "3",
128 "alloc.h" => "3",
129 "allocmem" => "3",
130 "arc" => "3",
131 "arg" => "3",
132 "asctime" => "3",
133 "asin" => "3",
134 "assert" => "3",
135 "assert.h" => "3",
136 "atan" => "3",
137 "atan2" => "3",
138 "atexit" => "3",
139 "atof" => "3",
140 "atoi" => "3",
141 "atol" => "3",
142 "bar" => "3",
143 "bar3d" => "3",
144 "bcd" => "3",
145 "bcd.h" => "3",
146 "bdos" => "3",
147 "bdosptr" => "3",
148 "bios.h" => "3",
149 "bioscom" => "3",
150 "biosdisk" => "3",
151 "bioskey" => "3",
152 "biosmemory" => "3",
153 "biosprint" => "3",
154 "biostime" => "3",
155 "bisoequip" => "3",
156 "brk" => "3",
157 "bsearch" => "3",
158 "cabs" => "3",
159 "calloc" => "3",
160 "ceil" => "3",
161 "cgets" => "3",
162 "chdir" => "3",
163 "chmod" => "3",
164 "chsize" => "3",
165 "circle" => "3",
166 "cleardevice" => "3",
167 "clearerr" => "3",
168 "clearviewport" => "3",
169 "clock" => "3",
170 "close" => "3",
171 "closegraph" => "3",
172 "clreol" => "3",
173 "clrscr" => "3",
174 "complex" => "3",
175 "complex.h" => "3",
176 "conio.h" => "3",
177 "conj" => "3",
178 "coreleft" => "3",
179 "cos" => "3",
180 "cosh" => "3",
181 "country" => "3",
182 "cprintf" => "3",
183 "cputs" => "3",
184 "creat" => "3",
185 "creatnew" => "3",
186 "creattemp" => "3",
187 "cscanf" => "3",
188 "ctime" => "3",
189 "ctrlbrk" => "3",
190 "ctype.h" => "3",
191 "delay" => "3",
192 "delline" => "3",
193 "detectgraph" => "3",
194 "difftime" => "3",
195 "dir.h" => "3",
196 "disable" => "3",
197 "div" => "3",
198 "dos.h" => "3",
199 "dosexterr" => "3",
200 "dostounix" => "3",
201 "drawpoly" => "3",
202 "dup" => "3",
203 "dup2" => "3",
204 "ecvt" => "3",
205 "errno.h" => "3",
206 "execl" => "3",
207 "execle" => "3",
208 "execlp" => "3",
209 "execlpe" => "3",
210 "execv" => "3",
211 "execve" => "3",
212 "execvp" => "3",
213 "execvpe" => "3",
214 "exit" => "3",
215 "exp" => "3",
216 "fabs" => "3",
217 "farcalloc" => "3",
218 "farcoreleft" => "3",
219 "farfree" => "3",
220 "farheapcheck" => "3",
221 "farheapcheckfree" => "3",
222 "farheapchecknode" => "3",
223 "farheapfillfree" => "3",
224 "farheapwalk" => "3",
225 "farmalloc" => "3",
226 "farrealloc" => "3",
227 "fclose" => "3",
228 "fcloseall" => "3",
229 "fcntl.h" => "3",
230 "fcvt" => "3",
231 "fdopen" => "3",
232 "feof" => "3",
233 "ferror" => "3",
234 "fflush" => "3",
235 "fgetc" => "3",
236 "fgetchar" => "3",
237 "fgetpos" => "3",
238 "fgets" => "3",
239 "filelength" => "3",
240 "fileno" => "3",
241 "fillellipse" => "3",
242 "fillpoly" => "3",
243 "findfirst" => "3",
244 "findnext" => "3",
245 "float.h" => "3",
246 "floodfill" => "3",
247 "floor" => "3",
248 "flushall" => "3",
249 "fnmerge" => "3",
250 "fnsplit" => "3",
251 "fopen" => "3",
252 "fprintf" => "3",
253 "fputc" => "3",
254 "fputchar" => "3",
255 "fputs" => "3",
256 "fread" => "3",
257 "free" => "3",
258 "freemem" => "3",
259 "freopen" => "3",
260 "frexp" => "3",
261 "fscanf" => "3",
262 "fseek" => "3",
263 "fsetpos" => "3",
264 "fstat" => "3",
265 "fstream.h" => "3",
266 "ftell" => "3",
267 "ftime" => "3",
268 "fwrite" => "3",
269 "gcvt" => "3",
270 "generic.h" => "3",
271 "geninterrupt" => "3",
272 "getarccoords" => "3",
273 "getaspectratio" => "3",
274 "getbkcolor" => "3",
275 "getc" => "3",
276 "getcbrk" => "3",
277 "getch" => "3",
278 "getchar" => "3",
279 "getche" => "3",
280 "getcolor" => "3",
281 "getcurdir" => "3",
282 "getcwd" => "3",
283 "getdate" => "3",
284 "getdefaultpalette" => "3",
285 "getdfree" => "3",
286 "getdisk" => "3",
287 "getdrivername" => "3",
288 "getdta" => "3",
289 "getenv" => "3",
290 "getfat" => "3",
291 "getfatd" => "3",
292 "getfillpattern" => "3",
293 "getfillsettings" => "3",
294 "getmasy" => "3",
295 "getmaxcolor" => "3",
296 "getmaxmode" => "3",
297 "getmaxx" => "3",
298 "getmodename" => "3",
299 "getmoderange" => "3",
300 "getpalette" => "3",
301 "getpalettesize" => "3",
302 "getpass" => "3",
303 "getpid" => "3",
304 "getpixel" => "3",
305 "getpsp" => "3",
306 "gets" => "3",
307 "gettestinfo" => "3",
308 "gettext" => "3",
309 "gettextsettings" => "3",
310 "gettime" => "3",
311 "getvect" => "3",
312 "getverify" => "3",
313 "getviewsettings" => "3",
314 "getw" => "3",
315 "getx" => "3",
316 "gety" => "3",
317 "gmtime" => "3",
318 "gotoxy" => "3",
319 "graphdefaults" => "3",
320 "grapherrormsg" => "3",
321 "graphics.h" => "3",
322 "graphresult" => "3",
323 "harderr" => "3",
324 "hardresume" => "3",
325 "hardretn" => "3",
326 "heapcheck" => "3",
327 "heapcheckfree" => "3",
328 "heapchecknode" => "3",
329 "heapfillfree" => "3",
330 "heapwalk" => "3",
331 "highvideo" => "3",
332 "hypot" => "3",
333 "imag" => "3",
334 "imagesize" => "3",
335 "initgraph" => "3",
336 "inp" => "3",
337 "inport" => "3",
338 "inportb" => "3",
339 "insline" => "3",
340 "installuserdriver" => "3",
341 "installuserfont" => "3",
342 "int86" => "3",
343 "int86x" => "3",
344 "intdos" => "3",
345 "intdosx" => "3",
346 "intr" => "3",
347 "io.h" => "3",
348 "ioctl" => "3",
349 "iomanip.h" => "3",
350 "iostream.h" => "3",
351 "isalnum" => "3",
352 "isalpha" => "3",
353 "isascii" => "3",
354 "isatty" => "3",
355 "iscntrl" => "3",
356 "isdigit" => "3",
357 "isgraph" => "3",
358 "islower" => "3",
359 "isprint" => "3",
360 "ispunct" => "3",
361 "isspace" => "3",
362 "isupper" => "3",
363 "isxdigit" => "3",
364 "itoa" => "3",
365 "kbhit" => "3",
366 "keep" => "3",
367 "labs" => "3",
368 "ldexp" => "3",
369 "ldiv" => "3",
370 "lfind" => "3",
371 "limits.h" => "3",
372 "line" => "3",
373 "linerel" => "3",
374 "lineto" => "3",
375 "locale.h" => "3",
376 "localeconv" => "3",
377 "localtime" => "3",
378 "lock" => "3",
379 "log" => "3",
380 "log10" => "3",
381 "longjmp" => "3",
382 "lowvideo" => "3",
383 "lsearch" => "3",
384 "lseek" => "3",
385 "ltoa" => "3",
386 "malloc" => "3",
387 "math.h" => "3",
388 "matherr" => "3",
389 "max" => "3",
390 "mem.h" => "3",
391 "memccpy" => "3",
392 "memchr" => "3",
393 "memcmp" => "3",
394 "memcpy" => "3",
395 "memicmp" => "3",
396 "memmove" => "3",
397 "memset" => "3",
398 "min" => "3",
399 "mkdir" => "3",
400 "mktemp" => "3",
401 "mktime" => "3",
402 "modf" => "3",
403 "movedata" => "3",
404 "movemem" => "3",
405 "moverel" => "3",
406 "movetext" => "3",
407 "moveto" => "3",
408 "norm" => "3",
409 "normvideo" => "3",
410 "nosound" => "3",
411 "open" => "3",
412 "outp" => "3",
413 "outport" => "3",
414 "outportb" => "3",
415 "outtext" => "3",
416 "outtextxy" => "3",
417 "parsfnm" => "3",
418 "peek" => "3",
419 "peekb" => "3",
420 "perror" => "3",
421 "pieslice" => "3",
422 "poke" => "3",
423 "pokeb" => "3",
424 "polar" => "3",
425 "poly" => "3",
426 "pow" => "3",
427 "pow10" => "3",
428 "printf" => "3",
429 "process.h" => "3",
430 "putc" => "3",
431 "putch" => "3",
432 "putchar" => "3",
433 "putenv" => "3",
434 "putimage" => "3",
435 "putpixel" => "3",
436 "puts" => "3",
437 "puttext" => "3",
438 "putw" => "3",
439 "qsort" => "3",
440 "raise" => "3",
441 "rand" => "3",
442 "randbrd" => "3",
443 "randbwr" => "3",
444 "random" => "3",
445 "randomsize" => "3",
446 "read" => "3",
447 "real" => "3",
448 "realloc" => "3",
449 "rectangle" => "3",
450 "registerbgidriver" => "3",
451 "registerbgifont" => "3",
452 "remove" => "3",
453 "rename" => "3",
454 "restorecrtmode" => "3",
455 "rewind" => "3",
456 "rmdir" => "3",
457 "sbrk" => "3",
458 "scanf" => "3",
459 "searchpath" => "3",
460 "sector" => "3",
461 "segread" => "3",
462 "setactivepage" => "3",
463 "setallpalette" => "3",
464 "setaspectratio" => "3",
465 "setbkcolor" => "3",
466 "setblock" => "3",
467 "setbuf" => "3",
468 "setcbrk" => "3",
469 "setcolor" => "3",
470 "setdate" => "3",
471 "setdisk" => "3",
472 "setdta" => "3",
473 "setfillpattern" => "3",
474 "setfillstyle" => "3",
475 "setftime" => "3",
476 "setgraphbufsize" => "3",
477 "setgraphmode" => "3",
478 "setjmp" => "3",
479 "setjmp.h" => "3",
480 "setlinestyle" => "3",
481 "setlocale" => "3",
482 "setmem" => "3",
483 "setmode" => "3",
484 "setpalette" => "3",
485 "setrgbpalette" => "3",
486 "settextjustify" => "3",
487 "settextstyle" => "3",
488 "settime" => "3",
489 "setusercharsize" => "3",
490 "setvbuf" => "3",
491 "setvect" => "3",
492 "setverify" => "3",
493 "setviewport" => "3",
494 "setvisualpage" => "3",
495 "setwritemode" => "3",
496 "share.h" => "3",
497 "signal" => "3",
498 "signal.h" => "3",
499 "sin" => "3",
500 "sinh" => "3",
501 "sleep" => "3",
502 "sopen" => "3",
503 "spawn" => "3",
504 "spawnl" => "3",
505 "spawnle" => "3",
506 "spawnlp" => "3",
507 "spawnlpe" => "3",
508 "spawnv" => "3",
509 "spawnve" => "3",
510 "spawnvp" => "3",
511 "spawnvpe" => "3",
512 "sprintf" => "3",
513 "sqrt" => "3",
514 "srand" => "3",
515 "sscanf" => "3",
516 "stat" => "3",
517 "stat.h" => "3",
518 "stdarg.h" => "3",
519 "stddef.h" => "3",
520 "stdio.h" => "3",
521 "stdiostr.h" => "3",
522 "stdlib.h" => "3",
523 "stime" => "3",
524 "stpcpy" => "3",
525 "strcat" => "3",
526 "strchr" => "3",
527 "strcmp" => "3",
528 "strcmpi" => "3",
529 "strcoll" => "3",
530 "strcpy" => "3",
531 "strcspn" => "3",
532 "strdup" => "3",
533 "stream.h" => "3",
534 "strerror" => "3",
535 "strftime" => "3",
536 "stricmp" => "3",
537 "string.h" => "3",
538 "strlen" => "3",
539 "strlwr" => "3",
540 "strncat" => "3",
541 "strncmp" => "3",
542 "strncmpi" => "3",
543 "strncpy" => "3",
544 "strnicmp" => "3",
545 "strnset" => "3",
546 "strpbrk" => "3",
547 "strrchr" => "3",
548 "strrev" => "3",
549 "strset" => "3",
550 "strspn" => "3",
551 "strstr" => "3",
552 "strstrea.h" => "3",
553 "strtod" => "3",
554 "strtok" => "3",
555 "strtol" => "3",
556 "strtoul" => "3",
557 "strupr" => "3",
558 "strxfrm" => "3",
559 "swab" => "3",
560 "system" => "3",
561 "tan" => "3",
562 "tanh" => "3",
563 "tell" => "3",
564 "textattr" => "3",
565 "textbackground" => "3",
566 "textcolor" => "3",
567 "textheight" => "3",
568 "textmode" => "3",
569 "textwidth" => "3",
570 "time" => "3",
571 "time.h" => "3",
572 "timeb.h" => "3",
573 "tmpfile" => "3",
574 "tmpnam" => "3",
575 "toascii" => "3",
576 "tolower" => "3",
577 "toupper" => "3",
578 "types.h" => "3",
579 "tzset" => "3",
580 "ultoa" => "3",
581 "umask" => "3",
582 "ungetc" => "3",
583 "ungetch" => "3",
584 "unixtodos" => "3",
585 "unlink" => "3",
586 "unlock" => "3",
587 "va_arg" => "3",
588 "va_end" => "3",
589 "va_start" => "3",
590 "values.h" => "3",
591 "vfprintf" => "3",
592 "vfscanf" => "3",
593 "vprintf" => "3",
594 "vscanf" => "3",
595 "vsprintf" => "3",
596 "vsscanf" => "3",
597 "wherex" => "3",
598 "wherey" => "3",
599 "window" => "3",
600 "write" => "3",
601 "EOF" => "4",
602 "FILE" => "4",
603 "NULL" => "4",
604 "SEEK_CUR" => "4",
605 "SEEK_END" => "4",
606 "SEEK_SET" => "4",
607 "size_t" => "4",
608 "!" => "5",
609 "$" => "5",
610 "&" => "5",
611 "(" => "5",
612 ")" => "5",
613 "*" => "5",
614 "+" => "5",
615 "," => "5",
616 "-" => "5",
617 "." => "5",
618 "//" => "5",
619 "/" => "5",
620 ":" => "5",
621 ";" => "5",
622 "<" => "5",
623 "=" => "5",
624 ">" => "5",
625 "[" => "5",
626 "]" => "5",
627 "{" => "5",
628 "|" => "5",
629 "}" => "5",
630 "~" => "5");
631
632// Special extensions
633
634// Each category can specify a PHP function that returns an altered
635// version of the keyword.
636
637
638
639$this->linkscripts = array(
640 "1" => "donothing",
641 "2" => "donothing",
642 "3" => "donothing",
643 "4" => "donothing",
644 "5" => "donothing");
645}
646
647
648function donothing($keywordin)
649{
650 return $keywordin;
651}
652
653}?>
$BEAUT_PATH
Definition: HFile_turboc.php:2
donothing($keywordin)