proposal: a new string litteral to embed variables in a string
Jacob Carlborg
doob at me.com
Wed Nov 6 02:45:02 PST 2013
On 2013-11-06 02:42, Manu wrote:
> While thinking on a new string literal that may support DSL's, the
> syntax should optionally receive a language specification on opening.
> The thing that sucks most about DSL's is that the IDE can't syntax
> hilight them, but if it was provided what language the string was, then
> a smart IDE could apply syntax hilighting for that language within the
> scring scope.
> Eg, this sort of thing is supported in html, which is usually hilighted
> correctly by IDE's:
> <script type="text/javascript"> or <script language="javascript">
>
> And exists in many other places too.
Github flavored Markdown uses:
```javascript
// JavaScript code
```
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list