3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 * http://www.gnu.org/copyleft/gpl.html
18 class SyntaxHighlightGeSHiCompat {
19 /** @var array A mapping of GeSHi lexer names to compatible Pygments lexers. */
20 private static $compatibleLexers = [
25 '6502kickass' => 'asm',
26 '68000devpac' => 'asm',
36 'thinbasic' => 'basic',
37 'sdlbasic' => 'basic',
38 'purebasic' => 'basic',
39 'mapbasic' => 'basic',
40 'locobasic' => 'basic',
42 'freebasic' => 'basic',
43 'basic4gl' => 'basic',
47 'bascomavr' => 'basic',
50 'c_loadrunner' => 'c',
55 'cpp-winapi' => 'cpp',
59 'html4strict' => 'html',
63 'jquery' => 'javascript',
64 'ecmascript' => 'javascript',
69 'visualfoxpro' => 'foxpro',
71 'visualprolog' => 'prolog',
86 'ocaml-brief' => 'ocaml',
87 'standardml' => 'sml',
90 'modula3' => 'modula2',
91 'oberon2' => 'modula2',
103 // xpp is basically Java
107 'apt_sources' => 'debsources',
110 public static function getGeSHiToPygmentsMap() {
111 return self::$compatibleLexers;