Skip to content

feat: Add line(s) highlighting option #8621

@kinoute

Description

@kinoute

Summary

Rouge recently added a feature to highlight some lines in a code block. It is a mix of a diff file and code blocks: you have syntax highlighting on and you can make some line(s) green for example to let the users see what changed in your code.

It looks like this on Hugo:

Capture d’écran 2021-03-29 à 13 15 49

Motivation

I think it's a great feature when you write technical posts about projects coded from scratch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions