ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_millg.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3 if (!isset ($BEAUT_PATH)) return;
4 require_once("$BEAUT_PATH/Beautifier/HFile.php");
5  class HFile_millg extends HFile{
6  function HFile_millg(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Mill G Code
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", "purple", "gray");
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  "G40" => "1",
46  "G41" => "1",
47  "G42" => "1",
48  "G68" => "1",
49  "G69" => "1",
50  "G70" => "1",
51  "G71" => "1",
52  "G90" => "1",
53  "G91" => "1",
54  "G92" => "1",
55  "G93" => "1",
56  "G94" => "1",
57  "G99" => "1",
58  "G00" => "2",
59  "G04" => "2",
60  "G01" => "3",
61  "G02" => "4",
62  "G03" => "4",
63  "G17" => "5",
64  "G18" => "5",
65  "G19" => "5",
66  "M00" => "6",
67  "M01" => "6",
68  "M02" => "6",
69  "M03" => "6",
70  "M04" => "6",
71  "M05" => "6",
72  "M06" => "6",
73  "M07" => "6",
74  "M08" => "6",
75  "M09" => "6",
76  "M13" => "6",
77  "M14" => "6",
78  "M19" => "6",
79  "M26" => "6",
80  "M60" => "6",
81  "G80" => "7",
82  "G81" => "7",
83  "G82" => "7",
84  "G83" => "7",
85  "G84" => "7");
86 
87 // Special extensions
88 
89 // Each category can specify a PHP function that returns an altered
90 // version of the keyword.
91 
92 
93 
94 $this->linkscripts = array(
95  "1" => "donothing",
96  "2" => "donothing",
97  "3" => "donothing",
98  "4" => "donothing",
99  "5" => "donothing",
100  "6" => "donothing",
101  "7" => "donothing");
102 }
103 
104 
105 function donothing($keywordin)
106 {
107  return $keywordin;
108 }
109 
110 }?>