/usr/include/shogun/ui/SyntaxHighLight.h is in libshogun-dev 3.2.0-7.5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | /** @brief the syntax highlight */
class CSyntaxHighLight
{
public:
/** constructor */
CSyntaxHighLight()
{
set_ansi_syntax_hilighting();
}
/** set ansi syntax hilighting */
void set_ansi_syntax_hilighting()
{
command_prefix="\033[1;31m";
command_suffix="\033[0m";
prompt_prefix="\033[1;34";
prompt_suffix="\033[0m";
}
/** disable syntax hiligthing */
void disable_syntax_hilighting()
{
command_prefix="";
command_suffix="";
prompt_prefix="";
prompt_suffix="";
}
/** set doxygen syntax hilighting */
void set_doxygen_syntax_hilighting()
{
command_prefix="\b ";
command_suffix="";
prompt_prefix="";
prompt_suffix="";
}
/** get command prefix
* @return command prefix
*/
const char* get_command_prefix()
{
return command_prefix;
}
/** get command suffic
* @return command suffix
*/
const char* get_command_suffix()
{
return command_suffix;
}
/** get prompt prefix
* @return prompt prefix
*/
const char* get_prompt_prefix()
{
return prompt_prefix;
}
/** get prompt suffix
* @return prompt suffix
*/
const char* get_prompt_suffix()
{
return prompt_suffix;
}
public:
/** command prefix */
const char* command_prefix;
/** command suffix */
const char* command_suffix;
/** prompt prefix */
const char* prompt_prefix;
/** prompt suffix */
const char* prompt_suffix;
};
|