mryozo16 / jsdoc-toolkit

Automatically exported from code.google.com/p/jsdoc-toolkit
0 stars 0 forks source link

Make it possible to have several @example tags #152

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It may happen that you want to give more than one example for a given
block. For example:

/**
 * This is my sample.
 * @example
 * // Code for example 1
 * @example
 * // Code for example 2
 */

Currently, only the first example gets rendered. It would be nice to have
all @example codes together, in distinct <pre> blocks, so it is visually
easy to understand that we have two different examples.

The current way to do that is placing all the code together in a single
@example, which may cause some confusion when reading the code.

Original issue reported on code.google.com by fre...@gmail.com on 6 Jun 2008 at 4:07

GoogleCodeExporter commented 8 years ago
Committed in revision 620.

Original comment by micmath on 6 Jun 2008 at 4:32