in reply to Embedding pod in C
To hide it from C, use #if 0 / #endif, not comments. Then you don't have to worry about any stray */ characters or C comments within the documentation.
I understand your concern about indenting. Why are your functions indented in the file? Or do you mean you are putting POD within functions?
Having a pre-indent for everything makes it harder to ensure that normal paragraphs are at the right level as distinct from verbatim paragraphs which are indented more than that pre-set. I think you are asking for trouble, unless you come up with a more comprehensive approach.
If nobody has such a thing already, I suppose you will be designing it. I look forward to that thread!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Embedding pod in C
by jpl (Monk) on May 18, 2011 at 15:27 UTC | |
by JavaFan (Canon) on May 18, 2011 at 16:20 UTC | |
by jpl (Monk) on May 18, 2011 at 17:13 UTC | |
by John M. Dlugosz (Monsignor) on May 18, 2011 at 18:49 UTC | |
by jpl (Monk) on May 18, 2011 at 17:25 UTC |