title: HTML preprocessor for Visual Studio
body: <p>I'm working on a static HTML prototype without server-side functionality that can easily be distributed on any non-webserver machine to demo.</p>
  
  <p>I'm using LESS for CSS preprocessing to make it easier for me to write CSS.</p>
  
  <p>My HTML files have certain parts that are repeated between all HTML files. This end up in quite a bit of code duplication. Each change results in me updating all those files.</p>
  
  <p>Is there any HTML preprocessor that is supported by Visual Studio (as an extension/addin) that would keep my HTML syntax highlighting and intellisense but add additional features like imports.</p>
  
  <p>What I'd like to have are</p>
  
  <ul>
  <li>imports parts of HTML that I could simply import into every HTML and just update original template (like head scripts and styles)</li>
  <li>variable definitions that I could also include in HTML that define particular element attributes that would be distributed over files the same way</li>
  </ul>
  
  <h2>What I could use</h2>
  
  <p>I was thinking of utilizing T4 which would give me the ability to import templates into HTML files. Resulting HTML files would get transformed on save (or click of a toolbar button) and I could directly use them afterwards.</p>
  
  <p>Downside is I don't get HTML code highlighting and intellisense for HTML code in those T4 templates.</p>