bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.62k stars 94 forks source link

Render HTML in annotation descriptions #1924

Open driesvints opened 3 years ago

driesvints commented 3 years ago

Feature description or problem with existing feature It'd be great if HTML in annotations from DocBlocks were rendered in the preview. Atm the HTML tags are scattered through the content making it hard to read.

Describe the solution you'd like Render the HTML so the description becomes more readable.

Additional context For example, take the $status property here: https://github.com/stripe/stripe-php/blob/03cd6b5c1c4fc9087ddd1dd046457bff274294d6/lib/Subscription.php#L46

This renders the following if you CMD+hover over the status call:

Screen Shot 2021-08-20 at 11 49 06

tianyiw2013 commented 2 years ago

@bmewburn hi, check this out

/**
 * test
 * 
 * br<br>br
 * 
 * <b>bold</b>
 * <p>paragraph</p>
 * <i>italic</i>
 */
function test()
{
}

aaa

bbb

zzzz zzzz2