Skip to content

loadPrism

Code location

loadPrism(): Promise<any>

Load Prism.js and return a promise to the global Prism object. Can also use Prism after this promise resolves to get the same reference.

Returns

Promise<any>

See

Official Prism documentation