Re: ddoc: Can I escape a colon?

2017-02-26 Thread Alexandru Ermicioi via Digitalmars-d-learn
On Thursday, 23 February 2017 at 21:04:39 UTC, Nick Sabalausky (Abscissa) wrote: Suppose I want ddoc output to include this line: -- Note: Blah blabbety blah -- But the colon causes "Note" to be considered a section header. Is there a way to escape the ":" so that it's

Re: ddoc: Can I escape a colon?

2017-02-23 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-learn
On 02/23/2017 10:36 PM, Adam D. Ruppe wrote: On Friday, 24 February 2017 at 02:50:27 UTC, Nick Sabalausky (Abscissa) wrote: What I'd kinda like to do is put together a D doc generator that uses, uhh, probably markdown. My dpldocs.info generator continues to progress and I'm almost ready to

Re: ddoc: Can I escape a colon?

2017-02-23 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 24 February 2017 at 02:50:27 UTC, Nick Sabalausky (Abscissa) wrote: What I'd kinda like to do is put together a D doc generator that uses, uhh, probably markdown. My dpldocs.info generator continues to progress and I'm almost ready to call it beta and let other people use it.

Re: ddoc: Can I escape a colon?

2017-02-23 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-learn
On 02/23/2017 04:34 PM, Ali Çehreli wrote: (None of the following is tested.) a) Try using the following macro: COLON = And then use "Note$(COLON) Blah". Thanks, that works. c) Another option: NOTE = Note $0 Then use "$(NOTE Blah)" Actually, that's more or less what I was

Re: ddoc: Can I escape a colon?

2017-02-23 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-learn
On 02/23/2017 04:49 PM, H. S. Teoh via Digitalmars-d-learn wrote: I'm becoming more and more convinced that software that tries to be smart ends up being even dumber than before. I've been convinced of that for a long time ;) Not just software either. Anything. My car does idiotic "smart"

Re: ddoc: Can I escape a colon?

2017-02-23 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-learn
On 02/23/2017 04:51 PM, Adam D. Ruppe wrote: On Thursday, 23 February 2017 at 21:39:11 UTC, H. S. Teoh Apparently COLON is defined to be ':' in the default ddoc macros, so you needn't define it yourself. Oh yeah. Still, barf. Luckily in my case, the "Word:" part is already generated inside

Re: ddoc: Can I escape a colon?

2017-02-23 Thread H. S. Teoh via Digitalmars-d-learn
On Thu, Feb 23, 2017 at 01:39:11PM -0800, H. S. Teoh via Digitalmars-d-learn wrote: [...] > Nah, that's overkill. This works: > > Note$(COLON) blah blah blah > > Apparently COLON is defined to be ':' in the default ddoc macros, so > you needn't define it yourself. [...] Bah, I was wrong,

Re: ddoc: Can I escape a colon?

2017-02-23 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 23 February 2017 at 21:39:11 UTC, H. S. Teoh Apparently COLON is defined to be ':' in the default ddoc macros, so you needn't define it yourself. Oh yeah. Still, barf.

Re: ddoc: Can I escape a colon?

2017-02-23 Thread H. S. Teoh via Digitalmars-d-learn
On Thu, Feb 23, 2017 at 09:35:41PM +, Adam D. Ruppe via Digitalmars-d-learn wrote: > On Thursday, 23 February 2017 at 21:17:33 UTC, H. S. Teoh wrote: > > _Note: Blah blabbety blah > > Nope. > > Ddoc considers [A-Za-z_]+: to be a section header. You can trick it by > doing something like

Re: ddoc: Can I escape a colon?

2017-02-23 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 23 February 2017 at 21:17:33 UTC, H. S. Teoh wrote: _Note: Blah blabbety blah Nope. Ddoc considers [A-Za-z_]+: to be a section header. You can trick it by doing something like /++ Note: ass +/ Yes, the html entity for a space. That trick's ddoc's stupid parser while

Re: ddoc: Can I escape a colon?

2017-02-23 Thread Ali Çehreli via Digitalmars-d-learn
On 02/23/2017 01:04 PM, Nick Sabalausky (Abscissa) wrote: Suppose I want ddoc output to include this line: -- Note: Blah blabbety blah -- But the colon causes "Note" to be considered a section header. Is there a way to escape the ":" so that it's displayed as expected,

Re: ddoc: Can I escape a colon?

2017-02-23 Thread H. S. Teoh via Digitalmars-d-learn
On Thu, Feb 23, 2017 at 04:04:39PM -0500, Nick Sabalausky (Abscissa) via Digitalmars-d-learn wrote: > Suppose I want ddoc output to include this line: > > -- > Note: Blah blabbety blah > -- > > But the colon causes "Note" to be considered a section header. Is > there a