PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.5
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.5
4.9.5 4.9.4 4.9.3 4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 All 203 releases
betterdocs / react-src / gutenberg / blocks / code-snippet / src / constants.js

constants.js in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.9.5, at react-src/gutenberg/blocks/code-snippet/src/constants.js

48 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { __ } from "@wordpress/i18n";
2
3 // Wrapper constants
4 export const CODE_SNIPPET_WRAPPER_MARGIN = "codeSnippetWrapperMargin";
5 export const CODE_SNIPPET_WRAPPER_PADDING = "codeSnippetWrapperPadding";
6
7 // Header constants
8 export const CODE_SNIPPET_HEADER_PADDING = "codeSnippetHeaderPadding";
9
10 // Line Numbers constants
11 export const CODE_SNIPPET_LINE_NUMBERS_PADDING = "codeSnippetLineNumbersPadding";
12
13 // Code Content constants
14 export const CODE_SNIPPET_CODE_PADDING = "codeSnippetCodePadding";
15
16 // Language Options
17 export const LANGUAGE_OPTIONS = [
18 { label: __("JavaScript", "betterdocs"), value: "javascript" },
19 { label: __("PHP", "betterdocs"), value: "php" },
20 { label: __("Python", "betterdocs"), value: "python" },
21 { label: __("Java", "betterdocs"), value: "java" },
22 { label: __("Ruby", "betterdocs"), value: "ruby" },
23 { label: __("cURL", "betterdocs"), value: "curl" },
24 { label: __("Bash", "betterdocs"), value: "bash" },
25 { label: __("JSON", "betterdocs"), value: "json" },
26 { label: __("YAML", "betterdocs"), value: "yaml" },
27 { label: __("HTML", "betterdocs"), value: "html" },
28 { label: __("CSS", "betterdocs"), value: "css" },
29 { label: __("SQL", "betterdocs"), value: "sql" },
30 { label: __("XML", "betterdocs"), value: "xml" },
31 { label: __("C++", "betterdocs"), value: "cpp" },
32 { label: __("C#", "betterdocs"), value: "csharp" },
33 { label: __("Go", "betterdocs"), value: "go" },
34 { label: __("Rust", "betterdocs"), value: "rust" },
35 { label: __("Swift", "betterdocs"), value: "swift" },
36 { label: __("Kotlin", "betterdocs"), value: "kotlin" },
37 { label: __("TypeScript", "betterdocs"), value: "typescript" },
38 ];
39
40 // Theme Options
41 export const THEME_OPTIONS = [
42 { label: __("Light", "betterdocs"), value: "light" },
43 { label: __("Dark", "betterdocs"), value: "dark" },
44 ];
45
46 // Default Code Placeholder
47 export const DEFAULT_CODE_PLACEHOLDER = `// Paste or type your code here…`;
48