Skip to content

Add support for highlighting source code fragments - #62

Merged
paodb merged 3 commits into
masterfrom
feat-code-block-highlight
Aug 15, 2023
Merged

Add support for highlighting source code fragments#62
paodb merged 3 commits into
masterfrom
feat-code-block-highlight

Conversation

@javier-godoy

@javier-godoyjavier-godoy commented Aug 15, 2023

Copy link
Copy Markdown
Member

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-godoyforce-pushed the feat-code-block-highlight branch from 0afeb4b to 7f210f1CompareAugust 15, 2023 19:27
@javier-godoy
javier-godoy marked this pull request as ready for review August 15, 2023 19:29

@paodbpaodb left a comment

Copy link
Copy Markdown
Member

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 masterAug 15, 2023
@paodb
paodb deleted the feat-code-block-highlight branch August 15, 2023 19:37
Sign up for freeto 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.

2 participants

@javier-godoy@paodb