This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 253377 - Markdown support in php doc blocks
Summary: Markdown support in php doc blocks
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: PHPDoc (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal with 4 votes (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-09 10:07 UTC by pmaselkowski
Modified: 2015-07-09 10:07 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pmaselkowski 2015-07-09 10:07:01 UTC
phpDocumentor from which php doc blocks arrived has support for markdown syntax:

http://www.phpdoc.org/docs/latest/references/phpdoc/basic-syntax.html

Here is a quick look at PhpStorm, which has this this feature:

http://blog.jetbrains.com/phpstorm/2014/04/phpstorm-8-markdown-support-in-phpdoc-blocks/

This allows writing rich doc block without embedding html in comments which is *both* human and computer readable.

Example rich text (html) comment:

/**
 * Annotation for embedded document in mongo
 * <code>defaultClassName</code> will be used for getting empty properties,
 * but any type of embedded document can be stored within this field
 * Examples:
 * <ul>
 * 		<li><code>Embedded(Company\Product\EmbeddedClassName)</code>: Embed with namespaced class literal</li>
 * 		<li><code>Embedded(EmbeddedClassName)</code>: Embed with default class</li>
 * </ul>
 */

The same example using markdown syntax:

/**
 * Annotation for embedded document in mongo
 * `defaultClassName` will be used for getting empty properties,
 * but any type of embedded document can be stored within this field
 * Examples:
 * * `Embedded(Company\Product\EmbeddedClassName)`: Embed with namespaced class literal
 * * `Embedded(EmbeddedClassName)`: Embed with default class
 */