Skip to content

customCursor

customCursor(): BasicExtension

Defined in: extensions/cursor/custom.ts:21

Extension that overrides the browser’s default cursor.

Due to a known issue, it’s not recommended to use this extension with wordWrap enabled.

Use the --pce-cursor CSS variable to change the cursor’s color and the .pce-cursor selector for other styling.

Requires the cursorPosition extension and styling from prism-code-editor/cursor.css to work.

BasicExtension