title: How to create a new language for use in Visual Studio
body: <p>I want to write a new templating language, and I want Visual Studio to "support" it. What I need to know is:</p>
  
  <ol>
  <li><strong>How do I parse my new language?</strong><br>
  Given some code in my new template language, how do I translate it into HTML? Right now I'm using regular expressions to parse it token by token, but I don't think this is going to scale very well as the language gets more complicated, and there's no error checking. I've heard of ANTLR but never used it. Would that be the right tool for this job, or is there perhaps something simpler? Ideally I'd like to send any syntax errors to the error window with as much information as possible (line #, type of error) like other languages do.</li>
  <li><strong>How do I create a new file type for Visual Studio?</strong></li>
  <li><strong>How do I get syntax highlighting?</strong><br>
  Can I use the same parser I created in step 1, or is this something entirely different?</li>
  <li><strong>How do I get Intellisense?</strong></li>
  </ol>
  
  <p>I'd prefer to write my parser in C#.</p>