digitalmars.D - DDoc enhancements?
- Derek Parnell (46/46) Sep 20 2005 I like that way one can define new section headers just by using a word
- Walter Bright (1/1) Sep 20 2005 Those are both good suggestions.
- Hasan Aljudy (5/8) Sep 22 2005 Doesn't that defy the point of simplifying the ddoc format and getting
- Walter Bright (4/12) Sep 22 2005 The idea is that such will be available, but will be entirely unnecessar...
- Derek Parnell (9/18) Sep 22 2005 It is possible to simplify things too much, such that they are no longer
- James Dunne (3/23) Sep 23 2005 Maybe you could highlight a set of differences between your own embedded...
- Uwe Salomon (22/26) Sep 20 2005 It would also be possible to accept all input lines of the form "Some
I like that way one can define new section headers just by using a word followed by a colon. However, can I suggest that you replace single underscores with a space when the output is generated. That way, "Change_log:" with appear as "Change log" which looks better. I'd also like to suggest an expansion of the macro concept. If a macro is defined in the format ... NAME() = (prefix)(suffix) then when it is used as ... $(NAME some text goes here) the output will be ... prefixsome text goes heresuffix Note that both 'prefix' and 'suffix' could be empty strings. This will allow a form of generic and portable output forms. For example... /************* Macros: LIST() = (<ul>)(</ul>) BOLD() = (<strong>)(</strong>) ITALIC() = (<i>)(</i>) ITEM() = (<li>)(</li>) BREAK = <br/> TITLE() = (<span class=title>)(</span>) */ /************* Change_Log: $(TITLE A list of changes and fixes that have been made.) $(BOLD -- $(ITALIC v2.10) -- 30/Sep/2005) $(LIST $(ITEM ** $(BOLD ENH: ) For Windows environments, command line files can now use either "/" or "\" as path separator characters.) $(ITEM ** $(BOLD ENH: ) The linker program is now used directly rather than being invoked via DMD. ) $(ITEM ** $(BOLD ENH: ) It is now possible to specify compiler command line options inside the source code by using a the new pragma COMPILE_OPTS. $(BREAK) In this case, it will compile the source that contains this pragma as a separate step using the supplied options in the pragma statement. ) ) ***********/ -- Derek (skype: derek.j.parnell) Melbourne, Australia 20/09/2005 5:10:52 PM
Sep 20 2005
Walter Bright wrote:Those are both good suggestions.Doesn't that defy the point of simplifying the ddoc format and getting rid of things like param and watnot?
Sep 22 2005
"Hasan Aljudy" <hasan.aljudy gmail.com> wrote in message news:dgum94$1gk5$1 digitaldaemon.com...Walter Bright wrote:The idea is that such will be available, but will be entirely unnecessary for most uses.Those are both good suggestions.Doesn't that defy the point of simplifying the ddoc format and getting rid of things like param and watnot?
Sep 22 2005
On Thu, 22 Sep 2005 10:31:37 -0600, Hasan Aljudy wrote:Walter Bright wrote:It is possible to simplify things too much, such that they are no longer useful. At the moment, IMO, DDoc is too simple for me to want to use it. It actually causes more work for me than the embedded documentation technique that I currently employ. -- Derek Parnell Melbourne, Australia 23/09/2005 6:38:14 AMThose are both good suggestions.Doesn't that defy the point of simplifying the ddoc format and getting rid of things like param and watnot?
Sep 22 2005
Derek Parnell wrote:On Thu, 22 Sep 2005 10:31:37 -0600, Hasan Aljudy wrote:Maybe you could highlight a set of differences between your own embedded doc technique and DDoc as it stands.Walter Bright wrote:It is possible to simplify things too much, such that they are no longer useful. At the moment, IMO, DDoc is too simple for me to want to use it. It actually causes more work for me than the embedded documentation technique that I currently employ.Those are both good suggestions.Doesn't that defy the point of simplifying the ddoc format and getting rid of things like param and watnot?
Sep 23 2005
I like that way one can define new section headers just by using a word followed by a colon. However, can I suggest that you replace single underscores with a space when the output is generated. That way, "Change_log:" with appear as "Change log" which looks better.It would also be possible to accept all input lines of the form "Some text:" as section headers, if they follow an empty line. Thus if a user wants to use a colon in his text, he has to use one of these three ways: ---- Write some text before it is a possibility, of course: ---- Write some text: behind it is also ok. ---- If he accidently writes something like this: ---- Prototype is: ---- then he will see the fat section in the output and can simply adjust the input to: ---- Prototype is: ---- Ciao uwe
Sep 20 2005