Esempio n. 1
0
        protected override string ProcessBlockPatternMatch(Definition definition, BlockPattern pattern, Match match)
        {
            if (!UseCss) {
                var patternStyle = HtmlEngineHelper.CreatePatternStyle(pattern.Style);

                return String.Format(StyleSpanFormat, patternStyle, match.Value);
            }

            var cssClassName = HtmlEngineHelper.CreateCssClassName(definition.Name, pattern.Name);

            return String.Format(ClassSpanFormat, cssClassName, match.Value);
        }
Esempio n. 2
0
 protected abstract string ProcessBlockPatternMatch(Definition definition, BlockPattern pattern, Match match);
Esempio n. 3
0
        protected override string ProcessBlockPatternMatch(Definition definition, BlockPattern pattern, Match match)
        {
            var style = CreateRtfPatternStyle(pattern.Style.Colors.ForeColor, pattern.Style.Colors.BackColor, pattern.Style.Font);

            return ("{" + String.Format(RtfFormat, style, match.Value) + "}");
        }
Esempio n. 4
0
 protected override string ProcessBlockPatternMatch(Definition definition, BlockPattern pattern, Match match)
 {
     return ProcessPatternMatch(pattern, match);
 }