A Blockly plugin that highlights the content on the workspace.
yarn add @blockly/workspace-content-highlight
npm install @blockly/workspace-content-highlight --save
import * as Blockly from 'blockly';
import {ContentHighlight} from '@blockly/workspace-content-highlight';
// Inject Blockly.
const workspace = Blockly.inject('blocklyDiv', {
toolbox: toolboxCategories,
});
// Initialize plugin.
const contentHighlight = new ContentHighlight(workspace);
contentHighlight.init();
init
: Initializes the content highlight.dispose
: Disposes of content highlight.
Apache 2.0