コード例 #1
0
        private static void SetDelphi(this Scintilla scintilla)
        {
            scintilla.ConfigureLexer(LexerStyle.Delphi);
            scintilla.Lexer = Lexer.Cpp;

            scintilla.SetKeywords(0, "and array as begin case class const constructor destructor div do downto else end except file finally for function goto if implementation in inherited interface is mod not object of on or packed procedure program property raise record repeat set shl shr then threadvar to try type unit until uses var while with xor");
            scintilla.SetKeywords(1, "bool byte double float integer string");
        }
コード例 #2
0
        private static void SetJs(this Scintilla scintilla)
        {
            scintilla.ConfigureLexer(LexerStyle.JavaScript);
            scintilla.Lexer = Lexer.Cpp;

            scintilla.SetKeywords(0, "abstract arguments boolean break byte case catch char class const continue debugger default delete do double else enum eval export extends false final finally float for function goto if implements import in instanceof int interface let long native new null package private protected public return short static super switch synchronized this throw throws transient true try typeof var void volatile while with yield");
            scintilla.SetKeywords(1, "array date hasOwnProperty infinity isFinite isNaN isPrototypeOf length math NaN name number object prototype string toString undefined valueOf");
        }
コード例 #3
0
        private static void SetCpp(this Scintilla scintilla)
        {
            scintilla.ConfigureLexer(LexerStyle.CSharp);
            scintilla.Lexer = Lexer.Cpp;

            scintilla.SetKeywords(0, "abstract as base bool break byte case catch char checked class const continue 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 volatile while");
            scintilla.SetKeywords(1, "decimal var");
        }