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