📄 synhighlightercss.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'SynHighlighterCSS.pas' rev: 6.00
#ifndef SynHighlighterCSSHPP
#define SynHighlighterCSSHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Classes.hpp> // Pascal unit
#include <SysUtils.hpp> // Pascal unit
#include <SynHighlighterHashEntries.hpp> // Pascal unit
#include <SynEditHighlighter.hpp> // Pascal unit
#include <SynEditTypes.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <SysInit.hpp> // Pascal unit
#include <System.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Synhighlightercss
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TtkTokenKind { tkComment, tkProperty, tkKey, tkNull, tkSpace, tkString, tkSymbol, tkText, tkUndefProperty, tkValue, tkColor, tkNumber };
#pragma option pop
#pragma option push -b-
enum TRangeState { rsComment, rsKey, rsParam, rsText, rsUnKnown, rsValue };
#pragma option pop
typedef void __fastcall (__closure *TProcTableProc)(void);
class DELPHICLASS TSynCssSyn;
class PASCALIMPLEMENTATION TSynCssSyn : public Synedithighlighter::TSynCustomHighlighter
{
typedef Synedithighlighter::TSynCustomHighlighter inherited;
private:
TRangeState fRange;
TRangeState fCommentRange;
char *fLine;
TProcTableProc fProcTable[256];
int Run;
char *Temp;
int fStringLen;
char *fToIdent;
int fTokenPos;
TtkTokenKind fTokenID;
Synedithighlighter::TSynHighlighterAttributes* fCommentAttri;
Synedithighlighter::TSynHighlighterAttributes* fPropertyAttri;
Synedithighlighter::TSynHighlighterAttributes* fKeyAttri;
Synedithighlighter::TSynHighlighterAttributes* fSpaceAttri;
Synedithighlighter::TSynHighlighterAttributes* fStringAttri;
Synedithighlighter::TSynHighlighterAttributes* fColorAttri;
Synedithighlighter::TSynHighlighterAttributes* fNumberAttri;
Synedithighlighter::TSynHighlighterAttributes* fSymbolAttri;
Synedithighlighter::TSynHighlighterAttributes* fTextAttri;
Synedithighlighter::TSynHighlighterAttributes* fValueAttri;
Synedithighlighter::TSynHighlighterAttributes* fUndefPropertyAttri;
Synhighlighterhashentries::TSynHashEntryList* fKeywords;
int fLineNumber;
int __fastcall KeyHash(char * ToHash);
bool __fastcall KeyComp(const AnsiString aKey);
void __fastcall DoAddKeyword(AnsiString AKeyword, int AKind);
TtkTokenKind __fastcall IdentKind(char * MayBe);
void __fastcall MakeMethodTables(void);
void __fastcall TextProc(void);
void __fastcall CommentProc(void);
void __fastcall BraceCloseProc(void);
void __fastcall BraceOpenProc(void);
void __fastcall CRProc(void);
void __fastcall SemiProc(void);
void __fastcall StartValProc(void);
void __fastcall NumberProc(void);
void __fastcall IdentProc(void);
void __fastcall LFProc(void);
void __fastcall NullProc(void);
void __fastcall SpaceProc(void);
void __fastcall StringProc(void);
void __fastcall HashProc(void);
void __fastcall SlashProc(void);
protected:
virtual Synedittypes::TSynIdentChars __fastcall GetIdentChars();
virtual AnsiString __fastcall GetSampleSource();
virtual bool __fastcall IsFilterStored(void);
public:
/* virtual class method */ virtual AnsiString __fastcall GetLanguageName(TMetaClass* vmt);
__fastcall virtual TSynCssSyn(Classes::TComponent* AOwner);
__fastcall virtual ~TSynCssSyn(void);
virtual Synedithighlighter::TSynHighlighterAttributes* __fastcall GetDefaultAttribute(int Index);
virtual bool __fastcall GetEol(void);
virtual void * __fastcall GetRange(void);
TtkTokenKind __fastcall GetTokenID(void);
virtual void __fastcall SetLine(AnsiString NewValue, int LineNumber);
virtual AnsiString __fastcall GetToken();
virtual Synedithighlighter::TSynHighlighterAttributes* __fastcall GetTokenAttribute(void);
virtual int __fastcall GetTokenKind(void);
virtual int __fastcall GetTokenPos(void);
virtual void __fastcall Next(void);
virtual void __fastcall SetRange(void * Value);
virtual void __fastcall ResetRange(void);
__property IdentChars ;
__published:
__property Synedithighlighter::TSynHighlighterAttributes* CommentAttri = {read=fCommentAttri, write=fCommentAttri};
__property Synedithighlighter::TSynHighlighterAttributes* PropertyAttri = {read=fPropertyAttri, write=fPropertyAttri};
__property Synedithighlighter::TSynHighlighterAttributes* ColorAttri = {read=fColorAttri, write=fColorAttri};
__property Synedithighlighter::TSynHighlighterAttributes* NumberAttri = {read=fNumberAttri, write=fNumberAttri};
__property Synedithighlighter::TSynHighlighterAttributes* KeyAttri = {read=fKeyAttri, write=fKeyAttri};
__property Synedithighlighter::TSynHighlighterAttributes* SpaceAttri = {read=fSpaceAttri, write=fSpaceAttri};
__property Synedithighlighter::TSynHighlighterAttributes* StringAttri = {read=fStringAttri, write=fStringAttri};
__property Synedithighlighter::TSynHighlighterAttributes* SymbolAttri = {read=fSymbolAttri, write=fSymbolAttri};
__property Synedithighlighter::TSynHighlighterAttributes* TextAttri = {read=fTextAttri, write=fTextAttri};
__property Synedithighlighter::TSynHighlighterAttributes* ValueAttri = {read=fValueAttri, write=fValueAttri};
__property Synedithighlighter::TSynHighlighterAttributes* UndefPropertyAttri = {read=fUndefPropertyAttri, write=fUndefPropertyAttri};
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Synhighlightercss */
using namespace Synhighlightercss;
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // SynHighlighterCSS
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -