Re: [Boost-docs] Quickbook - Snippet markup

Subject: Re: [Boost-docs] Quickbook - Snippet markup
From: Joel de Guzman (joel_at_[hidden])
Date: 2011-03-13 23:49:22


On 3/13/2011 2:10 AM, Daniel James wrote:
> On 12 March 2011 16:27, er<er.ci.2020_at_[hidden]> wrote:
>>
>> That's not so great when templates are involved. I'd like to declare&
>> define all at once, but document only the former, if possible.
>
> Well, quickbook's snippet feature isn't really intended for
> documenting apis, so it'll never work that well. But it shouldn't be
> too hard to implement what you want. Something like:
>
> //[foo
> struct Foo{
>
> Foo()//=;
> //<-
> : x( 10 )
> {}
> //->
>
> //<-
> int x;
> //->
> };
> //]
>
> Where the contents of a '//=' or a '/*=' comment get displayed inline
> and syntax highlighted. I'm not sure I like this, but I don't think
> it'd be harmful. Anyone have any objections or better ideas?
>
> In case you're wondering, the syntax was inspired by the php short
> tags which have a similar function. Not sure if that fits or not. I'm
> not attached to it.

Looks fine to me. +1.

Regards,

-- 
Joel de Guzman
http://www.boostpro.com
http://boost-spirit.com

This archive was generated by hypermail 2.1.7 : 2017-11-11 08:50:41 UTC