PageRenderTime 44ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/htdocs/application/config/codemirror_languages.php

http://github.com/claudehohl/Stikked
PHP | 576 lines | 572 code | 2 blank | 2 comment | 1 complexity | 376b5b10e86fa486cbf4ad266f309e16 MD5 | raw file
Possible License(s): LGPL-3.0, MIT, BSD-3-Clause
  1. <?php if (!defined('BASEPATH')) {
  2. exit('No direct script access allowed');
  3. }
  4. //codemirror languages
  5. $config['codemirror_languages'] = array(
  6. 'html5' => array(
  7. 'mode' => 'htmlmixed',
  8. 'js' => array(
  9. array(
  10. 'codemirror/mode/xml/xml.js',
  11. ),
  12. array(
  13. 'codemirror/mode/javascript/javascript.js',
  14. ),
  15. array(
  16. 'codemirror/mode/css/css.js',
  17. ),
  18. array(
  19. 'codemirror/mode/htmlmixed/htmlmixed.js',
  20. ),
  21. ),
  22. ),
  23. 'css' => array(
  24. 'mode' => 'css',
  25. 'js' => array(
  26. array(
  27. 'codemirror/mode/css/css.js',
  28. ),
  29. ),
  30. ),
  31. 'javascript' => array(
  32. 'mode' => 'javascript',
  33. 'js' => array(
  34. array(
  35. 'codemirror/mode/javascript/javascript.js',
  36. ),
  37. ),
  38. ),
  39. 'php' => array(
  40. 'mode' => 'php',
  41. 'js' => array(
  42. array(
  43. 'codemirror/mode/xml/xml.js',
  44. ),
  45. array(
  46. 'codemirror/mode/javascript/javascript.js',
  47. ),
  48. array(
  49. 'codemirror/mode/css/css.js',
  50. ),
  51. array(
  52. 'codemirror/mode/clike/clike.js',
  53. ),
  54. array(
  55. 'codemirror/mode/php/php.js',
  56. ),
  57. ),
  58. ),
  59. 'python' => array(
  60. 'mode' => 'python',
  61. 'js' => array(
  62. array(
  63. 'codemirror/mode/python/python.js',
  64. ),
  65. ),
  66. ),
  67. 'ruby' => array(
  68. 'mode' => 'ruby',
  69. 'js' => array(
  70. array(
  71. 'codemirror/mode/ruby/ruby.js',
  72. ),
  73. ),
  74. ),
  75. 'lua' => array(
  76. 'mode' => 'text/x-lua',
  77. 'js' => array(
  78. array(
  79. 'codemirror/mode/lua/lua.js',
  80. ),
  81. ),
  82. ),
  83. 'bash' => array(
  84. 'mode' => 'text/x-sh',
  85. 'js' => array(
  86. array(
  87. 'codemirror/mode/shell/shell.js',
  88. ),
  89. ),
  90. ),
  91. 'go' => array(
  92. 'mode' => 'text/x-go',
  93. 'js' => array(
  94. array(
  95. 'codemirror/mode/go/go.js',
  96. ),
  97. ),
  98. ),
  99. 'c' => array(
  100. 'mode' => 'text/x-csrc',
  101. 'js' => array(
  102. array(
  103. 'codemirror/mode/clike/clike.js',
  104. ),
  105. ),
  106. ),
  107. 'cpp' => array(
  108. 'mode' => 'text/x-c++src',
  109. 'js' => array(
  110. array(
  111. 'codemirror/mode/clike/clike.js',
  112. ),
  113. ),
  114. ),
  115. 'diff' => array(
  116. 'mode' => 'diff',
  117. 'js' => array(
  118. array(
  119. 'codemirror/mode/diff/diff.js',
  120. ),
  121. ),
  122. ),
  123. 'latex' => array(
  124. 'mode' => 'stex',
  125. 'js' => array(
  126. array(
  127. 'codemirror/mode/stex/stex.js',
  128. ),
  129. ),
  130. ),
  131. 'sql' => array(
  132. 'mode' => 'sql',
  133. 'js' => array(
  134. array(
  135. 'codemirror/mode/sql/sql.js',
  136. ),
  137. ),
  138. ),
  139. 'xml' => array(
  140. 'mode' => 'xml',
  141. 'js' => array(
  142. array(
  143. 'codemirror/mode/xml/xml.js',
  144. ),
  145. ),
  146. ),
  147. 'text' => 'Plain Text',
  148. '4cs' => '4CS',
  149. '6502acme' => 'MOS 6502',
  150. '6502kickass' => 'MOS 6502 Kick Assembler',
  151. '6502tasm' => 'MOS 6502 TASM/64TASS',
  152. '68000devpac' => 'Motorola 68000 Devpac Assembler',
  153. 'abap' => 'ABAP',
  154. 'apl' => array(
  155. 'mode' => 'apl',
  156. 'js' => array(
  157. array(
  158. 'codemirror/mode/apl/apl.js',
  159. ),
  160. ),
  161. ),
  162. 'asterisk' => array(
  163. 'mode' => 'asterisk',
  164. 'js' => array(
  165. array(
  166. 'codemirror/mode/asterisk/asterisk.js',
  167. ),
  168. ),
  169. ),
  170. 'actionscript' => 'Actionscript',
  171. 'actionscript3' => 'ActionScript3',
  172. 'ada' => 'Ada',
  173. 'algol68' => 'ALGOL 68',
  174. 'apache' => 'Apache',
  175. 'applescript' => 'AppleScript',
  176. 'apt_sources' => 'Apt sources.list',
  177. 'asm' => 'x86 Assembler',
  178. 'asp' => 'ASP',
  179. 'autoconf' => 'autoconf',
  180. 'autohotkey' => 'Autohotkey',
  181. 'autoit' => 'AutoIT',
  182. 'avisynth' => 'AviSynth',
  183. 'awk' => 'Awk',
  184. 'bascomavr' => 'BASCOM AVR',
  185. 'basic4gl' => 'Basic4GL',
  186. 'bf' => 'Brainfuck',
  187. 'bibtex' => 'BibTeX',
  188. 'blitzbasic' => 'BlitzBasic',
  189. 'bnf' => 'BNF (Backus-Naur form)',
  190. 'boo' => 'Boo',
  191. 'c_loadrunner' => array(
  192. 'mode' => 'text/x-csrc',
  193. 'js' => array(
  194. array(
  195. 'codemirror/mode/clike/clike.js',
  196. ),
  197. ),
  198. ),
  199. 'c_mac' => array(
  200. 'mode' => 'text/x-csrc',
  201. 'js' => array(
  202. array(
  203. 'codemirror/mode/clike/clike.js',
  204. ),
  205. ),
  206. ),
  207. 'caddcl' => 'CAD DCL (Dialog Control Language)',
  208. 'cadlisp' => 'AutoCAD/IntelliCAD Lisp',
  209. 'cfdg' => 'CFDG',
  210. 'cfm' => 'ColdFusion',
  211. 'chaiscript' => 'ChaiScript',
  212. 'cil' => 'CIL (Common Intermediate Language)',
  213. 'clojure' => 'Clojure',
  214. 'cmake' => 'CMake',
  215. 'cobol' => 'COBOL',
  216. 'coffeescript' => 'CoffeeScript',
  217. 'coffeescript' => array(
  218. 'mode' => 'text/x-coffeescript',
  219. 'js' => array(
  220. array(
  221. 'codemirror/mode/coffeescript/coffeescript.js',
  222. ),
  223. ),
  224. ),
  225. 'csharp' => array(
  226. 'mode' => 'text/x-csharp',
  227. 'js' => array(
  228. array(
  229. 'codemirror/mode/clike/clike.js',
  230. ),
  231. ),
  232. ),
  233. 'cuesheet' => 'Cuesheet',
  234. 'd' => array(
  235. 'mode' => 'd',
  236. 'js' => array(
  237. array(
  238. 'codemirror/mode/d/d.js',
  239. ),
  240. ),
  241. ),
  242. 'dcs' => 'DCS',
  243. 'delphi' => 'Delphi (Object Pascal)',
  244. 'div' => 'DIV',
  245. 'dos' => 'DOS',
  246. 'dot' => 'dot',
  247. 'e' => 'E',
  248. 'ecmascript' => array(
  249. 'mode' => 'javascript',
  250. 'js' => array(
  251. array(
  252. 'codemirror/mode/javascript/javascript.js',
  253. ),
  254. ),
  255. ),
  256. 'eiffel' => 'Eiffel',
  257. 'email' => 'Email (mbox/eml/RFC format)',
  258. 'epc' => 'Enerscript',
  259. 'erlang' => array(
  260. 'mode' => 'erlang',
  261. 'js' => array(
  262. array(
  263. 'codemirror/mode/erlang/erlang.js',
  264. ),
  265. ),
  266. ),
  267. 'euphoria' => 'Euphoria',
  268. 'f1' => 'Formula One',
  269. 'falcon' => 'Falcon',
  270. 'fo' => 'fo',
  271. 'fortran' => 'Fortran',
  272. 'freebasic' => 'FreeBasic',
  273. 'fsharp' => 'F#',
  274. 'gambas' => 'GAMBAS',
  275. 'gdb' => 'GDB',
  276. 'genero' => 'Genero',
  277. 'genie' => 'Genie',
  278. 'gettext' => 'GNU Gettext .po/.pot',
  279. 'glsl' => 'glSlang',
  280. 'gml' => 'GML',
  281. 'gnuplot' => 'Gnuplot script',
  282. 'go' => array(
  283. 'mode' => 'go',
  284. 'js' => array(
  285. array(
  286. 'codemirror/mode/go/go.js',
  287. ),
  288. ),
  289. ),
  290. 'groovy' => array(
  291. 'mode' => 'text/x-groovy',
  292. 'js' => array(
  293. array(
  294. 'codemirror/mode/groovy/groovy.js',
  295. ),
  296. ),
  297. ),
  298. 'gwbasic' => 'GwBasic',
  299. 'haskell' => array(
  300. 'mode' => 'text/x-haskell',
  301. 'js' => array(
  302. array(
  303. 'codemirror/mode/haskell/haskell.js',
  304. ),
  305. ),
  306. ),
  307. 'haxe' => array(
  308. 'mode' => 'text/x-haxe',
  309. 'js' => array(
  310. array(
  311. 'codemirror/mode/haxe/haxe.js',
  312. ),
  313. ),
  314. ),
  315. 'hicest' => 'HicEst',
  316. 'hq9plus' => 'HQ9+',
  317. 'html4strict' => array(
  318. 'mode' => 'htmlmixed',
  319. 'js' => array(
  320. array(
  321. 'codemirror/mode/xml/xml.js',
  322. ),
  323. array(
  324. 'codemirror/mode/javascript/javascript.js',
  325. ),
  326. array(
  327. 'codemirror/mode/css/css.js',
  328. ),
  329. array(
  330. 'codemirror/mode/htmlmixed/htmlmixed.js',
  331. ),
  332. ),
  333. ),
  334. 'icon' => 'Icon',
  335. 'idl' => 'Unoidl',
  336. 'ini' => 'INI',
  337. 'inno' => 'Inno Script',
  338. 'intercal' => 'INTERCAL',
  339. 'io' => 'Io',
  340. 'j' => 'J',
  341. 'java' => array(
  342. 'mode' => 'text/x-java',
  343. 'js' => array(
  344. array(
  345. 'codemirror/mode/clike/clike.js',
  346. ),
  347. ),
  348. ),
  349. 'java5' => array(
  350. 'mode' => 'text/x-java',
  351. 'js' => array(
  352. array(
  353. 'codemirror/mode/clike/clike.js',
  354. ),
  355. ),
  356. ),
  357. 'jquery' => array(
  358. 'mode' => 'javascript',
  359. 'js' => array(
  360. array(
  361. 'codemirror/mode/javascript/javascript.js',
  362. ),
  363. ),
  364. ),
  365. //'kixtart' => 'PHP',
  366. 'klonec' => 'KLone with C',
  367. 'klonecpp' => 'KLone with C++',
  368. 'lb' => 'Liberty BASIC',
  369. 'lisp' => 'Generic Lisp',
  370. 'llvm' => 'LLVM',
  371. 'locobasic' => 'Locomotive Basic (Amstrad CPC series)',
  372. 'logtalk' => 'Logtalk',
  373. 'lolcode' => 'LOLcode',
  374. 'lotusformulas' => '@Formula/@Command',
  375. 'lotusscript' => 'LotusScript',
  376. 'lscript' => 'Lightwave Script',
  377. 'lsl2' => 'Linden Scripting',
  378. 'm68k' => 'Motorola 68000 Assembler',
  379. 'magiksf' => 'MagikSF',
  380. 'make' => 'Make',
  381. 'mapbasic' => 'MapBasic',
  382. 'matlab' => 'Matlab M-file',
  383. 'mirc' => array(
  384. 'mode' => 'mirc',
  385. 'js' => array(
  386. array(
  387. 'codemirror/mode/mirc/mirc.js',
  388. ),
  389. ),
  390. ),
  391. 'mmix' => 'MMIX Assembler',
  392. 'modula2' => 'Modula-2',
  393. 'modula3' => 'Modula-3',
  394. 'mpasm' => 'Microchip Assembler',
  395. 'mxml' => 'MXML',
  396. 'mysql' => array(
  397. 'mode' => 'sql',
  398. 'js' => array(
  399. array(
  400. 'codemirror/mode/sql/sql.js',
  401. ),
  402. ),
  403. ),
  404. 'newlisp' => 'newLISP',
  405. 'nsis' => 'Nullsoft Scriptable Install System',
  406. 'oberon2' => 'Oberon-2',
  407. 'objc' => 'Objective-C',
  408. 'objeck' => 'Objeck Programming Language',
  409. 'ocaml' => 'OCaml (Objective Caml)',
  410. 'ocaml' => array(
  411. 'mode' => 'text/x-ocaml',
  412. 'js' => array(
  413. array(
  414. 'codemirror/mode/ocaml/ocaml.js',
  415. ),
  416. ),
  417. ),
  418. 'oobas' => 'OpenOffice.org Basic',
  419. 'oracle11' => 'Oracle 11i',
  420. 'oracle8' => 'Oracle 8',
  421. 'oxygene' => 'Delphi Prism (Oxygene)',
  422. 'oz' => 'Oz',
  423. 'pascal' => array(
  424. 'mode' => 'text/x-pascal',
  425. 'js' => array(
  426. array(
  427. 'codemirror/mode/pascal/pascal.js',
  428. ),
  429. ),
  430. ),
  431. 'pcre' => 'PCRE',
  432. 'per' => 'Per (forms)',
  433. 'perl' => array(
  434. 'mode' => 'perl',
  435. 'js' => array(
  436. array(
  437. 'codemirror/mode/perl/perl.js',
  438. ),
  439. ),
  440. ),
  441. 'perl6' => array(
  442. 'mode' => 'perl',
  443. 'js' => array(
  444. array(
  445. 'codemirror/mode/perl/perl.js',
  446. ),
  447. ),
  448. ),
  449. 'pf' => 'OpenBSD packet filter',
  450. 'pic16' => 'PIC16 Assembler',
  451. 'pike' => 'Pike',
  452. 'pixelbender' => 'Pixel Bender 1.0',
  453. 'pli' => 'PL/I',
  454. 'plsql' => array(
  455. 'mode' => 'sql',
  456. 'js' => array(
  457. array(
  458. 'codemirror/mode/sql/sql.js',
  459. ),
  460. ),
  461. ),
  462. 'postgresql' => 'PostgreSQL',
  463. 'povray' => 'Povray',
  464. 'powerbuilder' => 'PowerBuilder (PowerScript)',
  465. 'powershell' => 'PowerShell',
  466. 'proftpd' => 'ProFTPd',
  467. 'progress' => 'Progress',
  468. 'prolog' => 'Prolog',
  469. 'properties' => array(
  470. 'mode' => 'text/x-properties',
  471. 'js' => array(
  472. array(
  473. 'codemirror/mode/properties/properties.js',
  474. ),
  475. ),
  476. ),
  477. 'providex' => 'ProvideX',
  478. 'purebasic' => 'PureBasic',
  479. 'q' => array(
  480. 'mode' => 'text/x-q',
  481. 'js' => array(
  482. array(
  483. 'codemirror/mode/q/q.js',
  484. ),
  485. ),
  486. ),
  487. 'qbasic' => 'QBasic/QuickBASIC',
  488. 'rails' => 'Ruby (with Ruby on Rails Framework)',
  489. 'rebol' => 'Rebol',
  490. 'reg' => 'Microsoft Registry Editor',
  491. 'robots' => 'robots.txt',
  492. 'rpmspec' => 'RPM Spec',
  493. 'rsplus' => 'R',
  494. 'sas' => 'SAS',
  495. 'scala' => array(
  496. 'mode' => 'scala',
  497. 'js' => array(
  498. array(
  499. 'codemirror/mode/clike/clike.js',
  500. ),
  501. ),
  502. ),
  503. 'scheme' => array(
  504. 'mode' => 'text/x-scheme',
  505. 'js' => array(
  506. array(
  507. 'codemirror/mode/scheme/scheme.js',
  508. ),
  509. ),
  510. ),
  511. 'scilab' => 'SciLab',
  512. 'sdlbasic' => 'sdlBasic',
  513. 'smalltalk' => 'Smalltalk',
  514. 'smarty' => 'Smarty template',
  515. 'systemverilog' => 'SystemVerilog IEEE 1800-2009(draft8)',
  516. 'tcl' => array(
  517. 'mode' => 'text/x-tcl',
  518. 'js' => array(
  519. array(
  520. 'codemirror/mode/tcl/tcl.js',
  521. ),
  522. ),
  523. ),
  524. 'teraterm' => 'Tera Term Macro',
  525. 'thinbasic' => 'thinBasic',
  526. 'tsql' => 'T-SQL',
  527. 'typoscript' => 'TypoScript',
  528. 'unicon' => 'Unicon',
  529. 'uscript' => 'UnrealScript',
  530. 'vala' => 'Vala',
  531. 'vb' => array(
  532. 'mode' => 'text/x-vb',
  533. 'js' => array(
  534. array(
  535. 'codemirror/mode/vb/vb.js',
  536. ),
  537. ),
  538. ),
  539. 'verilog' => array(
  540. 'mode' => 'text/x-verilog',
  541. 'js' => array(
  542. array(
  543. 'codemirror/mode/verilog/verilog.js',
  544. ),
  545. ),
  546. ),
  547. 'vhdl' => 'VHDL',
  548. 'vim' => 'Vim scripting',
  549. 'visualfoxpro' => 'Visual FoxPro',
  550. 'visualprolog' => 'Visual Prolog',
  551. 'whitespace' => 'Whitespace',
  552. 'whois' => 'Whois response (RPSL format)',
  553. 'winbatch' => 'WinBatch',
  554. 'xbasic' => 'XBasic',
  555. 'xorg_conf' => 'xorg.conf',
  556. 'xpp' => 'Axapta/Dynamics Ax X++',
  557. 'yaml' => array(
  558. 'mode' => 'text/x-yaml',
  559. 'js' => array(
  560. array(
  561. 'codemirror/mode/yaml/yaml.js',
  562. ),
  563. ),
  564. ),
  565. 'z80' => array(
  566. 'mode' => 'text/x-z80',
  567. 'js' => array(
  568. array(
  569. 'codemirror/mode/z80/z80.js',
  570. ),
  571. ),
  572. ),
  573. 'zxbasic' => 'ZXBasic',
  574. );