Improving ddoc

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Thu Jan 1 01:39:51 PST 2015


On 1/1/2015 1:19 AM, Andrei Alexandrescu wrote:
> On 12/31/14 1:12 PM, Dicebot wrote:
>> I don't feel like any small change in DDOC will make me like/use it.
>
> I'm envisioning quite an interesting possibility in which certain constructs are
> automatically converted to macros:
>
> `hello world` --> $(BACKQUOTED hello world)
> "hello world" --> $(QUOTED hello world)
> 'hello world' --> $(SQUOTED hello world)
> _hello world_ --> $(UNDERLINED hello world)
> *hello world* --> $(STARRED hello world)
>
> ... and such. Then generating nice formatting for each of these constructs is
> achieved by simply defining these macros appropriately.

" and ` naturally come in pairs, but *, _ and ' do not.



More information about the Digitalmars-d mailing list