private void parseCode(XElement codeNode, ISnippetCode code)
        {
            XAttribute languageAttribute = codeNode.Attribute("Language");
              ProgrammingLanguage lang;
              Enum.TryParse(languageAttribute.Value, out lang);
              if (lang != ProgrammingLanguage.None)
            code.Language = lang;

              code.Content = codeNode.Value;
        }
 public Snippet(ISnippetHeader header, ISnippetCode code)
 {
     _header = header;
       _code = code;
       _literals = new ObservableCollection<ISnippetLiteral>();
 }