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

Code Block Pro – Beautiful Syntax Highlighting, version 1.13.0. 56 lines.

- Page: https://pluginprobe.com/plugins/code-block-pro/1.13.0/code/src/types.ts
- Raw: https://pluginprobe.com/plugins/code-block-pro/1.13.0/raw/src/types.ts
- Modified: 2023-02-06T00:28:04+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.13.0/code/src/types.ts#L10-L20`.

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

export type Lang = LangShiki | 'ansi';

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;
    editorHeight: string;
    headerType: string;
    headerString?: string;
    footerType: string;
    footerString?: string;
    footerLink?: string;
    enableMaxHeight?: boolean;
    seeMoreType?: string;
    seeMoreString?: string;
    seeMoreAfterLine?: string;
    seeMoreTransition?: boolean;
    footerLinkTarget?: boolean;
    disablePadding: boolean;
    startingLineNumber: string;
    lineNumbersWidth: number;
    enableHighlighting: boolean;
    lineHighlights: string;
    lineHighlightColor: string;
    enableBlurring: boolean;
    lineBlurs: string;
    removeBlurOnHover: boolean;
    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;
        };
    }
}

```
