galloween / jsdoc-highlight-code

JSDoc syntax highlighting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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() {}

About

JSDoc syntax highlighting

License:MIT License


Languages

Language:TypeScript 100.0%