/// <summary>
        /// Clears and updates the contents.
        /// </summary>
        void HighlightContents()
        {
            if (_textBlock != null)
            {
                _textBlock.Inlines.Clear();
                var xif = new XamlInlineFormatter(_textBlock);

                CodeColorizer cc;
                if (_colorizer != null && _colorizer.IsAlive)
                {
                    cc = (CodeColorizer)_colorizer.Target;
                }
                else
                {
                    cc         = new CodeColorizer();
                    _colorizer = new WeakReference(cc);
                }

                ILanguage language = CreateLanguageInstance(SourceLanguage);

                cc.Colorize(SourceCode, language, xif, new DefaultStyleSheet());
            }
        }
		/// <summary>
		/// Clears and updates the contents.
		/// </summary>
		void HighlightContents()
		{
			if (_textBlock != null)
			{
				_textBlock.Inlines.Clear();
				var xif = new XamlInlineFormatter(_textBlock);

				CodeColorizer cc;
				if (_colorizer != null && _colorizer.IsAlive)
				{
					cc = (CodeColorizer) _colorizer.Target;
				}
				else
				{
					cc = new CodeColorizer();
					_colorizer = new WeakReference(cc);
				}

				ILanguage language = CreateLanguageInstance(SourceLanguage);

				cc.Colorize(SourceCode, language, xif, new DefaultStyleSheet());
			}
		}