You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Indicates whether or not to show line numbers */
23
-
showLineNumbers: boolean;
23
+
showLineNumbers?: boolean;
24
24
/**For choosing starting line**/
25
-
startingLineNumber :number;
25
+
startingLineNumber?: number;
26
26
/** The code to be formatted */
27
27
text: string;
28
28
/** A custom theme to be applied, implements the `CodeBlockTheme` interface. You can also pass pass a precomposed theme into here. For available themes. [See THEMES.md](https://github.com/rajinwonderland/react-code-blocks/blob/master/THEMES.md) */
29
29
theme?: Theme;
30
30
31
31
/** If true, wrap long lines */
32
-
wrapLongLines: boolean;
32
+
wrapLongLines?: boolean;
33
33
34
34
/**
35
35
* Lines to highlight comma delimited.
@@ -39,7 +39,7 @@ export interface CodeProps {
39
39
* - To highlight a group of lines `highlight="1-5"`
40
40
* - To highlight multiple groups `highlight="1-5,7,10,15-20"`
/**startingLineNumber - if showLineNumbers is enabled the line numbering will start from here.**/
15
-
startingLineNumber :number;
16
-
17
-
/** A custom theme to be applied, implements the `CodeBlockTheme` interface. You can also pass pass a precomposed theme into here. For available themes. [See THEMES.md](https://github.com/rajinwonderland/react-code-blocks/blob/master/THEMES.md) */
18
-
theme?: Theme;
19
-
/** The element or custom react component to use in place of the default `span` tag */
20
-
lineNumberContainerStyle?: {};
7
+
exportinterfaceCodeBlockPropsextendsBaseProps{
21
8
/** The style object to apply to the `CodeBlock` text directly i.e `fontSize` and such */
22
-
23
9
codeBlockStyle?: {};
24
10
/** The style object that accesses the style parameter on the `codeTagProps` property on the `Code` component */
25
11
codeContainerStyle?: {};
26
-
27
-
/** The style object that will be combined with the top level style on the pre tag, styles here will overwrite earlier styles. */
28
-
customStyle?: {};
29
-
30
-
/** If true, wrap long lines */
31
-
wrapLongLines: boolean;
32
-
33
-
/**
34
-
* Lines to highlight comma delimited.
35
-
* Example uses:
36
-
37
-
* - To highlight one line `highlight="3"`
38
-
* - To highlight a group of lines `highlight="1-5"`
39
-
* - To highlight multiple groups `highlight="1-5,7,10,15-20"`
/** A custom theme to be applied, implements the `CodeBlockTheme` interface. You can also pass pass a precomposed theme into here. For available themes. [See THEMES.md](https://github.com/rajinwonderland/react-code-blocks/blob/master/THEMES.md) */
11
-
theme: Theme;
12
-
13
-
/** The code to be formatted */
14
-
text: string;
15
-
16
-
/** If true, the component render a `CodeBlock` instead of a `Code` component */
0 commit comments