{"size": 480, "ext": "js", "max_stars_repo_path": "plugins/code-syntax-highlight/src/js/indexAll.js", "max_stars_repo_name": "MasoudZarjani/tui.editor", "max_stars_repo_stars_event_min_datetime": "2021-07-10T08:27:08.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-23T05:57:32.000Z", "max_issues_repo_path": "plugins/code-syntax-highlight/src/js/indexAll.js", "max_issues_repo_name": "MasoudZarjani/tui.editor", "max_issues_repo_issues_event_min_datetime": "2021-02-17T19:32:10.000Z", "max_issues_repo_issues_event_max_datetime": "2021-02-17T19:32:10.000Z", "max_forks_repo_path": "plugins/code-syntax-highlight/src/js/indexAll.js", "max_forks_repo_name": "MasoudZarjani/tui.editor", "max_forks_repo_forks_event_min_datetime": "2021-01-11T22:34:53.000Z", "max_forks_repo_forks_event_max_datetime": "2021-04-23T17:10:25.000Z"}
{"max_stars_count": 4, "max_issues_count": 1, "max_forks_count": 4, "avg_line_length": 32.0, "max_line_length": 92, "alphanum_fraction": 0.75625}
/**
 * @fileoverview Implements code syntax highlight plugin for 'all' bundle file served to CDN
 * @author NHN FE Development Lab <dl_javascript@nhn.com>
 */
import hljs from 'highlight.js';
import { registerCodeBlockReplacer } from './helper';

/**
 * Code syntax highlight plugin to import all languages
 * @param {Editor|Viewer} editor - instance of Editor or Viewer
 */
export default function codeSyntaxHighlightPlugin(editor) {
  registerCodeBlockReplacer(editor, hljs);
}
