2 $BEAUT_PATH = realpath(
".").
"/Services/COPage/syntax_highlight/php";
4 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
20 $this->colours = array(
"blue",
"purple",
"gray",
"brown",
"blue");
21 $this->quotecolour =
"blue";
22 $this->blockcommentcolour =
"green";
23 $this->linecommentcolour =
"green";
27 $this->indent = array(
"DO\"\"REPEAT\"\"THEN");
28 $this->unindent = array(
"ELSE",
"END");
32 $this->stringchars = array();
33 $this->delimiters = array();
38 $this->linecommenton = array(
"!");
39 $this->blockcommenton = array(
"{");
40 $this->blockcommentoff = array(
"}");
44 $this->keywords = array(
100 "curvecenters" =>
"2",
107 "dimminustol" =>
"2",
110 "domplustolang" =>
"2",
111 "dimimustolang" =>
"2",
113 "dimtolerance" =>
"2",
116 "dimcontrolpts" =>
"2",
117 "dimtxtcolor" =>
"2",
119 "dimticcolor" =>
"2",
120 "distancesync" =>
"2",
163 "layoutextents" =>
"2",
164 "layerswitch" =>
"2",
200 "pltpenspeed" =>
"2",
201 "pltpenwidth" =>
"2",
204 "pltrotcentx" =>
"2",
205 "pltrotcenty" =>
"2",
206 "plotscalenum" =>
"2",
230 "snaplyrsearch" =>
"2",
231 "snapsymfast" =>
"2",
253 "wallhiliteout" =>
"2",
254 "wallhilitecolor" =>
"2",
255 "wallhilitewidth" =>
"2",
268 "arc_to_bulge" =>
"3",
270 "angnormalize" =>
"3",
275 "atr_add2ent" =>
"3",
276 "atr_add2lyr" =>
"3",
277 "atr_add2sym" =>
"3",
278 "atr_add2sys" =>
"3",
283 "atr_entfind" =>
"3",
284 "atr_entfirst" =>
"3",
287 "atr_lyrFind" =>
"3",
288 "atr_lyrfirst" =>
"3",
290 "atr_symfind" =>
"3",
291 "atr_symfirst" =>
"3",
292 "atr_sysfind" =>
"3",
293 "atr_sysfirst" =>
"3",
302 "bulge_to_arc" =>
"3",
303 "cart_cylind" =>
"3",
304 "cart_sphere" =>
"3",
333 "cylind_cart" =>
"3",
342 "dis_from_arc" =>
"3",
343 "dis_from_line" =>
"3",
344 "disfrompolyvert" =>
"3",
345 "dis_from_seg" =>
"3",
350 "dragBoxMove" =>
"3",
355 "dragModeMove" =>
"3",
356 "dragModeRot" =>
"3",
364 "ent_draw_2d" =>
"3",
365 "ent_draw_dl" =>
"3",
366 "ent_drawmode" =>
"3",
367 "ent_enlarge" =>
"3",
368 "ent_explode" =>
"3",
378 "ent_setunused" =>
"3",
382 "ent2polyvert" =>
"3",
395 "file_pattern" =>
"3",
418 "getcurrfont" =>
"3",
419 "getCurrInMat" =>
"3",
432 "getpolyline" =>
"3",
448 "intr_arcarc" =>
"3",
449 "intr_crcarc" =>
"3",
450 "intr_crccrc" =>
"3",
451 "intr_linarc" =>
"3",
452 "intr_lincrc" =>
"3",
453 "intr_linlin" =>
"3",
460 "keyForceExit" =>
"3",
484 "lyr_viewfile" =>
"3",
488 "menu1lntrim" =>
"3",
489 "menu2lntrim" =>
"3",
493 "menuArccentang" =>
"3",
494 "menuArccentarc" =>
"3",
495 "menuArccentchrd" =>
"3",
497 "menuArraycirc" =>
"3",
498 "menuArrayrect" =>
"3",
500 "menuChamfer" =>
"3",
502 "menuChange3d" =>
"3",
503 "menuCleanup" =>
"3",
504 "menuClipCube" =>
"3",
506 "menuControls" =>
"3",
513 "menuCutwall" =>
"3",
514 "menuCylnHori" =>
"3",
515 "menuCylnVert" =>
"3",
516 "menuDataCAD3" =>
"3",
517 "menuDirectry" =>
"3",
518 "menuDisplay" =>
"3",
520 "menuDmension" =>
"3",
522 "menuDoorswng" =>
"3",
524 "menuEditPlane" =>
"3",
525 "menuElevation" =>
"3",
526 "menuEllipse" =>
"3",
527 "menuEnlarge" =>
"3",
528 "menuEnlarge3d" =>
"3",
529 "menuEntity3d" =>
"3",
531 "menuErase3d" =>
"3",
532 "menuExplode3d" =>
"3",
534 "menuFillets" =>
"3",
535 "menuFreehand" =>
"3",
536 "menuGoodies" =>
"3",
537 "menuGotoview" =>
"3",
538 "menuGotoView3d" =>
"3",
542 "menuIdentify" =>
"3",
543 "menuIntrsect" =>
"3",
545 "menuLinetype" =>
"3",
546 "menuLinkline" =>
"3",
547 "menuLintsct" =>
"3",
549 "menuMeasures" =>
"3",
550 "menuMeshSurf" =>
"3",
554 "menuMovedrag" =>
"3",
555 "menuObjsnap" =>
"3",
556 "menuPartial" =>
"3",
557 "menuPlaneSnap" =>
"3",
558 "menuPlotter" =>
"3",
559 "menuPolygon" =>
"3",
560 "menuPolygons" =>
"3",
561 "menuPolyHori" =>
"3",
562 "menuPolyIncl" =>
"3",
563 "menuPolyRect" =>
"3",
564 "menuPolyVert" =>
"3",
565 "menuRevSurf" =>
"3",
567 "menuRotate3d" =>
"3",
568 "menuSaveImage" =>
"3",
569 "menuSetObliq" =>
"3",
570 "menuSetPersp" =>
"3",
571 "menuSettings" =>
"3",
572 "menuSettings3d" =>
"3",
574 "menuSlabHori" =>
"3",
575 "menuSlabIncl" =>
"3",
576 "menuSlabRect" =>
"3",
577 "menuSlabVert" =>
"3",
579 "menuStretch" =>
"3",
580 "menuStretch3d" =>
"3",
581 "menuTangents" =>
"3",
582 "menuTemplate" =>
"3",
584 "menuTintsct" =>
"3",
586 "menuToscale" =>
"3",
587 "menuTruncCone" =>
"3",
590 "menuWalkThru" =>
"3",
591 "menuWeldline" =>
"3",
592 "menuWindowin" =>
"3",
593 "menuWindows" =>
"3",
598 "mode_enttype" =>
"3",
601 "mode_ignore" =>
"3",
618 "pline_centroid" =>
"3",
619 "pline_perim" =>
"3",
623 "pnt_in_poly" =>
"3",
626 "polyvert2ent" =>
"3",
627 "polyvert_add" =>
"3",
628 "polyvert_copy" =>
"3",
629 "polyvert_count" =>
"3",
630 "polyvert_del" =>
"3",
631 "polyvert_get" =>
"3",
632 "polyvert_init" =>
"3",
633 "polyvert_ins" =>
"3",
634 "polyvert_update" =>
"3",
639 "pntscolinear" =>
"3",
652 "setcurrfont" =>
"3",
667 "sphere_cart" =>
"3",
691 "sym_clearref" =>
"3",
697 "sym_get_atr" =>
"3",
712 "view_calcoblq" =>
"3",
713 "view_calcorth" =>
"3",
714 "view_calcpara" =>
"3",
715 "view_calcpers" =>
"3",
716 "view_checkmode" =>
"3",
717 "view_currmode" =>
"3",
721 "view_getcurr" =>
"3",
724 "view_setcurr" =>
"3",
725 "view_setmode" =>
"3",
726 "view_update" =>
"3",
729 "void_del_all" =>
"3",
731 "void_get_di" =>
"3",
733 "void_update" =>
"3",
746 "atr_name_len" =>
"4",
769 "drmode_black" =>
"4",
770 "drmode_flip" =>
"4",
771 "drmode_white" =>
"4",
796 "fl_access_denice" =>
"4",
797 "fl_invalid_access_code" =>
"4",
798 "fl_invalid_function" =>
"4",
799 "fl_invalid_handle" =>
"4",
800 "fl_no_handles_left" =>
"4",
801 "fl_not_found" =>
"4",
803 "fl_path_not_found" =>
"4",
805 "fmode_read_write" =>
"4",
806 "fmode_write" =>
"4",
818 "htype_normal" =>
"4",
819 "htype_outer" =>
"4",
820 "htype_ignore" =>
"4",
824 "ltype_solid" =>
"4",
825 "ltype_dotted" =>
"4",
826 "ltype_dashed" =>
"4",
827 "ltype_dotdash" =>
"4",
830 "osnap_center" =>
"4",
831 "osnap_endpoint" =>
"4",
832 "osnap_intsect" =>
"4",
833 "osnap_midpoint" =>
"4",
834 "osnap_nearest" =>
"4",
835 "osnap_npoint" =>
"4",
838 "osnap_quick" =>
"4",
961 "dimarration" =>
"5",
962 "dimtxtaspect" =>
"5",
965 "dimtxtslant" =>
"5",
969 "dimtxtweight" =>
"5",
979 "dimnolftmrk" =>
"5",
980 "dimnorhtmrk" =>
"5",
981 "dimticweight" =>
"5",
1058 "plyfrstvoid" =>
"5",
1059 "plylastvoid" =>
"5",
1091 "slbfrstvoid" =>
"5",
1092 "slblastvoid" =>
"5",
1099 "scanlinetype" =>
"5",
1141 $this->linkscripts = array(
1146 "5" =>
"donothing");