Skip to content

add line highlighting #18

Merged
Simek merged 3 commits intodevfrom
line-highlighting
Sep 14, 2020
Merged

add line highlighting #18
Simek merged 3 commits intodevfrom
line-highlighting

Conversation

@teikjun
Copy link
Member

@teikjun teikjun commented Sep 14, 2020

This PR introduces line highlighting, this resolves #17.

The objectivec codeblock was not parsing due to a syntax error (a space was missing).

Preview

image

Remarks

The original website does not display the line highlighting (as shown in the screenshot below), so I just used --light as the color in CSS (as shown in the screenshot above)

image

Copy link

@Simek Simek left a comment

Choose a reason for hiding this comment

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

That is so nice, thank you for resolving this issue! 👍

@Simek Simek merged commit bc4bd04 into dev Sep 14, 2020
Simek pushed a commit that referenced this pull request Oct 20, 2020
* add line highlighting with the correct syntax

* use css to display line highlighting

* move css for line highlighting into page overrides section
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.

Add lines highlight feature to Prism code blocks

2 participants