Differential D12301 Diff 29532 src/applications/config/option/PhabricatorSyntaxHighlightingConfigOptions.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/option/PhabricatorSyntaxHighlightingConfigOptions.php
| Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | return array( | ||||
| ->addExample( | ->addExample( | ||||
| '{"@/httpd\\.conf@": "apacheconf"}', | '{"@/httpd\\.conf@": "apacheconf"}', | ||||
| pht('Highlight httpd.conf as "apacheconf".')) | pht('Highlight httpd.conf as "apacheconf".')) | ||||
| ->addExample( | ->addExample( | ||||
| '{"@\\.([^.]+)\\.bak$@": 1}', | '{"@\\.([^.]+)\\.bak$@": 1}', | ||||
| pht( | pht( | ||||
| "Treat all '*.x.bak' file as '.x'. NOTE: We map to capturing group ". | "Treat all '*.x.bak' file as '.x'. NOTE: We map to capturing group ". | ||||
| "1 by specifying the mapping as '1'")), | "1 by specifying the mapping as '1'")), | ||||
| $this->newOption( | |||||
| 'style.monospace', | |||||
| 'string', | |||||
| null) | |||||
| ->setLocked(true) | |||||
| ->setSummary( | |||||
| pht('Default monospace font.')) | |||||
| ->setDescription( | |||||
| pht( | |||||
| "Set the default monospaced font style for users who haven't set ". | |||||
| "a custom style.")), | |||||
| $this->newOption( | |||||
| 'style.monospace.windows', | |||||
| 'string', | |||||
| null) | |||||
| ->setLocked(true) | |||||
| ->setSummary( | |||||
| pht('Default monospace font for clients on Windows.')) | |||||
| ->setDescription( | |||||
| pht( | |||||
| "Set the default monospaced font style for users who haven't set ". | |||||
| "a custom style and are using Windows.")), | |||||
| ); | ); | ||||
| } | } | ||||
| } | } | ||||