PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.9.0
Code Block Pro – Beautiful Syntax Highlighting v1.9.0
1.27.1 1.27.2 1.27.3 1.27.4 1.27.5 1.27.6 1.27.7 1.28.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3 trunk 1.1.0 1.10.0 1.11.0 1.11.1 All 63 releases
code-block-pro / src / types.ts

types.ts in Code Block Pro – Beautiful Syntax Highlighting 1.9.0, at src/types.ts

48 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { Lang, Theme } from 'shiki';
2
3 export type Attributes = {
4 code: string;
5 codeHTML: string;
6 language: Lang;
7 theme: Theme;
8 align: 'wide' | 'full';
9 bgColor: string;
10 textColor: string;
11 fontSize: string;
12 fontFamily: string;
13 lineHeight: string;
14 lineNumbers: boolean;
15 clampFonts: boolean;
16 headerType: string;
17 headerString?: string;
18 footerType: string;
19 footerString?: string;
20 footerLink?: string;
21 footerLinkTarget?: boolean;
22 disablePadding: boolean;
23 startingLineNumber: string;
24 lineNumbersWidth: number;
25 enableHighlighting: boolean;
26 lineHighlights: string;
27 lineHighlightColor: string;
28 enableBlurring: boolean;
29 lineBlurs: string;
30 removeBlurOnHover: boolean;
31 frame: boolean;
32 renderType: string;
33 label: string;
34 copyButton: boolean;
35 };
36 export interface AttributesPropsAndSetter {
37 attributes: Attributes;
38 setAttributes: (attrs: Partial<Attributes>) => void;
39 }
40
41 declare global {
42 interface Window {
43 codeBlockPro: {
44 pluginUrl: string;
45 };
46 }
47 }
48