<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 6, 2013 at 10:49 AM, Dmitry Olshansky <span dir="ltr"><<a href="mailto:dmitry.olsh@gmail.com" target="_blank">dmitry.olsh@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">06-Nov-2013 21:40, Manu ΠΙΫΕΤ:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On 7 November 2013 03:14, Dmitry Olshansky <<a href="mailto:dmitry.olsh@gmail.com" target="_blank">dmitry.olsh@gmail.com</a><br></div><div><div class="h5">
<mailto:<a href="mailto:dmitry.olsh@gmail.com" target="_blank">dmitry.olsh@gmail.com</a>><u></u>> wrote:<br>
<br>
š š 06-Nov-2013 15:45, Dicebot ΠΙΫΕΤ:<br>
<br>
š š š š Reasonable proposal but I have not encountered much need in this<br>
š š š š functionality personally (std.string.format worked just fine)<br>
š š š š and thus<br>
š š š š can't really evaluate how justified such addition may be.<br>
<br>
<br>
š š +1<br>
<br>
š š Since formatting/templates became accessible in CTFE I do not see<br>
š š much need for this.<br>
<br>
<br></div></div><div class="im">
Every time I use a q{} block, it's to embed some code in a different<br>
language. I would like the IDE to syntax hilight properly if able.<br>
HLSL/GLSL, JSON, XML are the most common embedded languages I encounter.<br>
</div></blockquote>
<br>
Depending on editor/IDE a decent macro/extension would detect specific function before the q{}. Say:<br>
hlsl!q{<br>
<br>
};<br>
<br>
And highlight it as appropriate.<br>
<br>
I think it's customary for good editors to highlight parts of code based on different scheme (say PHP/JS mixed in the HTML highlights just fine). So the basic blocks must be there already.<br>
<br>
All in all it's hardly a good thing to trade a language feature *only* to help people give "hints" to IDEs (which they may as well ignore).</blockquote><div><br></div><div>the proposal in the OT is not about syntax highlight hints, it's about embedding variables in string literals.</div>
<div>š</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Dmitry Olshansky<br>
</font></span></blockquote></div><br></div></div>