[ECode] implemented

main
Inga 🏳‍🌈 14 years ago
parent b66130401a
commit 5de8eb789e
  1. 19
      Common/BBCodes/ECode.cs
  2. 1
      Common/UBBParser.cs

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PJonDevelopment.BBCode;
namespace FLocal.Common.BBCodes {
class ECode : BBCode {
public ECode()
: base("ecode") {
}
public override string Format(ITextFormatter formatter) {
return this.GetInnerHTML(new BBCodeHtmlFormatter());
}
}
}

@ -118,6 +118,7 @@ namespace FLocal.Common {
this.parser = new BBCodeParser();
this.parser.ElementTypes.Add("b", typeof(BBCodes.B), true);
this.parser.ElementTypes.Add("code", typeof(BBCodes.Code), true);
this.parser.ElementTypes.Add("ecode", typeof(BBCodes.ECode), true);
this.parser.ElementTypes.Add("font", typeof(BBCodes.Font), true);
this.parser.ElementTypes.Add("color", typeof(BBCodes.FontColor), true);
this.parser.ElementTypes.Add("size", typeof(BBCodes.FontSize), true);

Loading…
Cancel
Save