Skip to content

Conversation

@javier-godoy
Copy link
Member

@javier-godoy javier-godoy commented Aug 15, 2023

Add support for highlighting source code fragments in order to emphasize a section of the code snippet. A block is delimited by // begin-block name and // end-block comments. Nested blocks are not supported.

    // begin-block first
    Div first = new Div(new Text("First"));
    SourceCodeViewer.highlightOnHover(first, "first");
    add(first);
    // end-block

image

@javier-godoy javier-godoy requested review from mlopezFC and paodb August 15, 2023 19:25
@javier-godoy javier-godoy force-pushed the feat-code-block-highlight branch from 0afeb4b to 7f210f1 Compare August 15, 2023 19:27
@javier-godoy javier-godoy marked this pull request as ready for review August 15, 2023 19:29
Copy link
Member

@paodb paodb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw it in action and I think this is a great improvement!

@paodb paodb merged commit f56d1c6 into master Aug 15, 2023
@paodb paodb deleted the feat-code-block-highlight branch August 15, 2023 19:37
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

Successfully merging this pull request may close these issues.

3 participants