ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
HFile_lumonics.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_lumonics
extends
HFile
{
6
function
HFile_lumonics
(){
7
$this->
HFile
();
8
/*************************************/
9
// Beautifier Highlighting Configuration File
10
// Lumonics Gcode
11
/*************************************/
12
// Flags
13
14
$this->nocase =
"1"
;
15
$this->notrim =
"0"
;
16
$this->perl =
"0"
;
17
18
// Colours
19
20
$this->colours =
array
(
"purple"
,
"blue"
,
"purple"
,
"gray"
,
"brown"
,
"blue"
);
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
(
"B"
,
"E"
,
"I"
,
"J"
,
"K"
,
"L"
,
"P"
,
"Q"
,
"R"
,
"U"
,
"V"
,
"W"
,
"("
,
" "
,
")"
,
"="
,
"-"
,
"+"
,
"*"
);
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
"**"
=>
"6"
,
46
"N"
=>
"1"
,
47
"%"
=>
"2"
,
48
":"
=>
"2"
,
49
"O"
=>
"2"
,
50
"H"
=>
"2"
,
51
"F"
=>
"2"
,
52
"S"
=>
"2"
,
53
"T"
=>
"2"
,
54
"G"
=>
"3"
,
55
"M"
=>
"3"
,
56
"A"
=>
"4"
,
57
"C"
=>
"4"
,
58
"D"
=>
"4"
,
59
"X"
=>
"5"
,
60
"Z"
=>
"5"
,
61
"Y"
=>
"6"
);
62
63
// Special extensions
64
65
// Each category can specify a PHP function that returns an altered
66
// version of the keyword.
67
68
69
70
$this->linkscripts =
array
(
71
"6"
=>
"donothing"
,
72
"1"
=>
"donothing"
,
73
"2"
=>
"donothing"
,
74
"3"
=>
"donothing"
,
75
"4"
=>
"donothing"
,
76
"5"
=>
"donothing"
);
77
}
78
79
80
function
donothing
($keywordin)
81
{
82
return
$keywordin;
83
}
84
85
}?>
HFile_lumonics\HFile_lumonics
HFile_lumonics()
Definition:
HFile_lumonics.php:6
HFile_lumonics
Definition:
HFile_lumonics.php:5
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
HFile
Definition:
HFile.php:21
$BEAUT_PATH
$BEAUT_PATH
Definition:
HFile_lumonics.php:2
HFile_lumonics\donothing
donothing($keywordin)
Definition:
HFile_lumonics.php:80
php
Services
COPage
syntax_highlight
php
HFile
HFile_lumonics.php
Generated on Fri Jan 17 2025 19:01:11 for ILIAS by
1.8.13 (using
Doxyfile
)