Is there a macro for code snippets introduced with "---"?

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Mon Jul 3 16:17:02 PDT 2017


Trying to to this:

//////////////// file.dd
This will be highlighted:

---
int i;
---

This should also be but it isn't:

$(MYMACRO
int j;
)

Macros:
MYMACRO = Code begins
---
$0
---
Code ends
//////////////// file.dd ends

The expansion doesn't result in highlighted code. Is there a macro 
equivalent for "---"?


Thanks,

Andrei


More information about the Digitalmars-d mailing list