Skip to content

Ability to add annotations to the code #236

@juli1

Description

@juli1

Is your feature request related to a problem? Please describe.

I would like to be able to add annotation to the source code (e.g. such as in a code review). Today, this is possible to change the color of a line, what I would like to be able is to add components/elements to the code (custom annotations).

Describe the solution you'd like

Have a function that, as for lineProps, let me specify a function that would return a component to attach to the formatted code.

For this function to work, wrapLines has to be true.

Describe alternatives you've considered

I believe it might be possible to hack the CSS to insert elements but that would come to limitations as to what CSS can do. Another way to do it is to modify the DOM using the function in lineProps but that would not be ideal/clean as well.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions