Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/src/packages/frontend/codemirror/modes.js
Views: 687
//########################################################################1// This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.2// License: MS-RSL – see LICENSE.md for details3//########################################################################45/*6Load javascript support for all modes that we support in CoCalc.78NOTE: This is used by the share server, so we can't load css or other stuff9that shouldn't also be used on the backend.10*/1112require("codemirror/mode/clike/clike.js");13require("codemirror/mode/clojure/clojure.js");14require("codemirror/mode/cobol/cobol.js");15require("codemirror/mode/coffeescript/coffeescript.js");16require("codemirror/mode/commonlisp/commonlisp.js");17require("codemirror/mode/css/css.js");18require("codemirror/mode/diff/diff.js");19require("codemirror/mode/dockerfile/dockerfile.js");20require("codemirror/mode/dtd/dtd.js");21require("codemirror/mode/ecl/ecl.js");22require("codemirror/mode/eiffel/eiffel.js");23require("codemirror/mode/elm/elm.js");24require("codemirror/mode/erlang/erlang.js");25require("codemirror/mode/fortran/fortran.js");26require("codemirror/mode/gfm/gfm.js");27require("codemirror/mode/go/go.js");28require("codemirror/mode/groovy/groovy.js");29require("codemirror/mode/haskell/haskell.js");30require("codemirror/mode/haxe/haxe.js");31require("codemirror/mode/htmlembedded/htmlembedded.js");32require("codemirror/mode/htmlmixed/htmlmixed.js");33require("codemirror/mode/http/http.js");34require("codemirror/mode/javascript/javascript.js");35require("codemirror/mode/jinja2/jinja2.js");36require("codemirror/mode/jsx/jsx.js");37require("codemirror/mode/julia/julia.js");38require("codemirror/mode/livescript/livescript.js");39require("codemirror/mode/lua/lua.js");40require("codemirror/mode/markdown/markdown.js");41require("codemirror/mode/mllike/mllike.js");42require("codemirror/mode/nginx/nginx.js");43require("codemirror/mode/ntriples/ntriples.js");44require("codemirror/mode/octave/octave.js");45require("codemirror/mode/pascal/pascal.js");46require("codemirror/mode/pegjs/pegjs.js");47require("codemirror/mode/perl/perl.js");48require("codemirror/mode/php/php.js");49require("codemirror/mode/pig/pig.js");50require("codemirror/mode/properties/properties.js");51require("codemirror/mode/pug/pug.js");52require("codemirror/mode/r/r.js");53require("codemirror/mode/ruby/ruby.js");54require("codemirror/mode/rust/rust.js");55require("codemirror/mode/sass/sass.js");56require("codemirror/mode/scheme/scheme.js");57require("codemirror/mode/shell/shell.js");58require("codemirror/mode/sieve/sieve.js");59require("codemirror/mode/smalltalk/smalltalk.js");60require("codemirror/mode/smarty/smarty.js");61require("codemirror/mode/sparql/sparql.js");62require("codemirror/mode/sql/sql.js");63require("codemirror/mode/stex/stex.js");64require("codemirror/mode/tiddlywiki/tiddlywiki.js");65require("codemirror/mode/tiki/tiki.js");66require("codemirror/mode/toml/toml.js");67require("codemirror/mode/vb/vb.js");68require("codemirror/mode/vbscript/vbscript.js");69require("codemirror/mode/velocity/velocity.js");70require("codemirror/mode/verilog/verilog.js");71require("codemirror/mode/xml/xml.js");72require("codemirror/mode/xquery/xquery.js");73require("codemirror/mode/yaml/yaml.js");74require("codemirror/mode/yaml-frontmatter/yaml-frontmatter.js");75require("codemirror/mode/z80/z80.js");76require("codemirror/mode/gas/gas.js");7778/*79* In mode/python/python.js I add our unicode output character to be a comment starter:8081// Handle Comments82if (ch == "#" || ch == "\uFE21") {8384Also, it's critical to fix a bug by replacing the state function by8586function top(state) {87if (state.scopes.length == 0) {88return {type:"undefined", offset:0}; // better than totally crashing89}90return state.scopes[state.scopes.length - 1];91}92*/93require("./mode/python.js");9495require("./mode/makefile.js");9697// In ReST mode/rst/rst.js, add Sage support:98// var rx_examples = new RegExp('^\\s+(?:>>>|sage:|In \\[\\d+\\]:)\\s');99require("./mode/rst.js");100101// Modify the coffeescript mode to support cjsx.102require("./mode/coffeescript2.js");103104require("./mode/less.js");105require("./mode/pari.js");106require("./mode/macaulay2.js");107108require("./mode/mediawiki/mediawiki.js");109110require("./mode/lean");111112require("./mode/ada");113114require("./custom-modes");115116117