tag:blogger.com,1999:blog-7577421612120825312.post1629910780131259267..comments2023-10-03T10:41:13.944+01:00Comments on Functional Fun: Text templating with … (gasp) … Excel!Anonymoushttp://www.blogger.com/profile/01345100698738870730noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-7577421612120825312.post-56198037678028969602014-09-17T19:24:47.031+01:002014-09-17T19:24:47.031+01:00I usually do this kind of thing with LinqPad:
...I usually do this kind of thing with LinqPad:<br /><br /><br /><br /> string keywords = "ADA|ADD|AFTER|ALL|ALTER|AND|ANY|AS|ASC|AT|...";<br /> var xml =<br /> new XElement("Keywords",<br /> new XAttribute("Foreground", "Gray"),<br /> from keyword in keywords.Split('|')<br /> select new XElement("Keyword", new XAttribute("Name", keyword)));<br /><br /><br />It's just as fast (especially if you have the Premium edition with autocompletion), and I feel less dirty afterwards ;)Thomas Levesquehttp://www.thomaslevesque.com/noreply@blogger.com