Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

[highlight-code] display optionally line numbers #115

Closed
peterpeterparker opened this issue May 14, 2019 · 2 comments
Closed

[highlight-code] display optionally line numbers #115

peterpeterparker opened this issue May 14, 2019 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers highlight-code Highlight code web component
Milestone

Comments

@peterpeterparker
Copy link
Contributor

peterpeterparker commented May 14, 2019

Description

Moreover than being able to highlight specific rows when using the code component (which is already implemented) it would be interesting to have an option to display automatically the line number at the begin of each row

0. export class Something() {
1.
2.    const hello: string = 'Yolo';
3. }

Tech info

The highlight-component finds place in webcomponents/highlight-code/. This feature should probably be implemented in the same way as the addHighlight() function.

Get started

Interested to get involved and to try to implement this feature? Ping me if you have any questions or need help to get started, David (@peterpeterparker or twitter.com/daviddalbusco) 😃

@peterpeterparker peterpeterparker added enhancement New feature or request highlight-code Highlight code web component labels May 14, 2019
@peterpeterparker peterpeterparker self-assigned this May 14, 2019
@peterpeterparker peterpeterparker changed the title Add an option display a line number at the begin of each slides in the code component Add an option display a line number at the begin of each lines in the code component May 14, 2019
@peterpeterparker peterpeterparker added the good first issue Good for newcomers label Jul 25, 2019
@peterpeterparker peterpeterparker removed their assignment Jul 25, 2019
@peterpeterparker peterpeterparker changed the title Add an option display a line number at the begin of each lines in the code component [code] Add an option display a line number at the begin of each lines in the code component Jul 25, 2019
@peterpeterparker peterpeterparker changed the title [code] Add an option display a line number at the begin of each lines in the code component [highlight-code] Add an option display a line number at the begin of each lines in the code component Jul 25, 2019
@peterpeterparker peterpeterparker changed the title [highlight-code] Add an option display a line number at the begin of each lines in the code component [highlight-code] display optionally line numbers Jul 26, 2019
@peterpeterparker
Copy link
Contributor Author

peterpeterparker commented Jul 26, 2019

@StefanNieuwenhuis will give a try 👍

@peterpeterparker
Copy link
Contributor Author

@StefanNieuwenhuis solved this feature and an update of the component has been published to npmjs 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers highlight-code Highlight code web component
Projects
None yet
Development

No branches or pull requests

1 participant