public SourceEditor() : base() { formatting.Add((int)XMLParser.TokenType.AttributeName, new TextFormatting(Color.UnitedNationsBlue, Color.Transparent)); formatting.Add((int)XMLParser.TokenType.ElementName, new TextFormatting(Color.DarkBlue, Color.Transparent)); formatting.Add((int)XMLParser.TokenType.ElementStart, new TextFormatting(Color.Black, Color.Transparent)); formatting.Add((int)XMLParser.TokenType.ElementEnd, new TextFormatting(Color.Black, Color.Transparent)); formatting.Add((int)XMLParser.TokenType.ElementClosing, new TextFormatting(Color.Black, Color.Transparent)); formatting.Add((int)XMLParser.TokenType.Affectation, new TextFormatting(Color.Black, Color.Transparent)); formatting.Add((int)XMLParser.TokenType.AttributeValueOpening, new TextFormatting(Color.Carmine, Color.Transparent)); formatting.Add((int)XMLParser.TokenType.AttributeValueClosing, new TextFormatting(Color.Carmine, Color.Transparent)); formatting.Add((int)XMLParser.TokenType.AttributeValue, new TextFormatting(Color.OrangeRed, Color.Transparent, false, true)); formatting.Add((int)XMLParser.TokenType.XMLDecl, new TextFormatting(Color.GreenCrayola, Color.Transparent)); formatting.Add((int)XMLParser.TokenType.BlockComment, new TextFormatting(Color.Gray, Color.Transparent, false, true)); parsing.Add(".crow", "Crow.Coding.XMLParser"); buffer = new CodeBuffer(); buffer.LineUpadateEvent += Buffer_LineUpadateEvent; buffer.LineAdditionEvent += Buffer_LineAdditionEvent;; buffer.LineRemoveEvent += Buffer_LineRemoveEvent; buffer.BufferCleared += Buffer_BufferCleared; buffer.SelectionChanged += Buffer_SelectionChanged; buffer.PositionChanged += Buffer_PositionChanged; buffer.FoldingEvent += Buffer_FoldingEvent; buffer.Add(new CodeLine("")); }
public BufferParser(CodeBuffer _buffer) { buffer = _buffer; buffer.LineUpadateEvent += Buffer_LineUpadateEvent; //buffer.LineAdditionEvent += Buffer_LineAdditionEvent;; buffer.LineRemoveEvent += Buffer_LineRemoveEvent; buffer.BufferCleared += Buffer_BufferCleared; }
public SourceEditor() : base() { formatting.Add((int)XMLParser.TokenType.AttributeName, new TextFormatting(Colors.DarkSlateGrey, Colors.Transparent)); formatting.Add((int)XMLParser.TokenType.ElementName, new TextFormatting(Colors.DarkBlue, Colors.Transparent)); formatting.Add((int)XMLParser.TokenType.ElementStart, new TextFormatting(Colors.Black, Colors.Transparent)); formatting.Add((int)XMLParser.TokenType.ElementEnd, new TextFormatting(Colors.Black, Colors.Transparent)); formatting.Add((int)XMLParser.TokenType.ElementClosing, new TextFormatting(Colors.Black, Colors.Transparent)); formatting.Add((int)XMLParser.TokenType.AttributeValueOpening, new TextFormatting(Colors.Crimson, Colors.Transparent)); formatting.Add((int)XMLParser.TokenType.AttributeValueClosing, new TextFormatting(Colors.Crimson, Colors.Transparent)); formatting.Add((int)XMLParser.TokenType.AttributeValue, new TextFormatting(Colors.FireBrick, Colors.Transparent, false, true)); formatting.Add((int)XMLParser.TokenType.XMLDecl, new TextFormatting(Colors.ForestGreen, Colors.Transparent)); formatting.Add((int)XMLParser.TokenType.Content, new TextFormatting(Colors.DimGrey, Colors.Transparent, false, true)); formatting.Add((int)BufferParser.TokenType.BlockComment, new TextFormatting(Colors.Grey, Colors.Transparent, false, true)); formatting.Add((int)BufferParser.TokenType.LineComment, new TextFormatting(Colors.Grey, Colors.Transparent, false, true)); formatting.Add((int)BufferParser.TokenType.OperatorOrPunctuation, new TextFormatting(Colors.Black, Colors.Transparent)); formatting.Add((int)BufferParser.TokenType.Keyword, new TextFormatting(Colors.Teal, Colors.Transparent)); //formatting.Add ((int)BufferParser.TokenType.Keyword, new TextFormatting (Color.DarkCyan, Color.Transparent)); parsing.Add(".crow", "Crow.Coding.XMLParser"); parsing.Add(".svg", "Crow.Coding.XMLParser"); parsing.Add(".template", "Crow.Coding.XMLParser"); parsing.Add(".csproj", "Crow.Coding.XMLParser"); parsing.Add(".xml", "Crow.Coding.XMLParser"); parsing.Add(".cs", "Crow.Coding.CSharpParser"); parsing.Add(".style", "Crow.Coding.StyleParser"); buffer = new CodeBuffer(); buffer.LineUpadateEvent += Buffer_LineUpadateEvent; buffer.LineAdditionEvent += Buffer_LineAdditionEvent;; buffer.LineRemoveEvent += Buffer_LineRemoveEvent; buffer.BufferCleared += Buffer_BufferCleared; buffer.SelectionChanged += Buffer_SelectionChanged; buffer.PositionChanged += Buffer_PositionChanged; buffer.FoldingEvent += Buffer_FoldingEvent; buffer.Add(new CodeLine("")); }
public CSharpParser(CodeBuffer _buffer) : base(_buffer) { }
public XMLParser(CodeBuffer _buffer) : base(_buffer) { }
public StyleParser(CodeBuffer _buffer) : base(_buffer) { }