SHOGUN
v3.0.0
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
shogun
ui
SyntaxHighLight.h
Go to the documentation of this file.
1
2
class
CSyntaxHighLight
3
{
4
public
:
6
CSyntaxHighLight
()
7
{
8
set_ansi_syntax_hilighting
();
9
}
10
12
void
set_ansi_syntax_hilighting
()
13
{
14
command_prefix
=
"\033[1;31m"
;
15
command_suffix
=
"\033[0m"
;
16
prompt_prefix
=
"\033[1;34"
;
17
prompt_suffix
=
"\033[0m"
;
18
}
19
21
void
disable_syntax_hilighting
()
22
{
23
command_prefix
=
""
;
24
command_suffix
=
""
;
25
prompt_prefix
=
""
;
26
prompt_suffix
=
""
;
27
}
28
30
void
set_doxygen_syntax_hilighting
()
31
{
32
command_prefix
=
"\b "
;
33
command_suffix
=
""
;
34
prompt_prefix
=
""
;
35
prompt_suffix
=
""
;
36
}
37
41
const
char
*
get_command_prefix
()
42
{
43
return
command_prefix
;
44
}
45
49
const
char
*
get_command_suffix
()
50
{
51
return
command_suffix
;
52
}
53
57
const
char
*
get_prompt_prefix
()
58
{
59
return
prompt_prefix
;
60
}
61
65
const
char
*
get_prompt_suffix
()
66
{
67
return
prompt_suffix
;
68
}
69
70
public
:
72
const
char
*
command_prefix
;
74
const
char
*
command_suffix
;
76
const
char
*
prompt_prefix
;
78
const
char
*
prompt_suffix
;
79
};
SHOGUN
Machine Learning Toolbox - Documentation