Add support for org-mode in th code app
This commit is contained in:
@@ -1,126 +1,127 @@
|
||||
define(function () {
|
||||
define([
|
||||
'/code/orgmode.js'
|
||||
], function () {
|
||||
var Modes = {};
|
||||
|
||||
// mode language (extension)
|
||||
var list = Modes.list = [
|
||||
"apl apl .apl",
|
||||
"asciiarmor asciiarmor",
|
||||
"asn.1 asn.1",
|
||||
"asterisk asterisk",
|
||||
"brainfuck brainfuck .b",
|
||||
"clike clike",
|
||||
"clojure clojure",
|
||||
"cmake cmake",
|
||||
"cobol cobol",
|
||||
"coffeescript coffeescript",
|
||||
"commonlisp commonlisp",
|
||||
"crystal crystal",
|
||||
"css css .css",
|
||||
"cypher cypher",
|
||||
"d d",
|
||||
"dart dart",
|
||||
"diff diff",
|
||||
"django django",
|
||||
"dockerfile dockerfile",
|
||||
"dtd dtd",
|
||||
"dylan dylan",
|
||||
"ebnf ebnf",
|
||||
"ecl ecl",
|
||||
"eiffel eiffel",
|
||||
"elm elm .elm",
|
||||
"erlang erlang",
|
||||
"factor factor",
|
||||
"fcl fcl",
|
||||
"forth forth",
|
||||
"fortran fortran",
|
||||
"gas gas",
|
||||
"gfm gfm .md",
|
||||
"gherkin gherkin",
|
||||
"go go",
|
||||
"groovy groovy",
|
||||
"haml haml",
|
||||
"handlebars handlebars",
|
||||
"haskell haskell .hs",
|
||||
"haskell-literate haskell-literate",
|
||||
"haxe haxe",
|
||||
"htmlembedded htmlembedded",
|
||||
"htmlmixed htmlmixed .html",
|
||||
"http http",
|
||||
"idl idl",
|
||||
"index.html index.html",
|
||||
"jade jade",
|
||||
"javascript javascript .js",
|
||||
"jinja2 jinja2",
|
||||
"jsx jsx .jsx",
|
||||
"julia julia",
|
||||
"livescript livescript",
|
||||
"lua lua",
|
||||
"markdown markdown .md",
|
||||
"mathematica mathematica",
|
||||
"mirc mirc",
|
||||
"mllike mllike",
|
||||
"modelica modelica",
|
||||
"mscgen mscgen",
|
||||
"mumps mumps",
|
||||
"nginx nginx",
|
||||
"nsis nsis",
|
||||
"ntriples ntriples",
|
||||
"octave octave",
|
||||
"oz oz",
|
||||
"pascal pascal",
|
||||
"pegjs pegjs",
|
||||
"perl perl",
|
||||
"php php",
|
||||
"pig pig",
|
||||
"properties properties",
|
||||
"protobuf protobuf",
|
||||
"puppet puppet",
|
||||
"python python .py",
|
||||
"q q",
|
||||
"r r",
|
||||
"rpm rpm",
|
||||
"rst rst",
|
||||
"ruby ruby",
|
||||
"rust rust",
|
||||
"sass sass",
|
||||
"scheme scheme .scm",
|
||||
"shell shell .sh",
|
||||
"sieve sieve",
|
||||
"slim slim",
|
||||
"smalltalk smalltalk",
|
||||
"smarty smarty",
|
||||
"solr solr",
|
||||
"soy soy",
|
||||
"sparql sparql",
|
||||
"spreadsheet spreadsheet",
|
||||
"sql sql",
|
||||
"stex stex",
|
||||
"stylus stylus",
|
||||
"swift swift",
|
||||
"tcl tcl",
|
||||
"text text .txt",
|
||||
"textile textile",
|
||||
"tiddlywiki tiddlywiki",
|
||||
"tiki tiki",
|
||||
"toml toml",
|
||||
"tornado tornado",
|
||||
"APL apl .apl",
|
||||
"ASCII-Armor asciiarmor",
|
||||
"ASN.1 asn.1",
|
||||
"Asterisk asterisk",
|
||||
"Brainfuck brainfuck .b",
|
||||
"C-like clike",
|
||||
"Clojure clojure",
|
||||
"CMake cmake",
|
||||
"COBOL cobol",
|
||||
"CoffeeScript coffeescript",
|
||||
"Common_Lisp commonlisp",
|
||||
"Crystal crystal",
|
||||
"CSS css .css",
|
||||
"Cypher cypher",
|
||||
"D d",
|
||||
"Dart dart",
|
||||
"Diff diff",
|
||||
"Django django",
|
||||
"Dockerfile dockerfile",
|
||||
"DTD dtd",
|
||||
"Dylan dylan",
|
||||
"EBNF ebnf",
|
||||
"ECL ecl",
|
||||
"Eiffel eiffel",
|
||||
"Elm elm .elm",
|
||||
"Erlang erlang",
|
||||
"Factor factor",
|
||||
"FCL fcl",
|
||||
"Forth forth",
|
||||
"Fortran fortran",
|
||||
"GAS gas",
|
||||
"Gherkin gherkin",
|
||||
"Go go",
|
||||
"Groovy groovy",
|
||||
"Haml haml",
|
||||
"Handlebars handlebars",
|
||||
"Haskell haskell .hs",
|
||||
"Haskell-Literate haskell-literate",
|
||||
"Haxe haxe",
|
||||
"HTML htmlmixed .html",
|
||||
"HTTP http",
|
||||
"IDL idl",
|
||||
"JADE jade",
|
||||
"JavaScript javascript .js",
|
||||
"Jinja2 jinja2",
|
||||
"JSX jsx .jsx",
|
||||
"Julia julia",
|
||||
"LiveScript livescript",
|
||||
"Lua lua",
|
||||
"Markdown gfm .md",
|
||||
//"markdown markdown .md",
|
||||
"Mathematica mathematica",
|
||||
"mIRC mirc",
|
||||
"ML mllike",
|
||||
"Modelica modelica",
|
||||
"MscGen mscgen",
|
||||
"MUMPS mumps",
|
||||
"Nginx nginx",
|
||||
"NSIS nsis",
|
||||
"N-Triples ntriples",
|
||||
"Octave octave",
|
||||
"Org-mode orgmode .org",
|
||||
"Oz oz",
|
||||
"Pascal pascal",
|
||||
"PEG.js pegjs",
|
||||
"Perl perl",
|
||||
"PHP php",
|
||||
"Pig pig",
|
||||
"Properties properties",
|
||||
"Protocol_Buffers protobuf",
|
||||
"Puppet puppet",
|
||||
"Python python .py",
|
||||
"Q q",
|
||||
"R r",
|
||||
"RPM rpm",
|
||||
"RST rst",
|
||||
"Ruby ruby",
|
||||
"Rust rust",
|
||||
"Sass sass",
|
||||
"Scheme scheme .scm",
|
||||
"Shell shell .sh",
|
||||
"Sieve sieve",
|
||||
"Slim slim",
|
||||
"Smalltalk smalltalk",
|
||||
"Smarty smarty",
|
||||
"Solr solr",
|
||||
"Soy soy",
|
||||
"SPARQL sparql",
|
||||
"Spreadsheet spreadsheet",
|
||||
"SQL sql",
|
||||
"sTeX stex",
|
||||
"Stylus stylus",
|
||||
"Swift swift",
|
||||
"Tcl tcl",
|
||||
"Text text .txt",
|
||||
"Textile textile",
|
||||
"TiddlyWiki tiddlywiki",
|
||||
"Tiki tiki",
|
||||
"TOML toml",
|
||||
"Tornado tornado",
|
||||
"troff troff",
|
||||
"ttcn ttcn",
|
||||
"ttcn-cfg ttcn-cfg",
|
||||
"turtle turtle",
|
||||
"twig twig",
|
||||
"vb vb",
|
||||
"vbscript vbscript",
|
||||
"velocity velocity",
|
||||
"verilog verilog",
|
||||
"vhdl vhdl",
|
||||
"vue vue",
|
||||
"xml xml",
|
||||
"TTCN ttcn",
|
||||
"TTCN-cfg ttcn-cfg",
|
||||
"Turtle turtle",
|
||||
"Twig twig",
|
||||
"Visual_Basic vb",
|
||||
"VBScript vbscript",
|
||||
"Velocity velocity",
|
||||
"Verilog verilog",
|
||||
"VHDL vhdl",
|
||||
"Vue vue",
|
||||
"XML xml",
|
||||
//"xwiki xwiki21",
|
||||
"xquery xquery",
|
||||
"yaml yaml .yaml",
|
||||
"yaml-frontmatter yaml-frontmatter",
|
||||
"z80 z80"
|
||||
"XQuery xquery",
|
||||
"YAML yaml .yaml",
|
||||
"YAML_Frontmatter yaml-frontmatter",
|
||||
"Z80 z80"
|
||||
].map(function (line) {
|
||||
var kv = line.split(/\s/);
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user