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

Line highlight support in static code blocks #500

Open
JanSimek opened this issue Feb 4, 2024 · 0 comments
Open

Line highlight support in static code blocks #500

JanSimek opened this issue Feb 4, 2024 · 0 comments
Labels
enhancement Improvement request

Comments

@JanSimek
Copy link

JanSimek commented Feb 4, 2024

Inspired by: https://retype.com/components/code-block/#line-highlighting

Highlight a specific line or range of lines in a code block component using the line highlighting syntax.

After the opening of a code block component, add a space and then start your line highlighting configuration with a # character. For instance, to highlight the first line, use #1.

```java #3-4
public void hello() {
    System.out.println("NOT highlighted");
    System.out.println("This line is highlighted!");
    System.out.println("This line is highlighted!");
    System.out.println("NOT highlighted");
}
```

@jfcere jfcere added the enhancement Improvement request label May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement request
Projects
None yet
Development

No branches or pull requests

2 participants