Hi Abighya,
Highlight function is in the block_svg.js. You can call the same function they call when you click on a block (it highlights the block with a yellow button when you select the block)
If that's what you want, you can change the
Blockly.BlockSvg.prototype.setHighlighted function in block_svg.js. Just replace it with below;
Blockly.BlockSvg.prototype.setHighlighted = function(highlighted) {
if (!this.rendered) {
return;
}
if (highlighted) {
this.addSelect();
/*
this.svgPath_.setAttribute('filter',
'url(#' + this.workspace.options.embossFilterId + ')');
this.svgPathLight_.style.display = 'none';
*/
} else {
this.removeSelect();
/*
Blockly.utils.removeAttribute(this.svgPath_, 'filter');
delete this.svgPathLight_.style.display;
*/
}
};
If you want to keep the yellow bubble and emboss both, uncomment the lines inside the above function :)