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

Commit d72aa0b

Browse files
feat(highlight-code): add line numbers
1 parent 61ebbd9 commit d72aa0b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

docs/docs/components/app-components-highlight-code/app-components-highlight-code.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ The `<deckgo-highlight-code/>` could be styled using the following CSS4 variable
9191
| --deckgo-highlight-code-font-size | | The size of the font for the code |
9292
| --deckgo-highlight-code-font-family | monospace | The family of the font for the code |
9393
| --deckgo-highlight-code-line-background | #3880ff | The background of the lines you wish to highlight |
94+
| --deckgo-highlight-code-line-divider | #999999 | The color of the line numbers |
95+
| --deckgo-highlight-code-line-number | #999999 | The color of the divider between line numbers and code |
9496
| --deckgo-highlight-code-line-padding | | A padding for each lines you wish to highlight |
9597
| --deckgo-highlight-code-line-border-top | | The border-top property of the lines you wish to highlight |
9698
| --deckgo-highlight-code-direction | ltr | The direction of the displayed code |

webcomponents/highlight-code/src/components/highlight-code/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
| `hideAnchor` | `hide-anchor` | | `boolean` | `true` |
1616
| `highlightLines` | `highlight-lines` | | `string` | `undefined` |
1717
| `language` | `language` | | `string` | `'javascript'` |
18+
| `lineNumbers` | `line-numbers` | | `boolean` | `true` |
1819
| `src` | `src` | | `string` | `undefined` |
1920

2021

0 commit comments

Comments
 (0)