ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_sacs4.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_sacs4 extends HFile{
6  function HFile_sacs4(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // SACS IV
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "1";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "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  "AMOD" => "1",
46  "DEAD" => "1",
47  "END" => "1",
48  "GRUP" => "1",
49  "HYDRO" => "1",
50  "JOINT" => "1",
51  "LDCASE" => "1",
52  "LDCOMB" => "1",
53  "LDOPT" => "1",
54  "LOAD" => "1",
55  "LOADCN" => "1",
56  "MEMBER" => "1",
57  "OPTIONS" => "1",
58  "PGRUP" => "1",
59  "PLATE" => "1",
60  "PSTIF" => "1",
61  "REDESIGN" => "1",
62  "SECT" => "1",
63  "SECS" => "1",
64  "SHELL" => "1",
65  "SOLID" => "1",
66  "UCPART" => "1",
67  "CONC" => "2",
68  "ELASTI" => "2",
69  "F" => "2",
70  "JOIN" => "2",
71  "MOMT" => "2",
72  "MN" => "2",
73  "MT" => "2",
74  "N" => "2",
75  "OFFSET" => "2",
76  "OFFSETS" => "2",
77  "PERSET" => "2",
78  "PRI" => "2",
79  "SPC" => "2",
80  "SPG" => "2",
81  "STB" => "2",
82  "STC" => "2",
83  "STM" => "2",
84  "STT" => "2",
85  "TEE" => "2",
86  "TEMP" => "2",
87  "THICK" => "2",
88  "TUB" => "2",
89  "UNIF" => "2",
90  "WF" => "2",
91  "X" => "2",
92  "Y" => "2",
93  "Z" => "2");
94 
95 // Special extensions
96 
97 // Each category can specify a PHP function that returns an altered
98 // version of the keyword.
99 
100 
101 
102 $this->linkscripts = array(
103  "1" => "donothing",
104  "2" => "donothing");
105 }
106 
107 
108 function donothing($keywordin)
109 {
110  return $keywordin;
111 }
112 
113 }?>