ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_6502.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_6502 extends HFile
8  {
9  public function HFile_6502()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14 //
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "0";
19  $this->notrim = "1";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "brown", "purple");
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  "adc" => "1",
50  "and" => "1",
51  "asl" => "1",
52  "bcc" => "1",
53  "bcs" => "1",
54  "beq" => "1",
55  "bit" => "1",
56  "bmi" => "1",
57  "bne" => "1",
58  "bpl" => "1",
59  "brk" => "1",
60  "bvc" => "1",
61  "bvs" => "1",
62  "clc" => "1",
63  "cld" => "1",
64  "cli" => "1",
65  "clv" => "1",
66  "cmp" => "1",
67  "cpx" => "1",
68  "cpy" => "1",
69  "dec" => "1",
70  "dex" => "1",
71  "dey" => "1",
72  "eor" => "1",
73  "inc" => "1",
74  "inx" => "1",
75  "iny" => "1",
76  "jmp" => "1",
77  "jsr" => "1",
78  "lda" => "1",
79  "ldx" => "1",
80  "ldy" => "1",
81  "lsr" => "1",
82  "nop" => "1",
83  "ora" => "1",
84  "pha" => "1",
85  "php" => "1",
86  "pla" => "1",
87  "plp" => "1",
88  "rol" => "1",
89  "ror" => "1",
90  "rti" => "1",
91  "rts" => "1",
92  "sbc" => "1",
93  "sec" => "1",
94  "sed" => "1",
95  "sei" => "1",
96  "sta" => "1",
97  "stx" => "1",
98  "sty" => "1",
99  "tax" => "1",
100  "tay" => "1",
101  "tsx" => "1",
102  "txa" => "1",
103  "txs" => "1",
104  "tya" => "1",
105  ".byte" => "2",
106  ".text" => "2",
107  ".word" => "2",
108  ".asc" => "2",
109  ".scrl" => "2",
110  ".scru" => "2",
111  ".include" => "2",
112  ".incbin" => "2",
113  ".label" => "2",
114  ".goto" => "2",
115  ".if" => "2",
116  ".end" => "2",
117  ".enrty" => "2",
118  ".opt" => "2",
119  "*=" => "2");
120 
121  // Special extensions
122 
123  // Each category can specify a PHP function that returns an altered
124  // version of the keyword.
125 
126 
127 
128  $this->linkscripts = array(
129  "1" => "donothing",
130  "2" => "donothing");
131  }
132 
133 
134  public function donothing($keywordin)
135  {
136  return $keywordin;
137  }
138  }
$BEAUT_PATH
Definition: HFile_6502.php:2
donothing($keywordin)
Definition: HFile_6502.php:134
Create styles array
The data for the language used.
Definition: HFile.php:21