I have a simple method in the API that allows me to search for objects using JSONPath. Since its syntax is almost unfamiliar with junior developers, I decided to give a few examples in a JSDoc comment. However, here's the catch, the @ sign is seen as the start of a new jsdoc tag, and so the description gets corrupted.
Question: how to make NetBeans (or jsdoc in general) ignore @ signs inside a specific code fragment. Preferably in the @example block.
So, this code will appear unmodified in the tooltip:
$..book[?(@.price<10)] // - filter all books cheaper than 10
In addition, @example , <code> , <pre> - do not help.
Html entity @ converts to @ in a tooltip, but it does not look readable in the code itself ( $..book[?(@.price<10)] ) and works only in the jsdoc main text ...
source share