Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight specific text inside a code #339

Open
ameya730 opened this issue Jun 16, 2022 · 1 comment
Open

Highlight specific text inside a code #339

ameya730 opened this issue Jun 16, 2022 · 1 comment

Comments

@ameya730
Copy link

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";
}
@jaywcjlove
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants