I just had an idea while I was working on a webserver in Haskell, where I not only enter Haskell code (obviously) but I also enter Javascript and CSS code in functions that use QuasiQuoting (i.e. TemplateHaskell).<div>
<br>The idea is basically that with standard Haddock comments you can specify a &#39;tag&#39; for function argument that has a QuasiQuoter as a type, the &#39;tag&#39; specifying the syntax of the code inside of what is being spliced (for that specific function). The generated haddock documentation would then display the syntax tag for that specific function.</div>
<div><br>
</div><div>The purpose for this would be that IDE&#39;s and Editors would pick up that the code going through the QuasiQuoter has a certain syntax, and the IDE/Editors can then apply syntax coloring (and indenting rules and whatnot) to that piece of code</div>
<div><br></div><div>I guess this tag concept can be applied generally to any type of function (and any type of tag, not just tags for syntax) but there should be some standardization, (tag types especially should be static, tag values don&#39;t have to)</div>
<div><br></div><div>Thoughts? </div>