CKEditor 4 reached its End of Life (EOL) in June 2023. From then on, it will receive no more updates, new features, bug fixes, and security patches. Visit CKEditor 5 Docs for the actively supported CKEditor or check Extended Support Model.
Report an issue
Class

CKEDITOR.plugins.codesnippet

class singleton

Global helpers and classes of the Code Snippet plugin.

For more information see the Code Snippet Guide.

Filtering

Methods

  • since 4.4.0

    setHighlighter( highlighter )

    Sets the custom syntax highlighter. See CKEDITOR.plugins.codesnippet.highlighter to learn how to register a custom highlighter.

    Note:

    • This method can only be called while initialising plugins (in one of the three callbacks).
    • This method is accessible through the editor.plugins.codesnippet namespace only.

    Parameters

    highlighter : highlighter