# betterdocs/4.9.5/react-src/gutenberg/blocks/code-snippet/src/constants.js

BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ &amp; Chatbot, version 4.9.5. 48 lines.

- Page: https://pluginprobe.com/plugins/betterdocs/4.9.5/code/react-src/gutenberg/blocks/code-snippet/src/constants.js
- Raw: https://pluginprobe.com/plugins/betterdocs/4.9.5/raw/react-src/gutenberg/blocks/code-snippet/src/constants.js
- Modified: 2026-10-12T10:07:14+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/betterdocs/4.9.5/code/react-src/gutenberg/blocks/code-snippet/src/constants.js#L10-L20`.

```javascript
import { __ } from "@wordpress/i18n";

// Wrapper constants
export const CODE_SNIPPET_WRAPPER_MARGIN = "codeSnippetWrapperMargin";
export const CODE_SNIPPET_WRAPPER_PADDING = "codeSnippetWrapperPadding";

// Header constants
export const CODE_SNIPPET_HEADER_PADDING = "codeSnippetHeaderPadding";

// Line Numbers constants
export const CODE_SNIPPET_LINE_NUMBERS_PADDING = "codeSnippetLineNumbersPadding";

// Code Content constants
export const CODE_SNIPPET_CODE_PADDING = "codeSnippetCodePadding";

// Language Options
export const LANGUAGE_OPTIONS = [
    { label: __("JavaScript", "betterdocs"), value: "javascript" },
    { label: __("PHP", "betterdocs"), value: "php" },
    { label: __("Python", "betterdocs"), value: "python" },
    { label: __("Java", "betterdocs"), value: "java" },
    { label: __("Ruby", "betterdocs"), value: "ruby" },
    { label: __("cURL", "betterdocs"), value: "curl" },
    { label: __("Bash", "betterdocs"), value: "bash" },
    { label: __("JSON", "betterdocs"), value: "json" },
    { label: __("YAML", "betterdocs"), value: "yaml" },
    { label: __("HTML", "betterdocs"), value: "html" },
    { label: __("CSS", "betterdocs"), value: "css" },
    { label: __("SQL", "betterdocs"), value: "sql" },
    { label: __("XML", "betterdocs"), value: "xml" },
    { label: __("C++", "betterdocs"), value: "cpp" },
    { label: __("C#", "betterdocs"), value: "csharp" },
    { label: __("Go", "betterdocs"), value: "go" },
    { label: __("Rust", "betterdocs"), value: "rust" },
    { label: __("Swift", "betterdocs"), value: "swift" },
    { label: __("Kotlin", "betterdocs"), value: "kotlin" },
    { label: __("TypeScript", "betterdocs"), value: "typescript" },
];

// Theme Options
export const THEME_OPTIONS = [
    { label: __("Light", "betterdocs"), value: "light" },
    { label: __("Dark", "betterdocs"), value: "dark" },
];

// Default Code Placeholder
export const DEFAULT_CODE_PLACEHOLDER = `// Paste or type your code here…`;

```
