Beispiel #1
0
        public IToken GetChangedToken(IToken token)
        {
            string text = token.Text;

            int    indexEndTag = text.LastIndexOf('<');
            string endTag      = text.Substring(indexEndTag);

            string body    = text.Substring(0, indexEndTag);
            string newBody = textEditor.EditText(body);

            return(factoryTokens.Create(token.Type, newBody + endTag));
        }