styles.c

来自「C语言编程中算法数据结构中的树行代码」· C语言 代码 · 共 976 行 · 第 1/5 页

C
976
字号
                     { SCE_CSS_ATTRIBUTE, "Attribute", "italic", "" },
                     { SCE_CSS_DOUBLESTRING, "String double quoted", "fore:#008000", "" },
                     { SCE_CSS_SINGLESTRING, "String single quoted", "fore:#008000", "" },
                     { -1, "", "", "" } } };


KEYWORDLIST KeyWords_CPP = {
"and and_eq asm auto bitand bitor bool break case catch char class "
"compl const const_cast continue default delete do double "
"dynamic_cast else enum explicit export extern false float for friend "
"goto if inline int long mutable namespace new not not_eq operator or "
"or_eq private protected public register reinterpret_cast return short "
"signed sizeof static static_cast struct switch template this throw true "
"try typedef typeid typename union unsigned using virtual void volatile "
"wchar_t while xor xor_eq",
"",
"a addindex addtogroup anchor arg attention author b brief bug c class code "
"date def defgroup deprecated dontinclude e em endcode endhtmlonly endif "
"endlatexonly endlink endverbatim enum example exception f$ f[ f] file fn "
"hideinitializer htmlinclude htmlonly if image include ingroup internal invariant "
"interface latexonly li line link mainpage name namespace nosubgrouping note "
"overload p page par param post pre ref relates remarks return retval sa "
"section see showinitializer since skip skipline struct subsection test throw "
"todo typedef union until var verbatim verbinclude version warning "
"weakgroup $ @ \\ & < > # { }",
"", "", "", "", "", "" };


EDITLEXER lexCPP = { SCLEX_CPP, "C/C++ Source Code", "c;cpp;cxx;cc;h;hpp;hxx;hh", "", &KeyWords_CPP, {
                     { STYLE_DEFAULT, "Default", "", "" },
                     //{ SCE_C_DEFAULT, "Default", "", "" },
                     { SCE_C_COMMENT, "Comment", "fore:#008000", "" },
                     { SCE_C_COMMENTLINE, "Comment Line", "fore:#008000", "" },
                     { SCE_C_COMMENTDOC, "Comment Doc", "fore:#008000", "" },
                     { SCE_C_COMMENTLINEDOC, "Comment Line Doc", "fore:#008000", "" },
                     { SCE_C_WORD, "Keyword", "fore:#0A246A;bold", "" },
                     { SCE_C_IDENTIFIER, "Identifier", "", "" },
                     { SCE_C_NUMBER, "Number", "fore:#FF0000", "" },
                     { SCE_C_STRING, "String", "fore:#008000", "" },
                     { SCE_C_STRINGEOL, "String not closed", "fore:#008000;back:#FFFF80;eolfilled", "" },
                     { SCE_C_CHARACTER, "Character", "fore:#008000", "" },
                     //{ SCE_C_UUID, "UUID", "", "" },
                     { SCE_C_OPERATOR, "Operator", "fore:#0A246A", "" },
                     { SCE_C_PREPROCESSOR, "Preprocessor", "fore:#FF8000", "" },
                     //{ SCE_C_VERBATIM, "Verbatim", "", "" },
                     //{ SCE_C_REGEX, "Regex", "", "" },
                     //{ SCE_C_WORD2, "Word 2", "", "" },
                     { SCE_C_COMMENTDOCKEYWORD, "Comment Doc Keyword", "fore:#008000", "" },
                     { SCE_C_COMMENTDOCKEYWORDERROR, "Comment Doc Keyword Error", "fore:#008000", "" },
                     //{ SCE_C_GLOBALCLASS, "Global Class", "", "" },
                     { -1, "", "", "" } } };


KEYWORDLIST KeyWords_CS = {
"abstract as base bool break byte case catch char checked class const "
"continue decimal default delegate do double else enum event explicit "
"extern false finally fixed float for foreach goto if implicit in int interface "
"internal is lock long namespace new null object operator out override "
"params private protected public readonly ref return sbyte sealed short "
"sizeof stackalloc static string struct switch this throw true try typeof "
"uint ulong unchecked unsafe ushort using virtual void while",
"",
"a addindex addtogroup anchor arg attention author b brief bug c class code "
"date def defgroup deprecated dontinclude e em endcode endhtmlonly endif "
"endlatexonly endlink endverbatim enum example exception f$ f[ f] file fn "
"hideinitializer htmlinclude htmlonly if image include ingroup internal invariant "
"interface latexonly li line link mainpage name namespace nosubgrouping note "
"overload p page par param post pre ref relates remarks return retval sa "
"section see showinitializer since skip skipline struct subsection test throw todo "
"typedef union until var verbatim verbinclude version warning weakgroup $ @ "
"\\ & < > # { }",
"", "", "", "", "", "" };


EDITLEXER lexCS = { SCLEX_CPP, "C# Source Code", "cs", "", &KeyWords_CS, {
                    { STYLE_DEFAULT, "Default", "", "" },
                    //{ SCE_C_DEFAULT, "Default", "", "" },
                    { SCE_C_COMMENT, "Comment", "fore:#008000", "" },
                    { SCE_C_COMMENTLINE, "Comment Line", "fore:#008000", "" },
                    { SCE_C_COMMENTDOC, "Comment Doc", "fore:#008000", "" },
                    { SCE_C_COMMENTLINEDOC, "Comment Line Doc", "fore:#008000", "" },
                    { SCE_C_WORD, "Keyword", "fore:#0A246A;bold", "" },
                    { SCE_C_IDENTIFIER, "Identifier", "", "" },
                    { SCE_C_NUMBER, "Number", "fore:#FF0000", "" },
                    { SCE_C_STRING, "String", "fore:#008000", "" },
                    { SCE_C_VERBATIM, "Verbatim String", "fore:#008000", "" },
                    { SCE_C_STRINGEOL, "String not closed", "fore:#008000;back:#FFFF80;eolfilled", "" },
                    { SCE_C_CHARACTER, "Character", "fore:#008000", "" },
                    //{ SCE_C_UUID, "UUID", "", "" },
                    { SCE_C_OPERATOR, "Operator", "fore:#0A246A", "" },
                    { SCE_C_PREPROCESSOR, "Preprocessor", "fore:#FF8000", "" },
                    //{ SCE_C_REGEX, "Regex", "", "" },
                    //{ SCE_C_WORD2, "Word 2", "", "" },
                    { SCE_C_COMMENTDOCKEYWORD, "Comment Doc Keyword", "fore:#008000", "" },
                    { SCE_C_COMMENTDOCKEYWORDERROR, "Comment Doc Keyword Error", "fore:#008000", "" },
                    //{ SCE_C_GLOBALCLASS, "Global Class", "", "" },
                    { -1, "", "", "" } } };


KEYWORDLIST KeyWords_RC = {
"ACCELERATORS ALT AUTO3STATE AUTOCHECKBOX AUTORADIOBUTTON "
"BEGIN BITMAP BLOCK BUTTON CAPTION CHARACTERISTICS CHECKBOX "
"CLASS COMBOBOX CONTROL CTEXT CURSOR DEFPUSHBUTTON DIALOG "
"DIALOGEX DISCARDABLE EDITTEXT END EXSTYLE FONT GROUPBOX "
"ICON LANGUAGE LISTBOX LTEXT MENU MENUEX MENUITEM "
"MESSAGETABLE POPUP PUSHBUTTON RADIOBUTTON RCDATA RTEXT "
"SCROLLBAR SEPARATOR SHIFT STATE3 STRINGTABLE STYLE "
"TEXTINCLUDE VALUE VERSION VERSIONINFO VIRTKEY",
"", "", "", "", "", "", "", "" };


EDITLEXER lexRC = { SCLEX_CPP, "Resource Script", "rc;rc2;rct;dlg", "", &KeyWords_RC, {
                    { STYLE_DEFAULT, "Default", "", "" },
                    //{ SCE_C_DEFAULT, "Default", "", "" },
                    { SCE_C_COMMENT, "Comment", "fore:#008000", "" },
                    { SCE_C_COMMENTLINE, "Comment Line", "fore:#008000", "" },
                    { SCE_C_COMMENTDOC, "Comment Doc", "fore:#008000", "" },
                    { SCE_C_WORD, "Keyword", "fore:#0A246A;bold", "" },
                    { SCE_C_IDENTIFIER, "Identifier", "", "" },
                    { SCE_C_NUMBER, "Number", "fore:#FF0000", "" },
                    { SCE_C_STRING, "String", "fore:#008000", "" },
                    { SCE_C_STRINGEOL, "String not closed", "fore:#008000;back:#FFFF80;eolfilled", "" },
                    { SCE_C_CHARACTER, "Character", "fore:#008000", "" },
                    //{ SCE_C_UUID, "UUID", "", "" },
                    { SCE_C_OPERATOR, "Operator", "fore:#0A246A", "" },
                    { SCE_C_PREPROCESSOR, "Preprocessor", "fore:#FF8000", "" },
                    //{ SCE_C_VERBATIM, "Verbatim", "", "" },
                    //{ SCE_C_REGEX, "Regex", "", "" },
                    //{ SCE_C_COMMENTLINEDOC, "Comment Line Doc", "", "" },
                    //{ SCE_C_WORD2, "Word 2", "", "" },
                    //{ SCE_C_COMMENTDOCKEYWORD, "Comment Doc Keyword", "", "" },
                    //{ SCE_C_COMMENTDOCKEYWORDERROR, "Comment Doc Keyword Error", "", "" },
                    //{ SCE_C_GLOBALCLASS, "Global Class", "", "" },
                    { -1, "", "", "" } } };


KEYWORDLIST KeyWords_MAK = {
"", "", "", "", "", "", "", "", "" };


EDITLEXER lexMAK = { SCLEX_MAKEFILE, "Makefiles", "mak;make;dsp", "", &KeyWords_MAK, {
                     { STYLE_DEFAULT, "Default", "", "" },
                     //{ SCE_MAKE_DEFAULT, "Default", "", "" },
                     { SCE_MAKE_COMMENT, "Comment", "fore:#008000", "" },
                     { SCE_MAKE_PREPROCESSOR, "Preprocessor", "fore:#FF8000", "" },
                     { SCE_MAKE_IDENTIFIER, "Identifier", "", "" },
                     { SCE_MAKE_OPERATOR, "Operator", "", "" },
                     { SCE_MAKE_TARGET, "Target", "", "" },
                     { SCE_MAKE_IDEOL, "ID EOL", "", "" },
                     { -1, "", "", "" } } };


KEYWORDLIST KeyWords_VBS = {
"and begin case call continue do each else elseif end erase error event exit false "
"for function get gosub goto if implement in load loop lset me mid new next not nothing "
"on or property raiseevent rem resume return rset select set stop sub then to true unload "
"until wend while with withevents attribute alias as boolean byref byte byval const compare "
"currency date declare dim double enum explicit friend global integer let lib long module object "
"option optional preserve private property public redim single static string type variant",
"", "", "", "", "", "", "", "" };


EDITLEXER lexVBS = { SCLEX_VBSCRIPT, "VBScript", "vbs;dsm", "", &KeyWords_VBS, {
                    { STYLE_DEFAULT, "Default", "", "" },
                    //{ SCE_B_DEFAULT, "Default", "", "" },
                    { SCE_B_COMMENT, "Comment", "fore:#008000", "" },
                    { SCE_B_NUMBER, "Number", "fore:#FF0000", "" },
                    { SCE_B_KEYWORD, "Keyword", "fore:#0A246A;bold", "" },
                    { SCE_B_STRING, "String", "fore:#008000", "" },
                    { SCE_B_STRINGEOL, "String not closed", "fore:#008000;back:#FFFF80;eolfilled", "" },
                    { SCE_B_OPERATOR, "Operator", "", "" },
                    { SCE_B_IDENTIFIER, "Identifier", "", "" },
                    //{ SCE_B_DATE, "Date", "", "" },
                    //{ SCE_B_KEYWORD2, "Keyword 2", "", "" },
                    //{ SCE_B_KEYWORD3, "Keyword 3", "", "" },
                    //{ SCE_B_KEYWORD4, "Keyword 4", "", "" },
                    { SCE_B_CONSTANT, "Constant", "", "" },
                    { SCE_B_PREPROCESSOR, "Preprocessor", "#fore:#808080", "" },
                    { SCE_B_ASM, "Assembler", "fore:#FF8000", "" },
                    { -1, "", "", "" } } };


KEYWORDLIST KeyWords_VB = {
"addhandler addressof andalso alias and ansi as assembly auto boolean byref "
"byte byval call case catch cbool cbyte cchar cdate cdec cdbl char cint class "
"clng cobj const cshort csng cstr ctype date decimal declare default delegate "
"dim do double each else elseif end enum erase error event exit false finally for "
"friend function get gettype goto  handles if implements imports in inherits integer "
"interface is let lib like long loop me mod module mustinherit mustoverride "
"mybase myclass namespace new next not nothing notinheritable notoverridable "
"object on option optional or orelse overloads overridable overrides paramarray "
"preserve private property protected public raiseevent readonly redim rem "
"removehandler resume return select set shadows shared short single static step "
"stop string structure sub synclock then throw to true try typeof unicode until "
"variant when while with withevents writeonly xor",
"", "", "", "", "", "", "", "" };

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?