# code-block-pro/1.5.0/src/types.ts

Code Block Pro – Beautiful Syntax Highlighting, version 1.5.0. 35 lines.

- Page: https://pluginprobe.com/plugins/code-block-pro/1.5.0/code/src/types.ts
- Raw: https://pluginprobe.com/plugins/code-block-pro/1.5.0/raw/src/types.ts
- Modified: 2022-09-05T14:31:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/code-block-pro/1.5.0/code/src/types.ts#L10-L20`.

```typescript
import { Lang, Theme } from 'shiki';

export type Attributes = {
    code: string;
    codeHTML: string;
    language: Lang;
    theme: Theme;
    align: 'wide' | 'full';
    bgColor: string;
    textColor: string;
    fontSize: string;
    fontFamily: string;
    lineHeight: string;
    lineNumbers: boolean;
    clampFonts: boolean;
    headerType: string;
    startingLineNumber: number;
    frame: boolean;
    renderType: string;
    label: string;
    copyButton: boolean;
};
export interface AttributesPropsAndSetter {
    attributes: Attributes;
    setAttributes: (attrs: Partial<Attributes>) => void;
}

declare global {
    interface Window {
        codeBlockPro: {
            pluginUrl: string;
        };
    }
}

```
