title: Ace editor / embed multiple syntax highlight
body: <p>I'm using ace editor with "html" mode for web programming as a web IDE. I can highlight code for HTMl, CSS and JavaScript. It works nicely. This is my code:</p>
  
  <pre><code>    editor.getSession().setMode('ace/mode/html');
  </code></pre>
  
  <p>I'd like to embed coffeescript and typescript syntax highlight too when using the</p>
  
  <pre><code>    &lt;script type='text/coffeescript'&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>    &lt;script type='text/typescript'&gt;
  </code></pre>
  
  <p>tags on the page. Ace does have modes for these languages but they are separate files (mode-coffee.js and mode-typescript.js) and I don't know how I could embed these into mode-html.js. The code is rather complicated.</p>
  
  <p>Could you kindly help me out? I've been studying these files for several hours now and I'd appreciate any help. Thank you.</p>