View previous topic :: View next topic |
Author |
Message |
heromyth
Joined: 26 Nov 2006 Posts: 46
|
Posted: Mon Mar 03, 2008 9:07 am Post subject: using <pre></pre> to produce a better document |
|
|
The comments in D sources are always reformated when they are converted into a document. To keep the original format, we can use the HTML markup '<pre></pre>'.
It seems a heavy task |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Fri Mar 07, 2008 3:01 pm Post subject: |
|
|
Asuming you want to use <pre> for the example code in the documentation, using the Ddoc Example section might be a better option.
Quote: | It seems a heavy task Smile |
The wrapper does most of the work |
|
Back to top |
|
|
heromyth
Joined: 26 Nov 2006 Posts: 46
|
Posted: Sat Mar 08, 2008 12:29 am Post subject: |
|
|
Mike Wey wrote: | Asuming you want to use <pre> for the example code in the documentation, using the Ddoc Example section might be a better option. |
Ddoc Example just gives a mark of example. It does nothing about the ouput format.
Quote: | The wrapper does most of the work |
That's cool. |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
|
Back to top |
|
|
heromyth
Joined: 26 Nov 2006 Posts: 46
|
Posted: Tue Mar 11, 2008 9:03 pm Post subject: |
|
|
It's so nice
However, I can't get that when using DSSS to build gtkD :
|
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Wed Mar 12, 2008 12:31 pm Post subject: |
|
|
I hand edited the file before generating the documentation you see in the link, GtkD currently has the examples as just text. |
|
Back to top |
|
|
|