SHOGUN
3.2.1
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
ui
SyntaxHighLight.h
浏览该文件的文档.
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
机器学习工具包 - 项目文档