| Server IP : 104.21.25.180 / Your IP : 162.159.115.42 Web Server : Apache/2.4.37 System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : ricodeal ( 1046) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/source-highlight/ |
Upload File : |
# definitions for C
include "c_comment.lang"
label = '^[[:blank:]]*[[:alnum:]]+:[[:blank:]]*\z'
(keyword,normal,classname) =
`(\<struct)([[:blank:]]+)([[:alnum:]_]+)`
state preproc start '^[[:blank:]]*#(?:[[:blank:]]*include)' begin
string delim "<" ">"
string delim "\"" "\"" escape "\\"
include "c_comment.lang"
end
preproc = '^[[:blank:]]*#([[:blank:]]*[[:word:]]*)'
include "number.lang"
include "c_string.lang"
keyword = "__asm|__cdecl|__declspec|__export|__far16",
"__fastcall|__fortran|__import",
"__pascal|__rtti|__stdcall|_asm|_cdecl",
"__except|_export|_far16|_fastcall",
"__finally|_fortran|_import|_pascal|_stdcall|__thread|__try|asm|auto",
"break|case|catch|cdecl|const|continue|default",
"do|else|enum|extern|for|goto",
"if|pascal",
"register|return|sizeof|static",
"struct|switch",
"typedef|union",
"volatile|while"
type = "bool|char|double|float|int|long",
"short|signed|unsigned|void|wchar_t"
include "symbols.lang"
cbracket = "{|}"
include "function.lang"
include "clike_vardeclaration.lang"