| 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 |
|