⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c_cpp.js

📁 荒野asp.net新闻系统
💻 JS
字号:
/*************************************
*      C/C++ Syntax Definition
*************************************/
FCSyntaxDef ["CPP"] = {
	name		: "C/C++",
	delimiters	: "~!%^&*()-+=|\\/{}[]:;\"'<>,.?",
	comments	: "//",
	cmtcolor	: "#008080",
	blocks		: {
		String : {
			name	: "字符串",
			color	: "#ff00ff",
			begin	: "\"",
			end		: "\"",
			escape	: "\\"
		},
		Char : {
			name	: "字符",
			color	: "#4080ff",
			begin	: "'",
			end		: "'",
			escape	: "\\"
		},
		BlockComment : {
			name	: "块注释",
			color	: "#008080",
			begin	: "/*",
			end		: "*/",
			lines	: true
		}
	},
	keywords	: {
		Operator : {
			name	: "运算符",
			color	: "#0000ff",
			list	: "+ - = / % & > < ^ ! | : [ ] { } ( ) , ; . ~ * ?"
		},
		Keyword : {
			name	: "语法关键字",
			color	: "#800000",
			style	: "b",
			list	: "auto break class catch case continue const default do delete else extern "
					+ "for friend goto inline if new namespace operator private protected public "
					+ "return sizeof switch static this try template throw typedef virtual while "
		},
		VarType : {
			name	: "变量类型关键字",
			color	: "#ff8000",
			style	: "b",
			list	: "char double enum float int long register short signed struct "
					+ "union unsigned void volatile "
		},
		Compiler : {
			name	: "编译关键字",
			color	: "#008000",
			style	: "b",
			list	: "#define #error #include #elif #if #line #else #ifdef #pragma #endif #ifndef "
					+ "#undef defined __asm __fastcall __self __segment __based __segname __fortran "
					+ "__cdecl __huge __far __saveregs __export __pascal __near __loadds __interrupt "
					+ "__inline __multiple_inheritance __single_inheritance __virtual_inheritance "
		}
	}
};
//--------------------------------------------------------------
FCCheckSyntaxDef("CPP");

⌨️ 快捷键说明

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