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