ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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)) {
4  return;
5 }
6 require_once("$BEAUT_PATH/Beautifier/HFile.php");
7  class HFile_millg extends HFile
8  {
9  public function HFile_millg()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // Mill G Code
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "0";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "purple", "gray", "brown", "blue", "purple", "gray");
25  $this->quotecolour = "blue";
26  $this->blockcommentcolour = "green";
27  $this->linecommentcolour = "green";
28 
29  // Indent Strings
30 
31  $this->indent = array("{");
32  $this->unindent = array("}");
33 
34  // String characters and delimiters
35 
36  $this->stringchars = array("\"", "'");
37  $this->delimiters = array("~", "!", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?");
38  $this->escchar = "";
39 
40  // Comment settings
41 
42  $this->linecommenton = array("//");
43  $this->blockcommenton = array("/*");
44  $this->blockcommentoff = array("*/");
45 
46  // Keywords (keyword mapping to colour number)
47 
48  $this->keywords = array(
49  "G40" => "1",
50  "G41" => "1",
51  "G42" => "1",
52  "G68" => "1",
53  "G69" => "1",
54  "G70" => "1",
55  "G71" => "1",
56  "G90" => "1",
57  "G91" => "1",
58  "G92" => "1",
59  "G93" => "1",
60  "G94" => "1",
61  "G99" => "1",
62  "G00" => "2",
63  "G04" => "2",
64  "G01" => "3",
65  "G02" => "4",
66  "G03" => "4",
67  "G17" => "5",
68  "G18" => "5",
69  "G19" => "5",
70  "M00" => "6",
71  "M01" => "6",
72  "M02" => "6",
73  "M03" => "6",
74  "M04" => "6",
75  "M05" => "6",
76  "M06" => "6",
77  "M07" => "6",
78  "M08" => "6",
79  "M09" => "6",
80  "M13" => "6",
81  "M14" => "6",
82  "M19" => "6",
83  "M26" => "6",
84  "M60" => "6",
85  "G80" => "7",
86  "G81" => "7",
87  "G82" => "7",
88  "G83" => "7",
89  "G84" => "7");
90 
91  // Special extensions
92 
93  // Each category can specify a PHP function that returns an altered
94  // version of the keyword.
95 
96 
97 
98  $this->linkscripts = array(
99  "1" => "donothing",
100  "2" => "donothing",
101  "3" => "donothing",
102  "4" => "donothing",
103  "5" => "donothing",
104  "6" => "donothing",
105  "7" => "donothing");
106  }
107 
108 
109  public function donothing($keywordin)
110  {
111  return $keywordin;
112  }
113  }
$BEAUT_PATH
Definition: HFile_millg.php:2
Create styles array
The data for the language used.
Definition: HFile.php:21
donothing($keywordin)