ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
HFile_netcdf.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_netcdf
extends
HFile
8
{
9
public
function
HFile_netcdf
()
10
{
11
$this->
HFile
();
12
/*************************************/
13
// Beautifier Highlighting Configuration File
14
// netCDF CDL 3.3
15
/*************************************/
16
// Flags
17
18
$this->nocase =
"0"
;
19
$this->notrim =
"0"
;
20
$this->perl =
"0"
;
21
22
// Colours
23
24
$this->colours =
array
(
"blue"
,
"purple"
,
"gray"
);
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
"data"
=>
"1"
,
50
"dimensions"
=>
"1"
,
51
"netcdf"
=>
"1"
,
52
"variables"
=>
"1"
,
53
"byte"
=>
"2"
,
54
"char"
=>
"2"
,
55
"double"
=>
"2"
,
56
"float"
=>
"2"
,
57
"int"
=>
"2"
,
58
"long"
=>
"2"
,
59
"real"
=>
"2"
,
60
"short"
=>
"2"
,
61
"C_format"
=>
"3"
,
62
"Conventions"
=>
"3"
,
63
"add_offset"
=>
"3"
,
64
"history"
=>
"3"
,
65
"long_name"
=>
"3"
,
66
"missing_value"
=>
"3"
,
67
"scale_factor"
=>
"3"
,
68
"signedness"
=>
"3"
,
69
"title"
=>
"3"
,
70
"units"
=>
"3"
,
71
"valid_max"
=>
"3"
,
72
"valid_min"
=>
"3"
,
73
"valid_range"
=>
"3"
,
74
"_FillValue"
=>
"3"
);
75
76
// Special extensions
77
78
// Each category can specify a PHP function that returns an altered
79
// version of the keyword.
80
81
82
83
$this->linkscripts =
array
(
84
"1"
=>
"donothing"
,
85
"2"
=>
"donothing"
,
86
"3"
=>
"donothing"
);
87
}
88
89
90
public
function
donothing
($keywordin)
91
{
92
return
$keywordin;
93
}
94
}
HFile_netcdf
Definition:
HFile_netcdf.php:7
HFile_netcdf\donothing
donothing($keywordin)
Definition:
HFile_netcdf.php:90
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
HFile_netcdf\HFile_netcdf
HFile_netcdf()
Definition:
HFile_netcdf.php:9
HFile
Definition:
HFile.php:21
$BEAUT_PATH
$BEAUT_PATH
Definition:
HFile_netcdf.php:2
Services
COPage
syntax_highlight
php
HFile
HFile_netcdf.php
Generated on Sat Aug 30 2025 19:01:30 for ILIAS by
1.8.13 (using
Doxyfile
)