From dad29171fffb764e3c66253f57c259204dc2375a Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Thu, 18 Jun 2015 22:18:08 +1000 Subject: [PATCH] Add more languages to syntax highlighting options Summary: Fixes T8589. Adds a bunch of new languages to the syntax highlighting config options so that they are supported by #paste. Test Plan: Saw new filetypes in Paste. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T8589 Differential Revision: https://secure.phabricator.com/D13337 --- ...abricatorSyntaxHighlightingConfigOptions.php | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/applications/config/option/PhabricatorSyntaxHighlightingConfigOptions.php b/src/applications/config/option/PhabricatorSyntaxHighlightingConfigOptions.php index c2511b0f8e..3a5305dde6 100644 --- a/src/applications/config/option/PhabricatorSyntaxHighlightingConfigOptions.php +++ b/src/applications/config/option/PhabricatorSyntaxHighlightingConfigOptions.php @@ -20,7 +20,6 @@ final class PhabricatorSyntaxHighlightingConfigOptions } public function getOptions() { - $caches_href = PhabricatorEnv::getDocLink('Managing Caches'); return array( @@ -74,31 +73,43 @@ final class PhabricatorSyntaxHighlightingConfigOptions 'c' => 'C', 'coffee-script' => 'CoffeeScript', 'cpp' => 'C++', + 'csharp' => 'C#', 'css' => 'CSS', 'd' => 'D', 'diff' => 'Diff', 'django' => 'Django Templating', + 'docker' => 'Docker', 'erb' => 'Embedded Ruby/ERB', 'erlang' => 'Erlang', 'go' => 'Golang', 'groovy' => 'Groovy', 'haskell' => 'Haskell', 'html' => 'HTML', + 'http' => 'HTTP', 'invisible' => 'Invisible', 'java' => 'Java', 'js' => 'Javascript', 'json' => 'JSON', + 'make' => 'Makefile', 'mysql' => 'MySQL', + 'nginx' => 'Nginx Configuration', 'objc' => 'Objective-C', 'perl' => 'Perl', 'php' => 'PHP', + 'postgresql' => 'PostgreSQL', + 'pot' => 'Gettext Catalog', 'puppet' => 'Puppet', - 'rest' => 'reStructuredText', - 'text' => 'Plain Text', 'python' => 'Python', 'rainbow' => 'Rainbow', 'remarkup' => 'Remarkup', + 'rest' => 'reStructuredText', + 'robotframework' => 'RobotFramework', + 'rst' => 'reStructuredText', 'ruby' => 'Ruby', + 'sql' => 'SQL', + 'tex' => 'LaTeX', + 'text' => 'Plain Text', + 'twig' => 'Twig', 'xml' => 'XML', 'yaml' => 'YAML', ))