Skip to content

Latest commit

 

History

History
39 lines (35 loc) · 734 Bytes

README.md

File metadata and controls

39 lines (35 loc) · 734 Bytes

JSDoc syntax highlighting

Adds syntax highlighting to JSDoc comments (JS, TS, HTML, CSS, SCSS). Supports @example and fenced code blocks.

This is a modified version of this abandoned extension: JSDoc Markdown highlighting by @mjbvz.

Comments like these should have code syntax highlighting:

/**
 * hello world!
 *
 * @example
 * helloWorld()
 *
 * @param other Tag
 * 1 + 1
 *
 * @example
 * ```ts
 * function helloWorld<A = any>(arg: A) {}
 * ```
 *
 * Some `inline code`
 * @param x **bold** description
 *
 *
 * ```html
 * <a href="hello.world">Hello World</a>
 * ```
 *
 * ```scss
 * .hello { --hello: "world"; }
 * ```
 */
function helloWorld() {}