react-codemirror
react-codemirror copied to clipboard
Highlight specific text inside a code
Hi, I am using react-codemirror to show case php code in my application. Is it possible to highlight specific text in the code ?
Example: In the below code, is it possible to highlight echo with a yellow background
<?php
$colors = array("red", "green", "blue", "yellow");
foreach ($colors as $value) {
echo "value";
}
@ameya730 https://codemirror.net/examples/lang-package/