Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
cleanup of unnecessary codemirror mode files
zadam395eb92d9314
diff --git a/libraries/codemirror/mode/apl/index.html b/libraries/codemirror/mode/apl/index.htmldeleted file mode 100644index 56ab02ffba..0000000000--- a/libraries/codemirror/mode/apl/index.html+++ /dev/null@@ -1,72 +0,0 @@-<!doctype html>--<title>CodeMirror: APL mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="./apl.js"></script>-<style>- .CodeMirror { border: 2px inset #dee; }- </style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">APL</a>- </ul>-</div>--<article>-<h2>APL mode</h2>-<form><textarea id="code" name="code">-⍝ Conway's game of life--⍝ This example was inspired by the impressive demo at-⍝ http://www.youtube.com/watch?v=a9xAKttWgP4--⍝ Create a matrix:-⍝ 0 1 1-⍝ 1 1 0-⍝ 0 1 0-creature ← (3 3 ⍴ ⍳ 9) ∈ 1 2 3 4 7 ⍝ Original creature from demo-creature ← (3 3 ⍴ ⍳ 9) ∈ 1 3 6 7 8 ⍝ Glider--⍝ Place the creature on a larger board, near the centre-board ← ¯1 ⊖ ¯2 ⌽ 5 7 ↑ creature--⍝ A function to move from one generation to the next-life ← {∨/ 1 ⍵ ∧ 3 4 = ⊂+/ +⌿ 1 0 ¯1 ∘.⊖ 1 0 ¯1 ⌽¨ ⊂⍵}--⍝ Compute n-th generation and format it as a-⍝ character matrix-gen ← {' #'[(life ⍣ ⍵) board]}--⍝ Show first three generations-(gen 1) (gen 2) (gen 3)-</textarea></form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- matchBrackets: true,- mode: "text/apl"- });- </script>-- <p>Simple mode that tries to handle APL as well as it can.</p>- <p>It attempts to label functions/operators based upon- monadic/dyadic usage (but this is far from fully fleshed out).- This means there are meaningful classnames so hover states can- have popups etc.</p>-- <p><strong>MIME types defined:</strong> <code>text/apl</code> (APL code)</p>- </article>diff --git a/libraries/codemirror/mode/asciiarmor/index.html b/libraries/codemirror/mode/asciiarmor/index.htmldeleted file mode 100644index de39a18573..0000000000--- a/libraries/codemirror/mode/asciiarmor/index.html+++ /dev/null@@ -1,46 +0,0 @@-<!doctype html>--<title>CodeMirror: ASCII Armor (PGP) mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="asciiarmor.js"></script>-<style>.CodeMirror {background: #f8f8f8;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">ASCII Armor</a>- </ul>-</div>--<article>-<h2>ASCII Armor (PGP) mode</h2>-<form><textarea id="code" name="code">------BEGIN PGP MESSAGE------Version: OpenPrivacy 0.99--yDgBO22WxBHv7O8X7O/jygAEzol56iUKiXmV+XmpCtmpqQUKiQrFqclFqUDBovzS-vBSFjNSiVHsuAA==-=njUN------END PGP MESSAGE------</textarea></form>--<script>-var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true-});-</script>--<p><strong>MIME types-defined:</strong> <code>application/pgp</code>, <code>application/pgp-encrypted</code>, <code>application/pgp-keys</code>, <code>application/pgp-signature</code></p>--</article>diff --git a/libraries/codemirror/mode/asn.1/index.html b/libraries/codemirror/mode/asn.1/index.htmldeleted file mode 100644index c2bc824a07..0000000000--- a/libraries/codemirror/mode/asn.1/index.html+++ /dev/null@@ -1,78 +0,0 @@-<!doctype html>--<title>CodeMirror: ASN.1 mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="asn.1.js"></script>-<style>- .CodeMirror {- border-top: 1px solid black;- border-bottom: 1px solid black;- }-</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1>- <img id=logo src="../../doc/logo.png">- </a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="http://en.wikipedia.org/wiki/Abstract_Syntax_Notation_One">ASN.1</a>- </ul>-</div>-<article>- <h2>ASN.1 example</h2>- <div>- <textarea id="ttcn-asn-code">- --- -- Sample ASN.1 Code- --- MyModule DEFINITIONS ::=- BEGIN-- MyTypes ::= SEQUENCE {- myObjectId OBJECT IDENTIFIER,- mySeqOf SEQUENCE OF MyInt,- myBitString BIT STRING {- muxToken(0),- modemToken(1)- }- }-- MyInt ::= INTEGER (0..65535)-- END- </textarea>- </div>-- <script>- var ttcnEditor = CodeMirror.fromTextArea(document.getElementById("ttcn-asn-code"), {- lineNumbers: true,- matchBrackets: true,- mode: "text/x-ttcn-asn"- });- ttcnEditor.setSize(400, 400);- var mac = CodeMirror.keyMap.default == CodeMirror.keyMap.macDefault;- CodeMirror.keyMap.default[(mac ? "Cmd" : "Ctrl") + "-Space"] = "autocomplete";- </script>- <br/>- <p><strong>Language:</strong> Abstract Syntax Notation One- (<a href="http://www.itu.int/en/ITU-T/asn1/Pages/introduction.aspx">ASN.1</a>)- </p>- <p><strong>MIME types defined:</strong> <code>text/x-ttcn-asn</code></p>-- <br/>- <p>The development of this mode has been sponsored by <a href="http://www.ericsson.com/">Ericsson- </a>.</p>- <p>Coded by Asmelash Tsegay Gebretsadkan </p>-</article>-diff --git a/libraries/codemirror/mode/asterisk/index.html b/libraries/codemirror/mode/asterisk/index.htmldeleted file mode 100644index b9fc627dd2..0000000000--- a/libraries/codemirror/mode/asterisk/index.html+++ /dev/null@@ -1,155 +0,0 @@-<!doctype html>--<title>CodeMirror: Asterisk dialplan mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="asterisk.js"></script>-<style>- .CodeMirror {border: 1px solid #999;}- .cm-s-default span.cm-arrow { color: red; }- </style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Asterisk dialplan</a>- </ul>-</div>--<article>-<h2>Asterisk dialplan mode</h2>-<form><textarea id="code" name="code">-; extensions.conf - the Asterisk dial plan-;--[general]-;-; If static is set to no, or omitted, then the pbx_config will rewrite-; this file when extensions are modified. Remember that all comments-; made in the file will be lost when that happens.-static=yes--#include "/etc/asterisk/additional_general.conf--[iaxprovider]-switch => IAX2/user:[key]@myserver/mycontext--[dynamic]-#exec /usr/bin/dynamic-peers.pl--[trunkint]-;-; International long distance through trunk-;-exten => _9011.,1,Macro(dundi-e164,${EXTEN:4})-exten => _9011.,n,Dial(${GLOBAL(TRUNK)}/${FILTER(0-9,${EXTEN:${GLOBAL(TRUNKMSD)}})})--[local]-;-; Master context for local, toll-free, and iaxtel calls only-;-ignorepat => 9-include => default--[demo]-include => stdexten-;-; We start with what to do when a call first comes in.-;-exten => s,1,Wait(1) ; Wait a second, just for fun-same => n,Answer ; Answer the line-same => n,Set(TIMEOUT(digit)=5) ; Set Digit Timeout to 5 seconds-same => n,Set(TIMEOUT(response)=10) ; Set Response Timeout to 10 seconds-same => n(restart),BackGround(demo-congrats) ; Play a congratulatory message-same => n(instruct),BackGround(demo-instruct) ; Play some instructions-same => n,WaitExten ; Wait for an extension to be dialed.--exten => 2,1,BackGround(demo-moreinfo) ; Give some more information.-exten => 2,n,Goto(s,instruct)--exten => 3,1,Set(LANGUAGE()=fr) ; Set language to french-exten => 3,n,Goto(s,restart) ; Start with the congratulations--exten => 1000,1,Goto(default,s,1)-;-; We also create an example user, 1234, who is on the console and has-; voicemail, etc.-;-exten => 1234,1,Playback(transfer,skip) ; "Please hold while..."- ; (but skip if channel is not up)-exten => 1234,n,Gosub(${EXTEN},stdexten(${GLOBAL(CONSOLE)}))-exten => 1234,n,Goto(default,s,1) ; exited Voicemail--exten => 1235,1,Voicemail(1234,u) ; Right to voicemail--exten => 1236,1,Dial(Console/dsp) ; Ring forever-exten => 1236,n,Voicemail(1234,b) ; Unless busy--;-; # for when they're done with the demo-;-exten => #,1,Playback(demo-thanks) ; "Thanks for trying the demo"-exten => #,n,Hangup ; Hang them up.--;-; A timeout and "invalid extension rule"-;-exten => t,1,Goto(#,1) ; If they take too long, give up-exten => i,1,Playback(invalid) ; "That's not valid, try again"--;-; Create an extension, 500, for dialing the-; Asterisk demo.-;-exten => 500,1,Playback(demo-abouttotry); Let them know what's going on-exten => 500,n,Dial(IAX2/[email protected]/s@default) ; Call the Asterisk demo-exten => 500,n,Playback(demo-nogo) ; Couldn't connect to the demo site-exten => 500,n,Goto(s,6) ; Return to the start over message.--;-; Create an extension, 600, for evaluating echo latency.-;-exten => 600,1,Playback(demo-echotest) ; Let them know what's going on-exten => 600,n,Echo ; Do the echo test-exten => 600,n,Playback(demo-echodone) ; Let them know it's over-exten => 600,n,Goto(s,6) ; Start over--;-; You can use the Macro Page to intercom a individual user-exten => 76245,1,Macro(page,SIP/Grandstream1)-; or if your peernames are the same as extensions-exten => _7XXX,1,Macro(page,SIP/${EXTEN})-;-;-; System Wide Page at extension 7999-;-exten => 7999,1,Set(TIMEOUT(absolute)=60)-exten => 7999,2,Page(Local/Grandstream1@page&Local/Xlite1@page&Local/1234@page/n,d)--; Give voicemail at extension 8500-;-exten => 8500,1,VoicemailMain-exten => 8500,n,Goto(s,6)-- </textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: "text/x-asterisk",- matchBrackets: true,- lineNumbers: true- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-asterisk</code>.</p>-- </article>diff --git a/libraries/codemirror/mode/brainfuck/index.html b/libraries/codemirror/mode/brainfuck/index.htmldeleted file mode 100644index a04bddb14e..0000000000--- a/libraries/codemirror/mode/brainfuck/index.html+++ /dev/null@@ -1,85 +0,0 @@-<!doctype html>--<title>CodeMirror: Brainfuck mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="./brainfuck.js"></script>-<style>- .CodeMirror { border: 2px inset #dee; }- </style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#"></a>- </ul>-</div>--<article>-<h2>Brainfuck mode</h2>-<form><textarea id="code" name="code">-[ This program prints "Hello World!" and a newline to the screen, its- length is 106 active command characters [it is not the shortest.]-- This loop is a "comment loop", it's a simple way of adding a comment- to a BF program such that you don't have to worry about any command- characters. Any ".", ",", "+", "-", "<" and ">" characters are simply- ignored, the "[" and "]" characters just have to be balanced.-]-+++++ +++ Set Cell #0 to 8-[- >++++ Add 4 to Cell #1; this will always set Cell #1 to 4- [ as the cell will be cleared by the loop- >++ Add 2 to Cell #2- >+++ Add 3 to Cell #3- >+++ Add 3 to Cell #4- >+ Add 1 to Cell #5- <<<<- Decrement the loop counter in Cell #1- ] Loop till Cell #1 is zero; number of iterations is 4- >+ Add 1 to Cell #2- >+ Add 1 to Cell #3- >- Subtract 1 from Cell #4- >>+ Add 1 to Cell #6- [<] Move back to the first zero cell you find; this will- be Cell #1 which was cleared by the previous loop- <- Decrement the loop Counter in Cell #0-] Loop till Cell #0 is zero; number of iterations is 8--The result of this is:-Cell No : 0 1 2 3 4 5 6-Contents: 0 0 72 104 88 32 8-Pointer : ^-->>. Cell #2 has value 72 which is 'H'->---. Subtract 3 from Cell #3 to get 101 which is 'e'-+++++++..+++. Likewise for 'llo' from Cell #3->>. Cell #5 is 32 for the space-<-. Subtract 1 from Cell #4 for 87 to give a 'W'-<. Cell #3 was set to 'o' from the end of 'Hello'-+++.------.--------. Cell #3 for 'rl' and 'd'->>+. Add 1 to Cell #5 gives us an exclamation point->++. And finally a newline from Cell #6-</textarea></form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- matchBrackets: true,- mode: "text/x-brainfuck"- });- </script>-- <p>A mode for Brainfuck</p>-- <p><strong>MIME types defined:</strong> <code>text/x-brainfuck</code></p>- </article>diff --git a/libraries/codemirror/mode/clike/index.html b/libraries/codemirror/mode/clike/index.htmldeleted file mode 100644index ad3a807dd9..0000000000--- a/libraries/codemirror/mode/clike/index.html+++ /dev/null@@ -1,380 +0,0 @@-<!doctype html>--<title>CodeMirror: C-like mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<link rel="stylesheet" href="../../addon/hint/show-hint.css">-<script src="../../addon/hint/show-hint.js"></script>-<script src="clike.js"></script>-<style>.CodeMirror {border: 2px inset #dee;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">C-like</a>- </ul>-</div>--<article>-<h2>C-like mode</h2>--<div><textarea id="c-code">-/* C demo code */--#include <zmq.h>-#include <pthread.h>-#include <semaphore.h>-#include <time.h>-#include <stdio.h>-#include <fcntl.h>-#include <malloc.h>--typedef struct {- void* arg_socket;- zmq_msg_t* arg_msg;- char* arg_string;- unsigned long arg_len;- int arg_int, arg_command;-- int signal_fd;- int pad;- void* context;- sem_t sem;-} acl_zmq_context;--#define p(X) (context->arg_##X)--void* zmq_thread(void* context_pointer) {- acl_zmq_context* context = (acl_zmq_context*)context_pointer;- char ok = 'K', err = 'X';- int res;-- while (1) {- while ((res = sem_wait(&context->sem)) == EINTR);- if (res) {write(context->signal_fd, &err, 1); goto cleanup;}- switch(p(command)) {- case 0: goto cleanup;- case 1: p(socket) = zmq_socket(context->context, p(int)); break;- case 2: p(int) = zmq_close(p(socket)); break;- case 3: p(int) = zmq_bind(p(socket), p(string)); break;- case 4: p(int) = zmq_connect(p(socket), p(string)); break;- case 5: p(int) = zmq_getsockopt(p(socket), p(int), (void*)p(string), &p(len)); break;- case 6: p(int) = zmq_setsockopt(p(socket), p(int), (void*)p(string), p(len)); break;- case 7: p(int) = zmq_send(p(socket), p(msg), p(int)); break;- case 8: p(int) = zmq_recv(p(socket), p(msg), p(int)); break;- case 9: p(int) = zmq_poll(p(socket), p(int), p(len)); break;- }- p(command) = errno;- write(context->signal_fd, &ok, 1);- }- cleanup:- close(context->signal_fd);- free(context_pointer);- return 0;-}--void* zmq_thread_init(void* zmq_context, int signal_fd) {- acl_zmq_context* context = malloc(sizeof(acl_zmq_context));- pthread_t thread;-- context->context = zmq_context;- context->signal_fd = signal_fd;- sem_init(&context->sem, 1, 0);- pthread_create(&thread, 0, &zmq_thread, context);- pthread_detach(thread);- return context;-}-</textarea></div>--<h2>C++ example</h2>--<div><textarea id="cpp-code">-#include <iostream>-#include "mystuff/util.h"--namespace {-enum Enum {- VAL1, VAL2, VAL3-};--char32_t unicode_string = U"\U0010FFFF";-string raw_string = R"delim(anything-you-want)delim";--int Helper(const MyType& param) {- return 0;-}-} // namespace--class ForwardDec;--template <class T, class V>-class Class : public BaseClass {- const MyType<T, V> member_;-- public:- const MyType<T, V>& Method() const {- return member_;- }-- void Method2(MyType<T, V>* value);-}--template <class T, class V>-void Class::Method2(MyType<T, V>* value) {- std::out << 1 >> method();- value->Method3(member_);- member_ = value;-}-</textarea></div>--<h2>Objective-C example</h2>--<div><textarea id="objectivec-code">-/*-This is a longer comment-That spans two lines-*/--#import "MyClass.h"-#import <AFramework/AFrameork.h>-@import BFrameworkModule;--NS_ENUM(SomeValues) {- aValue = 1;-};--// A Class Extension with some properties-@interface MyClass ()<AProtocol>-@property(atomic, readwrite, assign) NSInteger anInt;-@property(nonatomic, strong, nullable) NSString *aString;-@end--@implementation YourAppDelegate--- (instancetype)initWithString:(NSString *)aStringVar {- if ((self = [super init])) {- aString = aStringVar;- }- return self;-}--- (BOOL)doSomething:(float)progress {- NSString *myString = @"This is a ObjC string %f ";- myString = [[NSString stringWithFormat:myString, progress] stringByAppendingString:self.aString];- return myString.length > 100 ? NO : YES;-}--@end-</textarea></div>--<h2>Java example</h2>--<div><textarea id="java-code">-import com.demo.util.MyType;-import com.demo.util.MyInterface;--public enum Enum {- VAL1, VAL2, VAL3-}--public class Class<T, V> implements MyInterface {- public static final MyType<T, V> member;-- private class InnerClass {- public int zero() {- return 0;- }- }-- @Override- public MyType method() {- return member;- }-- public void method2(MyType<T, V> value) {- method();- value.method3();- member = value;- }-}-</textarea></div>--<h2>Scala example</h2>--<div><textarea id="scala-code">-object FilterTest extends App {- def filter(xs: List[Int], threshold: Int) = {- def process(ys: List[Int]): List[Int] =- if (ys.isEmpty) ys- else if (ys.head < threshold) ys.head :: process(ys.tail)- else process(ys.tail)- process(xs)- }- println(filter(List(1, 9, 2, 8, 3, 7, 4), 5))-}-</textarea></div>--<h2>Kotlin mode</h2>--<div><textarea id="kotlin-code">-package org.wasabi.http--import java.util.concurrent.Executors-import java.net.InetSocketAddress-import org.wasabi.app.AppConfiguration-import io.netty.bootstrap.ServerBootstrap-import io.netty.channel.nio.NioEventLoopGroup-import io.netty.channel.socket.nio.NioServerSocketChannel-import org.wasabi.app.AppServer--public class HttpServer(private val appServer: AppServer) {-- val bootstrap: ServerBootstrap- val primaryGroup: NioEventLoopGroup- val workerGroup: NioEventLoopGroup-- init {- // Define worker groups- primaryGroup = NioEventLoopGroup()- workerGroup = NioEventLoopGroup()-- // Initialize bootstrap of server- bootstrap = ServerBootstrap()-- bootstrap.group(primaryGroup, workerGroup)- bootstrap.channel(javaClass<NioServerSocketChannel>())- bootstrap.childHandler(NettyPipelineInitializer(appServer))- }-- public fun start(wait: Boolean = true) {- val channel = bootstrap.bind(appServer.configuration.port)?.sync()?.channel()-- if (wait) {- channel?.closeFuture()?.sync()- }- }-- public fun stop() {- // Shutdown all event loops- primaryGroup.shutdownGracefully()- workerGroup.shutdownGracefully()-- // Wait till all threads are terminated- primaryGroup.terminationFuture().sync()- workerGroup.terminationFuture().sync()- }-}-</textarea></div>--<h2>Ceylon mode</h2>--<div><textarea id="ceylon-code">-"Produces the [[stream|Iterable]] that results from repeated- application of the given [[function|next]] to the given- [[first]] element of the stream, until the function first- returns [[finished]]. If the given function never returns- `finished`, the resulting stream is infinite.-- For example:-- loop(0)(2.plus).takeWhile(10.largerThan)-- produces the stream `{ 0, 2, 4, 6, 8 }`."-tagged("Streams")-shared {Element+} loop<Element>(- "The first element of the resulting stream."- Element first)(- "The function that produces the next element of the- stream, given the current element. The function may- return [[finished]] to indicate the end of the- stream."- Element|Finished next(Element element))- => let (start = first)- object satisfies {Element+} {- first => start;- empty => false;- function nextElement(Element element)- => next(element);- iterator()- => object satisfies Iterator<Element> {- variable Element|Finished current = start;- shared actual Element|Finished next() {- if (!is Finished result = current) {- current = nextElement(result);- return result;- }- else {- return finished;- }- }- };- };-</textarea></div>-- <script>- var cEditor = CodeMirror.fromTextArea(document.getElementById("c-code"), {- lineNumbers: true,- matchBrackets: true,- mode: "text/x-csrc"- });- var cppEditor = CodeMirror.fromTextArea(document.getElementById("cpp-code"), {- lineNumbers: true,- matchBrackets: true,- mode: "text/x-c++src"- });- var javaEditor = CodeMirror.fromTextArea(document.getElementById("java-code"), {- lineNumbers: true,- matchBrackets: true,- mode: "text/x-java"- });- var objectivecEditor = CodeMirror.fromTextArea(document.getElementById("objectivec-code"), {- lineNumbers: true,- matchBrackets: true,- mode: "text/x-objectivec"- });- var scalaEditor = CodeMirror.fromTextArea(document.getElementById("scala-code"), {- lineNumbers: true,- matchBrackets: true,- mode: "text/x-scala"- });- var kotlinEditor = CodeMirror.fromTextArea(document.getElementById("kotlin-code"), {- lineNumbers: true,- matchBrackets: true,- mode: "text/x-kotlin"- });- var ceylonEditor = CodeMirror.fromTextArea(document.getElementById("ceylon-code"), {- lineNumbers: true,- matchBrackets: true,- mode: "text/x-ceylon"- });- var mac = CodeMirror.keyMap.default == CodeMirror.keyMap.macDefault;- CodeMirror.keyMap.default[(mac ? "Cmd" : "Ctrl") + "-Space"] = "autocomplete";- </script>-- <p>Simple mode that tries to handle C-like languages as well as it- can. Takes two configuration parameters: <code>keywords</code>, an- object whose property names are the keywords in the language,- and <code>useCPP</code>, which determines whether C preprocessor- directives are recognized.</p>-- <p><strong>MIME types defined:</strong> <code>text/x-csrc</code>- (C), <code>text/x-c++src</code> (C++), <code>text/x-java</code>- (Java), <code>text/x-csharp</code> (C#),- <code>text/x-objectivec</code> (Objective-C),- <code>text/x-scala</code> (Scala), <code>text/x-vertex</code>- <code>x-shader/x-fragment</code> (shader programs),- <code>text/x-squirrel</code> (Squirrel) and- <code>text/x-ceylon</code> (Ceylon)</p>-</article>diff --git a/libraries/codemirror/mode/clike/scala.html b/libraries/codemirror/mode/clike/scala.htmlindex ddbd9a0cae..3d2123c010 100644--- a/libraries/codemirror/mode/clike/scala.html+++ b/libraries/codemirror/mode/clike/scala.html@@ -10,7 +10,7 @@<script src="../../addon/edit/matchbrackets.js"></script><script src="clike.js"></script><div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>+ <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png" alt=""></a><ul><li><a href="../../index.html">Home</a>diff --git a/libraries/codemirror/mode/clike/test.js b/libraries/codemirror/mode/clike/test.jsdeleted file mode 100644index 9441b95956..0000000000--- a/libraries/codemirror/mode/clike/test.js+++ /dev/null@@ -1,165 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({indentUnit: 2}, "text/x-c");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }-- MT("indent",- "[type void] [def foo]([type void*] [variable a], [type int] [variable b]) {",- " [type int] [variable c] [operator =] [variable b] [operator +]",- " [number 1];",- " [keyword return] [operator *][variable a];",- "}");-- MT("indent_switch",- "[keyword switch] ([variable x]) {",- " [keyword case] [number 10]:",- " [keyword return] [number 20];",- " [keyword default]:",- " [variable printf]([string \"foo %c\"], [variable x]);",- "}");-- MT("def",- "[type void] [def foo]() {}",- "[keyword struct] [def bar]{}",- "[keyword enum] [def zot]{}",- "[keyword union] [def ugh]{}",- "[type int] [type *][def baz]() {}");-- MT("def_new_line",- "::[variable std]::[variable SomeTerribleType][operator <][variable T][operator >]",- "[def SomeLongMethodNameThatDoesntFitIntoOneLine]([keyword const] [variable MyType][operator &] [variable param]) {}")-- MT("double_block",- "[keyword for] (;;)",- " [keyword for] (;;)",- " [variable x][operator ++];",- "[keyword return];");-- MT("preprocessor",- "[meta #define FOO 3]",- "[type int] [variable foo];",- "[meta #define BAR\\]",- "[meta 4]",- "[type unsigned] [type int] [variable bar] [operator =] [number 8];",- "[meta #include <baz> ][comment // comment]")-- MT("c_underscores",- "[builtin __FOO];",- "[builtin _Complex];",- "[builtin __aName];",- "[variable _aName];");-- MT("c_types",- "[type int];",- "[type long];",- "[type char];",- "[type short];",- "[type double];",- "[type float];",- "[type unsigned];",- "[type signed];",- "[type void];",- "[type bool];",- "[type foo_t];",- "[variable foo_T];",- "[variable _t];");-- var mode_cpp = CodeMirror.getMode({indentUnit: 2}, "text/x-c++src");- function MTCPP(name) { test.mode(name, mode_cpp, Array.prototype.slice.call(arguments, 1)); }-- MTCPP("cpp14_literal",- "[number 10'000];",- "[number 0b10'000];",- "[number 0x10'000];",- "[string '100000'];");-- MTCPP("ctor_dtor",- "[def Foo::Foo]() {}",- "[def Foo::~Foo]() {}");-- MTCPP("cpp_underscores",- "[builtin __FOO];",- "[builtin _Complex];",- "[builtin __aName];",- "[variable _aName];");-- var mode_objc = CodeMirror.getMode({indentUnit: 2}, "text/x-objectivec");- function MTOBJC(name) { test.mode(name, mode_objc, Array.prototype.slice.call(arguments, 1)); }-- MTOBJC("objc_underscores",- "[builtin __FOO];",- "[builtin _Complex];",- "[builtin __aName];",- "[variable _aName];");-- MTOBJC("objc_interface",- "[keyword @interface] [def foo] {",- " [type int] [variable bar];",- "}",- "[keyword @property] ([keyword atomic], [keyword nullable]) [variable NSString][operator *] [variable a];",- "[keyword @property] ([keyword nonatomic], [keyword assign]) [type int] [variable b];",- "[operator -]([type instancetype])[variable initWithFoo]:([type int])[variable a] " +- "[builtin NS_DESIGNATED_INITIALIZER];",- "[keyword @end]");-- MTOBJC("objc_implementation",- "[keyword @implementation] [def foo] {",- " [type int] [variable bar];",- "}",- "[keyword @property] ([keyword readwrite]) [type SEL] [variable a];",- "[operator -]([type instancetype])[variable initWithFoo]:([type int])[variable a] {",- " [keyword if](([keyword self] [operator =] [[[keyword super] [variable init] ]])) {}",- " [keyword return] [keyword self];",- "}",- "[keyword @end]");-- MTOBJC("objc_types",- "[type int];",- "[type foo_t];",- "[variable foo_T];",- "[type id];",- "[type SEL];",- "[type instancetype];",- "[type Class];",- "[type Protocol];",- "[type BOOL];"- );-- var mode_scala = CodeMirror.getMode({indentUnit: 2}, "text/x-scala");- function MTSCALA(name) { test.mode("scala_" + name, mode_scala, Array.prototype.slice.call(arguments, 1)); }- MTSCALA("nested_comments",- "[comment /*]",- "[comment But wait /* this is a nested comment */ for real]",- "[comment /**** let * me * show * you ****/]",- "[comment ///// let / me / show / you /////]",- "[comment */]");-- var mode_java = CodeMirror.getMode({indentUnit: 2}, "text/x-java");- function MTJAVA(name) { test.mode("java_" + name, mode_java, Array.prototype.slice.call(arguments, 1)); }- MTJAVA("types",- "[type byte];",- "[type short];",- "[type int];",- "[type long];",- "[type float];",- "[type double];",- "[type boolean];",- "[type char];",- "[type void];",- "[type Boolean];",- "[type Byte];",- "[type Character];",- "[type Double];",- "[type Float];",- "[type Integer];",- "[type Long];",- "[type Number];",- "[type Object];",- "[type Short];",- "[type String];",- "[type StringBuffer];",- "[type StringBuilder];",- "[type Void];");-})();diff --git a/libraries/codemirror/mode/clojure/index.html b/libraries/codemirror/mode/clojure/index.htmldeleted file mode 100644index ff9ac3ae62..0000000000--- a/libraries/codemirror/mode/clojure/index.html+++ /dev/null@@ -1,95 +0,0 @@-<!doctype html>--<title>CodeMirror: Clojure mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/closebrackets.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="clojure.js"></script>-<style>.CodeMirror {background: #f8f8f8;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Clojure</a>- </ul>-</div>--<article>-<h2>Clojure mode</h2>-<form><textarea id="code" name="code">-(ns game-of-life- "Conway's Game of Life, based on the work of- Christophe Grand (http://clj-me.cgrand.net/2011/08/19/conways-game-of-life)- and Laurent Petit (https://gist.github.com/1200343).")--;;; Core game of life's algorithm functions--(defn neighbors- "Given a cell's coordinates `[x y]`, returns the coordinates of its- neighbors."- [[x y]]- (for [dx [-1 0 1]- dy (if (zero? dx)- [-1 1]- [-1 0 1])]- [(+ dx x) (+ dy y)]))--(defn step- "Given a set of living `cells`, computes the new set of living cells."- [cells]- (set (for [[cell n] (frequencies (mapcat neighbors cells))- :when (or (= n 3)- (and (= n 2)- (cells cell)))]- cell)))--;;; Utility methods for displaying game on a text terminal--(defn print-grid- "Prints a `grid` of `w` columns and `h` rows, on *out*, representing a- step in the game."- [grid w h]- (doseq [x (range (inc w))- y (range (inc h))]- (when (= y 0) (println))- (print (if (grid [x y])- "[X]"- " . "))))--(defn print-grids- "Prints a sequence of `grids` of `w` columns and `h` rows on *out*,- representing several steps."- [grids w h]- (doseq [grid grids]- (print-grid grid w h)- (println)))--;;; Launches an example grid--(def grid- "`grid` represents the initial set of living cells"- #{[2 1] [2 2] [2 3]})--(print-grids (take 3 (iterate step grid)) 5 5)</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- autoCloseBrackets: true,- lineNumbers: true,- matchBrackets: true,- mode: 'text/x-clojure'- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-clojure</code>.</p>-- </article>diff --git a/libraries/codemirror/mode/clojure/test.js b/libraries/codemirror/mode/clojure/test.jsdeleted file mode 100644index 642473b283..0000000000--- a/libraries/codemirror/mode/clojure/test.js+++ /dev/null@@ -1,384 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function () {- var mode = CodeMirror.getMode({indentUnit: 2}, "clojure");-- function MT(name) {- test.mode(name, mode, Array.prototype.slice.call(arguments, 1));- }-- MT("atoms",- "[atom false]",- "[atom nil]",- "[atom true]"- );-- MT("keywords",- "[atom :foo]",- "[atom ::bar]",- "[atom :foo/bar]",- "[atom :foo.bar/baz]"- );-- MT("numbers",- "[number 42] [number +42] [number -421]",- "[number 42N] [number +42N] [number -42N]",- "[number 0.42] [number +0.42] [number -0.42]",- "[number 42M] [number +42M] [number -42M]",- "[number 42.42M] [number +42.42M] [number -42.42M]",- "[number 1/42] [number +1/42] [number -1/42]",- "[number 0x42af] [number +0x42af] [number -0x42af]",- "[number 0x42AF] [number +0x42AF] [number -0x42AF]",- "[number 1e2] [number 1e+2] [number 1e-2]",- "[number +1e2] [number +1e+2] [number +1e-2]",- "[number -1e2] [number -1e+2] [number -1e-2]",- "[number -1.0e2] [number -0.1e+2] [number -1.01e-2]",- "[number 1E2] [number 1E+2] [number 1E-2]",- "[number +1E2] [number +1E+2] [number +1E-2]",- "[number -1E2] [number -1E+2] [number -1E-2]",- "[number -1.0E2] [number -0.1E+2] [number -1.01E-2]",- "[number 2r101010] [number +2r101010] [number -2r101010]",- "[number 2r101010] [number +2r101010] [number -2r101010]",- "[number 8r52] [number +8r52] [number -8r52]",- "[number 36rhello] [number +36rhello] [number -36rhello]",- "[number 36rz] [number +36rz] [number -36rz]",- "[number 36rZ] [number +36rZ] [number -36rZ]",-- // invalid numbers- "[error 42foo]",- "[error 42Nfoo]",- "[error 42Mfoo]",- "[error 42.42Mfoo]",- "[error 42.42M!]",- "[error 42!]",- "[error 0x42afm]"- );-- MT("characters",- "[string-2 \\1]",- "[string-2 \\a]",- "[string-2 \\a\\b\\c]",- "[string-2 \\#]",- "[string-2 \\\\]",- "[string-2 \\\"]",- "[string-2 \\(]",- "[string-2 \\A]",- "[string-2 \\backspace]",- "[string-2 \\formfeed]",- "[string-2 \\newline]",- "[string-2 \\space]",- "[string-2 \\return]",- "[string-2 \\tab]",- "[string-2 \\u1000]",- "[string-2 \\uAaAa]",- "[string-2 \\u9F9F]",- "[string-2 \\o123]",- "[string-2 \\符]",- "[string-2 \\シ]",- "[string-2 \\ۇ]",- // FIXME- // "[string-2 \\🙂]",-- // invalid character literals- "[error \\abc]",- "[error \\a123]",- "[error \\a!]",- "[error \\newlines]",- "[error \\NEWLINE]",- "[error \\u9F9FF]",- "[error \\o1234]"- );-- MT("strings",- "[string \"I'm a teapot.\"]",- "[string \"I'm a \\\"teapot\\\".\"]",- "[string \"I'm]", // this is- "[string a]", // a multi-line- "[string teapot.\"]" // string-- // TODO unterminated (multi-line) strings?- );-- MT("comments",- "[comment ; this is an in-line comment.]",- "[comment ;; this is a line comment.]",- "[keyword comment]",- "[bracket (][comment comment (foo 1 2 3)][bracket )]"- );-- MT("reader macro characters",- "[meta #][variable _]",- "[meta #][variable -Inf]",- "[meta ##][variable Inf]",- "[meta ##][variable NaN]",- "[meta @][variable x]",- "[meta ^][bracket {][atom :tag] [variable String][bracket }]",- "[meta `][bracket (][builtin f] [variable x][bracket )]",- "[meta ~][variable foo#]",- "[meta '][number 1]",- "[meta '][atom :foo]",- "[meta '][string \"foo\"]",- "[meta '][variable x]",- "[meta '][bracket (][builtin a] [variable b] [variable c][bracket )]",- "[meta '][bracket [[][variable a] [variable b] [variable c][bracket ]]]",- "[meta '][bracket {][variable a] [number 1] [atom :foo] [number 2] [variable c] [number 3][bracket }]",- "[meta '#][bracket {][variable a] [number 1] [atom :foo][bracket }]"- );-- MT("symbols",- "[variable foo!]",- "[variable foo#]",- "[variable foo$]",- "[variable foo&]",- "[variable foo']",- "[variable foo*]",- "[variable foo+]",- "[variable foo-]",- "[variable foo.]",- "[variable foo/bar]",- "[variable foo:bar]",- "[variable foo<]",- "[variable foo=]",- "[variable foo>]",- "[variable foo?]",- "[variable foo_]",- "[variable foo|]",- "[variable foobarBaz]",- "[variable foo¡]",- "[variable 符号]",- "[variable シンボル]",- "[variable ئۇيغۇر]",- "[variable 🙂❤🇺🇸]",-- // invalid symbols- "[error 3foo]",- "[error 3+]",- "[error 3|]",- "[error 3_]"- );-- MT("numbers and other forms",- "[number 42][bracket (][builtin foo][bracket )]",- "[number 42][bracket [[][variable foo][bracket ]]]",- "[number 42][meta #][bracket {][variable foo][bracket }]",- "[number 42][bracket {][atom :foo] [variable bar][bracket }]",- "[number 42][meta `][variable foo]",- "[number 42][meta ~][variable foo]",- "[number 42][meta #][variable foo]"- );-- var specialForms = [".", "catch", "def", "do", "if", "monitor-enter",- "monitor-exit", "new", "quote", "recur", "set!", "throw", "try", "var"];-- MT("should highlight special forms as keywords",- typeTokenPairs("keyword", specialForms)- );-- var coreSymbols1 = [- "*", "*'", "*1", "*2", "*3", "*agent*", "*allow-unresolved-vars*", "*assert*",- "*clojure-version*", "*command-line-args*", "*compile-files*", "*compile-path*", "*compiler-options*",- "*data-readers*", "*default-data-reader-fn*", "*e", "*err*", "*file*", "*flush-on-newline*", "*fn-loader*",- "*in*", "*math-context*", "*ns*", "*out*", "*print-dup*", "*print-length*", "*print-level*", "*print-meta*",- "*print-namespace-maps*", "*print-readably*", "*read-eval*", "*reader-resolver*", "*source-path*",- "*suppress-read*", "*unchecked-math*", "*use-context-classloader*", "*verbose-defrecords*",- "*warn-on-reflection*", "+", "+'", "-", "-'", "->", "->>", "->ArrayChunk", "->Eduction", "->Vec", "->VecNode",- "->VecSeq", "-cache-protocol-fn", "-reset-methods", "..", "/", "<", "<=", "=", "==", ">", ">=",- "EMPTY-NODE", "Inst", "StackTraceElement->vec", "Throwable->map", "accessor", "aclone", "add-classpath",- "add-watch", "agent", "agent-error", "agent-errors", "aget", "alength", "alias", "all-ns", "alter",- "alter-meta!", "alter-var-root", "amap", "ancestors", "and", "any?", "apply", "areduce", "array-map",- "as->", "aset", "aset-boolean", "aset-byte", "aset-char", "aset-double", "aset-float", "aset-int",- "aset-long", "aset-short", "assert", "assoc", "assoc!", "assoc-in", "associative?", "atom", "await",- "await-for", "await1", "bases", "bean", "bigdec", "bigint", "biginteger", "binding", "bit-and", "bit-and-not",- "bit-clear", "bit-flip", "bit-not", "bit-or", "bit-set", "bit-shift-left", "bit-shift-right", "bit-test",- "bit-xor", "boolean", "boolean-array", "boolean?", "booleans", "bound-fn", "bound-fn*", "bound?",- "bounded-count", "butlast", "byte", "byte-array", "bytes", "bytes?", "case", "cast", "cat", "char",- "char-array", "char-escape-string", "char-name-string", "char?", "chars", "chunk", "chunk-append",- "chunk-buffer", "chunk-cons", "chunk-first", "chunk-next", "chunk-rest", "chunked-seq?", "class", "class?",- "clear-agent-errors", "clojure-version", "coll?", "comment", "commute", "comp", "comparator", "compare",- "compare-and-set!", "compile", "complement", "completing", "concat", "cond", "cond->", "cond->>", "condp",- "conj", "conj!", "cons", "constantly", "construct-proxy", "contains?", "count", "counted?", "create-ns",- "create-struct", "cycle", "dec", "dec'", "decimal?", "declare", "dedupe", "default-data-readers", "definline",- "definterface", "defmacro", "defmethod", "defmulti", "defn", "defn-", "defonce", "defprotocol", "defrecord",- "defstruct", "deftype", "delay", "delay?", "deliver", "denominator", "deref", "derive", "descendants",- "destructure", "disj", "disj!", "dissoc", "dissoc!", "distinct", "distinct?", "doall", "dorun", "doseq",- "dosync", "dotimes", "doto", "double", "double-array", "double?", "doubles", "drop", "drop-last", "drop-while",- "eduction", "empty", "empty?", "ensure", "ensure-reduced", "enumeration-seq", "error-handler", "error-mode",- "eval", "even?", "every-pred", "every?", "ex-data", "ex-info", "extend", "extend-protocol", "extend-type",- "extenders", "extends?", "false?", "ffirst", "file-seq", "filter", "filterv", "find", "find-keyword", "find-ns",- "find-protocol-impl", "find-protocol-method", "find-var", "first", "flatten", "float", "float-array", "float?",- "floats", "flush", "fn", "fn?", "fnext", "fnil", "for", "force", "format", "frequencies", "future", "future-call",- "future-cancel", "future-cancelled?", "future-done?", "future?", "gen-class", "gen-interface", "gensym", "get",- "get-in", "get-method", "get-proxy-class", "get-thread-bindings", "get-validator", "group-by", "halt-when", "hash",- "hash-combine", "hash-map", "hash-ordered-coll", "hash-set", "hash-unordered-coll", "ident?", "identical?",- "identity", "if-let", "if-not", "if-some", "ifn?", "import", "in-ns", "inc", "inc'", "indexed?", "init-proxy",- "inst-ms", "inst-ms*", "inst?", "instance?", "int", "int-array", "int?", "integer?", "interleave", "intern",- "interpose", "into", "into-array", "ints", "io!", "isa?", "iterate", "iterator-seq", "juxt", "keep", "keep-indexed",- "key", "keys", "keyword", "keyword?", "last", "lazy-cat", "lazy-seq", "let", "letfn", "line-seq", "list", "list*",- "list?", "load", "load-file", "load-reader", "load-string", "loaded-libs", "locking", "long", "long-array", "longs",- "loop", "macroexpand", "macroexpand-1", "make-array", "make-hierarchy", "map", "map-entry?", "map-indexed", "map?",- "mapcat", "mapv", "max", "max-key", "memfn", "memoize", "merge", "merge-with", "meta", "method-sig", "methods"];-- var coreSymbols2 = [- "min", "min-key", "mix-collection-hash", "mod", "munge", "name", "namespace", "namespace-munge", "nat-int?",- "neg-int?", "neg?", "newline", "next", "nfirst", "nil?", "nnext", "not", "not-any?", "not-empty", "not-every?",- "not=", "ns", "ns-aliases", "ns-imports", "ns-interns", "ns-map", "ns-name", "ns-publics", "ns-refers", "ns-resolve",- "ns-unalias", "ns-unmap", "nth", "nthnext", "nthrest", "num", "number?", "numerator", "object-array", "odd?", "or",- "parents", "partial", "partition", "partition-all", "partition-by", "pcalls", "peek", "persistent!", "pmap", "pop",- "pop!", "pop-thread-bindings", "pos-int?", "pos?", "pr", "pr-str", "prefer-method", "prefers",- "primitives-classnames", "print", "print-ctor", "print-dup", "print-method", "print-simple", "print-str", "printf",- "println", "println-str", "prn", "prn-str", "promise", "proxy", "proxy-call-with-super", "proxy-mappings",- "proxy-name", "proxy-super", "push-thread-bindings", "pvalues", "qualified-ident?", "qualified-keyword?",- "qualified-symbol?", "quot", "rand", "rand-int", "rand-nth", "random-sample", "range", "ratio?", "rational?",- "rationalize", "re-find", "re-groups", "re-matcher", "re-matches", "re-pattern", "re-seq", "read", "read-line",- "read-string", "reader-conditional", "reader-conditional?", "realized?", "record?", "reduce", "reduce-kv", "reduced",- "reduced?", "reductions", "ref", "ref-history-count", "ref-max-history", "ref-min-history", "ref-set", "refer",- "refer-clojure", "reify", "release-pending-sends", "rem", "remove", "remove-all-methods", "remove-method", "remove-ns",- "remove-watch", "repeat", "repeatedly", "replace", "replicate", "require", "reset!", "reset-meta!", "reset-vals!",- "resolve", "rest", "restart-agent", "resultset-seq", "reverse", "reversible?", "rseq", "rsubseq", "run!", "satisfies?",- "second", "select-keys", "send", "send-off", "send-via", "seq", "seq?", "seqable?", "seque", "sequence", "sequential?",- "set", "set-agent-send-executor!", "set-agent-send-off-executor!", "set-error-handler!", "set-error-mode!",- "set-validator!", "set?", "short", "short-array", "shorts", "shuffle", "shutdown-agents", "simple-ident?",- "simple-keyword?", "simple-symbol?", "slurp", "some", "some->", "some->>", "some-fn", "some?", "sort", "sort-by",- "sorted-map", "sorted-map-by", "sorted-set", "sorted-set-by", "sorted?", "special-symbol?", "spit", "split-at",- "split-with", "str", "string?", "struct", "struct-map", "subs", "subseq", "subvec", "supers", "swap!", "swap-vals!",- "symbol", "symbol?", "sync", "tagged-literal", "tagged-literal?", "take", "take-last", "take-nth", "take-while", "test",- "the-ns", "thread-bound?", "time", "to-array", "to-array-2d", "trampoline", "transduce", "transient", "tree-seq",- "true?", "type", "unchecked-add", "unchecked-add-int", "unchecked-byte", "unchecked-char", "unchecked-dec",- "unchecked-dec-int", "unchecked-divide-int", "unchecked-double", "unchecked-float", "unchecked-inc", "unchecked-inc-int",- "unchecked-int", "unchecked-long", "unchecked-multiply", "unchecked-multiply-int", "unchecked-negate",- "unchecked-negate-int", "unchecked-remainder-int", "unchecked-short", "unchecked-subtract", "unchecked-subtract-int",- "underive", "unquote", "unquote-splicing", "unreduced", "unsigned-bit-shift-right", "update", "update-in",- "update-proxy", "uri?", "use", "uuid?", "val", "vals", "var-get", "var-set", "var?", "vary-meta", "vec", "vector",- "vector-of", "vector?", "volatile!", "volatile?", "vreset!", "vswap!", "when", "when-first", "when-let", "when-not",- "when-some", "while", "with-bindings", "with-bindings*", "with-in-str", "with-loading-context", "with-local-vars",- "with-meta", "with-open", "with-out-str", "with-precision", "with-redefs", "with-redefs-fn", "xml-seq", "zero?",- "zipmap"- ];-- MT("should highlight core symbols as keywords (part 1/2)",- typeTokenPairs("keyword", coreSymbols1)- );-- MT("should highlight core symbols as keywords (part 2/2)",- typeTokenPairs("keyword", coreSymbols2)- );-- MT("should properly indent forms in list literals",- "[bracket (][builtin foo] [atom :a] [number 1] [atom true] [atom nil][bracket )]",- "",- "[bracket (][builtin foo] [atom :a]",- " [number 1]",- " [atom true]",- " [atom nil][bracket )]",- "",- "[bracket (][builtin foo] [atom :a] [number 1]",- " [atom true]",- " [atom nil][bracket )]",- "",- "[bracket (]",- " [builtin foo]",- " [atom :a]",- " [number 1]",- " [atom true]",- " [atom nil][bracket )]",- "",- "[bracket (][builtin foo] [bracket [[][atom :a][bracket ]]]",- " [number 1]",- " [atom true]",- " [atom nil][bracket )]"- );-- MT("should properly indent forms in vector literals",- "[bracket [[][atom :a] [number 1] [atom true] [atom nil][bracket ]]]",- "",- "[bracket [[][atom :a]",- " [number 1]",- " [atom true]",- " [atom nil][bracket ]]]",- "",- "[bracket [[][atom :a] [number 1]",- " [atom true]",- " [atom nil][bracket ]]]",- "",- "[bracket [[]",- " [variable foo]",- " [atom :a]",- " [number 1]",- " [atom true]",- " [atom nil][bracket ]]]"- );-- MT("should properly indent forms in map literals",- "[bracket {][atom :a] [atom :a] [atom :b] [number 1] [atom :c] [atom true] [atom :d] [atom nil] [bracket }]",- "",- "[bracket {][atom :a] [atom :a]",- " [atom :b] [number 1]",- " [atom :c] [atom true]",- " [atom :d] [atom nil][bracket }]",- "",- "[bracket {][atom :a]",- " [atom :a]",- " [atom :b]",- " [number 1]",- " [atom :c]",- " [atom true]",- " [atom :d]",- " [atom nil][bracket }]",- "",- "[bracket {]",- " [atom :a] [atom :a]",- " [atom :b] [number 1]",- " [atom :c] [atom true]",- " [atom :d] [atom nil][bracket }]"- );-- MT("should properly indent forms in set literals",- "[meta #][bracket {][atom :a] [number 1] [atom true] [atom nil] [bracket }]",- "",- "[meta #][bracket {][atom :a]",- " [number 1]",- " [atom true]",- " [atom nil][bracket }]",- "",- "[meta #][bracket {]",- " [atom :a]",- " [number 1]",- " [atom true]",- " [atom nil][bracket }]"- );-- var haveBodyParameter = [- "->", "->>", "as->", "binding", "bound-fn", "case", "catch", "cond",- "cond->", "cond->>", "condp", "def", "definterface", "defmethod", "defn",- "defmacro", "defprotocol", "defrecord", "defstruct", "deftype", "do",- "doseq", "dotimes", "doto", "extend", "extend-protocol", "extend-type",- "fn", "for", "future", "if", "if-let", "if-not", "if-some", "let",- "letfn", "locking", "loop", "ns", "proxy", "reify", "some->", "some->>",- "struct-map", "try", "when", "when-first", "when-let", "when-not",- "when-some", "while", "with-bindings", "with-bindings*", "with-in-str",- "with-loading-context", "with-local-vars", "with-meta", "with-open",- "with-out-str", "with-precision", "with-redefs", "with-redefs-fn"];-- function testFormsThatHaveBodyParameter(forms) {- for (var i = 0; i < forms.length; i++) {- MT("should indent body argument of `" + forms[i] + "` by `options.indentUnit` spaces",- "[bracket (][keyword " + forms[i] + "] [variable foo] [variable bar]",- " [variable baz]",- " [variable qux][bracket )]"- );- }- }-- testFormsThatHaveBodyParameter(haveBodyParameter);-- MT("should indent body argument of `comment` by `options.indentUnit` spaces",- "[bracket (][comment comment foo bar]",- "[comment baz]",- "[comment qux][bracket )]"- );-- function typeTokenPairs(type, tokens) {- return "[" + type + " " + tokens.join("] [" + type + " ") + "]";- }-})();diff --git a/libraries/codemirror/mode/cmake/index.html b/libraries/codemirror/mode/cmake/index.htmldeleted file mode 100644index 6dcfd7b4a8..0000000000--- a/libraries/codemirror/mode/cmake/index.html+++ /dev/null@@ -1,129 +0,0 @@-<!doctype html>--<title>CodeMirror: CMake mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="cmake.js"></script>-<style>- .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}- .cm-s-default span.cm-arrow { color: red; }- </style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">CMake</a>- </ul>-</div>--<article>-<h2>CMake mode</h2>-<form><textarea id="code" name="code">-# vim: syntax=cmake-if(NOT CMAKE_BUILD_TYPE)- # default to Release build for GCC builds- set(CMAKE_BUILD_TYPE Release CACHE STRING- "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel."- FORCE)-endif()-message(STATUS "cmake version ${CMAKE_VERSION}")-if(POLICY CMP0025)- cmake_policy(SET CMP0025 OLD) # report Apple's Clang as just Clang-endif()-if(POLICY CMP0042)- cmake_policy(SET CMP0042 NEW) # MACOSX_RPATH-endif()--project (x265)-cmake_minimum_required (VERSION 2.8.8) # OBJECT libraries require 2.8.8-include(CheckIncludeFiles)-include(CheckFunctionExists)-include(CheckSymbolExists)-include(CheckCXXCompilerFlag)--# X265_BUILD must be incremented each time the public API is changed-set(X265_BUILD 48)-configure_file("${PROJECT_SOURCE_DIR}/x265.def.in"- "${PROJECT_BINARY_DIR}/x265.def")-configure_file("${PROJECT_SOURCE_DIR}/x265_config.h.in"- "${PROJECT_BINARY_DIR}/x265_config.h")--SET(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" "${CMAKE_MODULE_PATH}")--# System architecture detection-string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" SYSPROC)-set(X86_ALIASES x86 i386 i686 x86_64 amd64)-list(FIND X86_ALIASES "${SYSPROC}" X86MATCH)-if("${SYSPROC}" STREQUAL "" OR X86MATCH GREATER "-1")- message(STATUS "Detected x86 target processor")- set(X86 1)- add_definitions(-DX265_ARCH_X86=1)- if("${CMAKE_SIZEOF_VOID_P}" MATCHES 8)- set(X64 1)- add_definitions(-DX86_64=1)- endif()-elseif(${SYSPROC} STREQUAL "armv6l")- message(STATUS "Detected ARM target processor")- set(ARM 1)- add_definitions(-DX265_ARCH_ARM=1 -DHAVE_ARMV6=1)-else()- message(STATUS "CMAKE_SYSTEM_PROCESSOR value `${CMAKE_SYSTEM_PROCESSOR}` is unknown")- message(STATUS "Please add this value near ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE}")-endif()--if(UNIX)- list(APPEND PLATFORM_LIBS pthread)- find_library(LIBRT rt)- if(LIBRT)- list(APPEND PLATFORM_LIBS rt)- endif()- find_package(Numa)- if(NUMA_FOUND)- list(APPEND CMAKE_REQUIRED_LIBRARIES ${NUMA_LIBRARY})- check_symbol_exists(numa_node_of_cpu numa.h NUMA_V2)- if(NUMA_V2)- add_definitions(-DHAVE_LIBNUMA)- message(STATUS "libnuma found, building with support for NUMA nodes")- list(APPEND PLATFORM_LIBS ${NUMA_LIBRARY})- link_directories(${NUMA_LIBRARY_DIR})- include_directories(${NUMA_INCLUDE_DIR})- endif()- endif()- mark_as_advanced(LIBRT NUMA_FOUND)-endif(UNIX)--if(X64 AND NOT WIN32)- option(ENABLE_PIC "Enable Position Independent Code" ON)-else()- option(ENABLE_PIC "Enable Position Independent Code" OFF)-endif(X64 AND NOT WIN32)--# Compiler detection-if(CMAKE_GENERATOR STREQUAL "Xcode")- set(XCODE 1)-endif()-if (APPLE)- add_definitions(-DMACOS)-endif()-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: "text/x-cmake",- matchBrackets: true,- indentUnit: 4- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-cmake</code>.</p>-- </article>diff --git a/libraries/codemirror/mode/cobol/index.html b/libraries/codemirror/mode/cobol/index.htmldeleted file mode 100644index 1e08740529..0000000000--- a/libraries/codemirror/mode/cobol/index.html+++ /dev/null@@ -1,210 +0,0 @@-<!doctype html>--<title>CodeMirror: COBOL mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<link rel="stylesheet" href="../../theme/neat.css">-<link rel="stylesheet" href="../../theme/elegant.css">-<link rel="stylesheet" href="../../theme/erlang-dark.css">-<link rel="stylesheet" href="../../theme/night.css">-<link rel="stylesheet" href="../../theme/monokai.css">-<link rel="stylesheet" href="../../theme/cobalt.css">-<link rel="stylesheet" href="../../theme/eclipse.css">-<link rel="stylesheet" href="../../theme/rubyblue.css">-<link rel="stylesheet" href="../../theme/lesser-dark.css">-<link rel="stylesheet" href="../../theme/xq-dark.css">-<link rel="stylesheet" href="../../theme/xq-light.css">-<link rel="stylesheet" href="../../theme/ambiance.css">-<link rel="stylesheet" href="../../theme/blackboard.css">-<link rel="stylesheet" href="../../theme/vibrant-ink.css">-<link rel="stylesheet" href="../../theme/solarized.css">-<link rel="stylesheet" href="../../theme/twilight.css">-<link rel="stylesheet" href="../../theme/midnight.css">-<link rel="stylesheet" href="../../addon/dialog/dialog.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="cobol.js"></script>-<script src="../../addon/selection/active-line.js"></script>-<script src="../../addon/search/search.js"></script>-<script src="../../addon/dialog/dialog.js"></script>-<script src="../../addon/search/searchcursor.js"></script>-<style>- .CodeMirror {- border: 1px solid #eee;- font-size : 20px;- height : auto !important;- }- .CodeMirror-activeline-background {background: #555555 !important;}- </style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">COBOL</a>- </ul>-</div>--<article>-<h2>COBOL mode</h2>-- <p> Select Theme <select onchange="selectTheme()" id="selectTheme">- <option>default</option>- <option>ambiance</option>- <option>blackboard</option>- <option>cobalt</option>- <option>eclipse</option>- <option>elegant</option>- <option>erlang-dark</option>- <option>lesser-dark</option>- <option>midnight</option>- <option>monokai</option>- <option>neat</option>- <option>night</option>- <option>rubyblue</option>- <option>solarized dark</option>- <option>solarized light</option>- <option selected>twilight</option>- <option>vibrant-ink</option>- <option>xq-dark</option>- <option>xq-light</option>- </select> Select Font Size <select onchange="selectFontsize()" id="selectFontSize">- <option value="13px">13px</option>- <option value="14px">14px</option>- <option value="16px">16px</option>- <option value="18px">18px</option>- <option value="20px" selected="selected">20px</option>- <option value="24px">24px</option>- <option value="26px">26px</option>- <option value="28px">28px</option>- <option value="30px">30px</option>- <option value="32px">32px</option>- <option value="34px">34px</option>- <option value="36px">36px</option>- </select>-<label for="checkBoxReadOnly">Read-only</label>-<input type="checkbox" id="checkBoxReadOnly" onchange="selectReadOnly()">-<label for="id_tabToIndentSpace">Insert Spaces on Tab</label>-<input type="checkbox" id="id_tabToIndentSpace" onchange="tabToIndentSpace()">-</p>-<textarea id="code" name="code">----------1---------2---------3---------4---------5---------6---------7---------8-12345678911234567892123456789312345678941234567895123456789612345678971234567898-000010 IDENTIFICATION DIVISION. MODTGHERE-000020 PROGRAM-ID. SAMPLE.-000030 AUTHOR. TEST SAM.-000040 DATE-WRITTEN. 5 February 2013-000041-000042* A sample program just to show the form.-000043* The program copies its input to the output,-000044* and counts the number of records.-000045* At the end this number is printed.-000046-000050 ENVIRONMENT DIVISION.-000060 INPUT-OUTPUT SECTION.-000070 FILE-CONTROL.-000080 SELECT STUDENT-FILE ASSIGN TO SYSIN-000090 ORGANIZATION IS LINE SEQUENTIAL.-000100 SELECT PRINT-FILE ASSIGN TO SYSOUT-000110 ORGANIZATION IS LINE SEQUENTIAL.-000120-000130 DATA DIVISION.-000140 FILE SECTION.-000150 FD STUDENT-FILE-000160 RECORD CONTAINS 43 CHARACTERS-000170 DATA RECORD IS STUDENT-IN.-000180 01 STUDENT-IN PIC X(43).-000190-000200 FD PRINT-FILE-000210 RECORD CONTAINS 80 CHARACTERS-000220 DATA RECORD IS PRINT-LINE.-000230 01 PRINT-LINE PIC X(80).-000240-000250 WORKING-STORAGE SECTION.-000260 01 DATA-REMAINS-SWITCH PIC X(2) VALUE SPACES.-000261 01 RECORDS-WRITTEN PIC 99.-000270-000280 01 DETAIL-LINE.-000290 05 FILLER PIC X(7) VALUE SPACES.-000300 05 RECORD-IMAGE PIC X(43).-000310 05 FILLER PIC X(30) VALUE SPACES.-000311-000312 01 SUMMARY-LINE.-000313 05 FILLER PIC X(7) VALUE SPACES.-000314 05 TOTAL-READ PIC 99.-000315 05 FILLER PIC X VALUE SPACE.-000316 05 FILLER PIC X(17)-000317 VALUE 'Records were read'.-000318 05 FILLER PIC X(53) VALUE SPACES.-000319-000320 PROCEDURE DIVISION.-000321-000330 PREPARE-SENIOR-REPORT.-000340 OPEN INPUT STUDENT-FILE-000350 OUTPUT PRINT-FILE.-000351 MOVE ZERO TO RECORDS-WRITTEN.-000360 READ STUDENT-FILE-000370 AT END MOVE 'NO' TO DATA-REMAINS-SWITCH-000380 END-READ.-000390 PERFORM PROCESS-RECORDS-000410 UNTIL DATA-REMAINS-SWITCH = 'NO'.-000411 PERFORM PRINT-SUMMARY.-000420 CLOSE STUDENT-FILE-000430 PRINT-FILE.-000440 STOP RUN.-000450-000460 PROCESS-RECORDS.-000470 MOVE STUDENT-IN TO RECORD-IMAGE.-000480 MOVE DETAIL-LINE TO PRINT-LINE.-000490 WRITE PRINT-LINE.-000500 ADD 1 TO RECORDS-WRITTEN.-000510 READ STUDENT-FILE-000520 AT END MOVE 'NO' TO DATA-REMAINS-SWITCH-000530 END-READ.-000540-000550 PRINT-SUMMARY.-000560 MOVE RECORDS-WRITTEN TO TOTAL-READ.-000570 MOVE SUMMARY-LINE TO PRINT-LINE.-000571 WRITE PRINT-LINE.-000572-000580-</textarea>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- matchBrackets: true,- mode: "text/x-cobol",- theme : "twilight",- styleActiveLine: true,- showCursorWhenSelecting : true,- });- function selectTheme() {- var themeInput = document.getElementById("selectTheme");- var theme = themeInput.options[themeInput.selectedIndex].innerHTML;- editor.setOption("theme", theme);- }- function selectFontsize() {- var fontSizeInput = document.getElementById("selectFontSize");- var fontSize = fontSizeInput.options[fontSizeInput.selectedIndex].innerHTML;- editor.getWrapperElement().style.fontSize = fontSize;- editor.refresh();- }- function selectReadOnly() {- editor.setOption("readOnly", document.getElementById("checkBoxReadOnly").checked);- }- function tabToIndentSpace() {- if (document.getElementById("id_tabToIndentSpace").checked) {- editor.setOption("extraKeys", {Tab: function(cm) { cm.replaceSelection(" ", "end"); }});- } else {- editor.setOption("extraKeys", {Tab: function(cm) { cm.replaceSelection(" ", "end"); }});- }- }- </script>- </article>diff --git a/libraries/codemirror/mode/coffeescript/index.html b/libraries/codemirror/mode/coffeescript/index.htmldeleted file mode 100644index 650ccf5db8..0000000000--- a/libraries/codemirror/mode/coffeescript/index.html+++ /dev/null@@ -1,740 +0,0 @@-<!doctype html>--<title>CodeMirror: CoffeeScript mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="coffeescript.js"></script>-<style>.CodeMirror {border-top: 1px solid silver; border-bottom: 1px solid silver;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">CoffeeScript</a>- </ul>-</div>--<article>-<h2>CoffeeScript mode</h2>-<form><textarea id="code" name="code">-# CoffeeScript mode for CodeMirror-# Copyright (c) 2011 Jeff Pickhardt, released under-# the MIT License.-#-# Modified from the Python CodeMirror mode, which also is-# under the MIT License Copyright (c) 2010 Timothy Farrell.-#-# The following script, Underscore.coffee, is used to-# demonstrate CoffeeScript mode for CodeMirror.-#-# To download CoffeeScript mode for CodeMirror, go to:-# https://github.com/pickhardt/coffeescript-codemirror-mode--# **Underscore.coffee-# (c) 2011 Jeremy Ashkenas, DocumentCloud Inc.**-# Underscore is freely distributable under the terms of the-# [MIT license](http://en.wikipedia.org/wiki/MIT_License).-# Portions of Underscore are inspired by or borrowed from-# [Prototype.js](http://prototypejs.org/api), Oliver Steele's-# [Functional](http://osteele.com), and John Resig's-# [Micro-Templating](http://ejohn.org).-# For all details and documentation:-# http://documentcloud.github.com/underscore/---# Baseline setup-# ----------------# Establish the root object, `window` in the browser, or `global` on the server.-root = this---# Save the previous value of the `_` variable.-previousUnderscore = root._--### Multiline- comment-###--# Establish the object that gets thrown to break out of a loop iteration.-# `StopIteration` is SOP on Mozilla.-breaker = if typeof(StopIteration) is 'undefined' then '__break__' else StopIteration---#### Docco style single line comment (title)---# Helper function to escape **RegExp** contents, because JS doesn't have one.-escapeRegExp = (string) -> string.replace(/([.*+?^${}()|[\]\/\\])/g, '\\$1')---# Save bytes in the minified (but not gzipped) version:-ArrayProto = Array.prototype-ObjProto = Object.prototype---# Create quick reference variables for speed access to core prototypes.-slice = ArrayProto.slice-unshift = ArrayProto.unshift-toString = ObjProto.toString-hasOwnProperty = ObjProto.hasOwnProperty-propertyIsEnumerable = ObjProto.propertyIsEnumerable---# All **ECMA5** native implementations we hope to use are declared here.-nativeForEach = ArrayProto.forEach-nativeMap = ArrayProto.map-nativeReduce = ArrayProto.reduce-nativeReduceRight = ArrayProto.reduceRight-nativeFilter = ArrayProto.filter-nativeEvery = ArrayProto.every-nativeSome = ArrayProto.some-nativeIndexOf = ArrayProto.indexOf-nativeLastIndexOf = ArrayProto.lastIndexOf-nativeIsArray = Array.isArray-nativeKeys = Object.keys---# Create a safe reference to the Underscore object for use below.-_ = (obj) -> new wrapper(obj)---# Export the Underscore object for **CommonJS**.-if typeof(exports) != 'undefined' then exports._ = _---# Export Underscore to global scope.-root._ = _---# Current version.-_.VERSION = '1.1.0'---# Collection Functions-# ----------------------# The cornerstone, an **each** implementation.-# Handles objects implementing **forEach**, arrays, and raw objects.-_.each = (obj, iterator, context) ->- try- if nativeForEach and obj.forEach is nativeForEach- obj.forEach iterator, context- else if _.isNumber obj.length- iterator.call context, obj[i], i, obj for i in [0...obj.length]- else- iterator.call context, val, key, obj for own key, val of obj- catch e- throw e if e isnt breaker- obj---# Return the results of applying the iterator to each element. Use JavaScript-# 1.6's version of **map**, if possible.-_.map = (obj, iterator, context) ->- return obj.map(iterator, context) if nativeMap and obj.map is nativeMap- results = []- _.each obj, (value, index, list) ->- results.push iterator.call context, value, index, list- results---# **Reduce** builds up a single result from a list of values. Also known as-# **inject**, or **foldl**. Uses JavaScript 1.8's version of **reduce**, if possible.-_.reduce = (obj, iterator, memo, context) ->- if nativeReduce and obj.reduce is nativeReduce- iterator = _.bind iterator, context if context- return obj.reduce iterator, memo- _.each obj, (value, index, list) ->- memo = iterator.call context, memo, value, index, list- memo---# The right-associative version of **reduce**, also known as **foldr**. Uses-# JavaScript 1.8's version of **reduceRight**, if available.-_.reduceRight = (obj, iterator, memo, context) ->- if nativeReduceRight and obj.reduceRight is nativeReduceRight- iterator = _.bind iterator, context if context- return obj.reduceRight iterator, memo- reversed = _.clone(_.toArray(obj)).reverse()- _.reduce reversed, iterator, memo, context---# Return the first value which passes a truth test.-_.detect = (obj, iterator, context) ->- result = null- _.each obj, (value, index, list) ->- if iterator.call context, value, index, list- result = value- _.breakLoop()- result---# Return all the elements that pass a truth test. Use JavaScript 1.6's-# **filter**, if it exists.-_.filter = (obj, iterator, context) ->- return obj.filter iterator, context if nativeFilter and obj.filter is nativeFilter- results = []- _.each obj, (value, index, list) ->- results.push value if iterator.call context, value, index, list- results---# Return all the elements for which a truth test fails.-_.reject = (obj, iterator, context) ->- results = []- _.each obj, (value, index, list) ->- results.push value if not iterator.call context, value, index, list- results---# Determine whether all of the elements match a truth test. Delegate to-# JavaScript 1.6's **every**, if it is present.-_.every = (obj, iterator, context) ->- iterator ||= _.identity- return obj.every iterator, context if nativeEvery and obj.every is nativeEvery- result = true- _.each obj, (value, index, list) ->- _.breakLoop() unless (result = result and iterator.call(context, value, index, list))- result---# Determine if at least one element in the object matches a truth test. Use-# JavaScript 1.6's **some**, if it exists.-_.some = (obj, iterator, context) ->- iterator ||= _.identity- return obj.some iterator, context if nativeSome and obj.some is nativeSome- result = false- _.each obj, (value, index, list) ->- _.breakLoop() if (result = iterator.call(context, value, index, list))- result---# Determine if a given value is included in the array or object,-# based on `===`.-_.include = (obj, target) ->- return _.indexOf(obj, target) isnt -1 if nativeIndexOf and obj.indexOf is nativeIndexOf- return true for own key, val of obj when val is target- false---# Invoke a method with arguments on every item in a collection.-_.invoke = (obj, method) ->- args = _.rest arguments, 2- (if method then val[method] else val).apply(val, args) for val in obj---# Convenience version of a common use case of **map**: fetching a property.-_.pluck = (obj, key) ->- _.map(obj, (val) -> val[key])---# Return the maximum item or (item-based computation).-_.max = (obj, iterator, context) ->- return Math.max.apply(Math, obj) if not iterator and _.isArray(obj)- result = computed: -Infinity- _.each obj, (value, index, list) ->- computed = if iterator then iterator.call(context, value, index, list) else value- computed >= result.computed and (result = {value: value, computed: computed})- result.value---# Return the minimum element (or element-based computation).-_.min = (obj, iterator, context) ->- return Math.min.apply(Math, obj) if not iterator and _.isArray(obj)- result = computed: Infinity- _.each obj, (value, index, list) ->- computed = if iterator then iterator.call(context, value, index, list) else value- computed < result.computed and (result = {value: value, computed: computed})- result.value---# Sort the object's values by a criterion produced by an iterator.-_.sortBy = (obj, iterator, context) ->- _.pluck(((_.map obj, (value, index, list) ->- {value: value, criteria: iterator.call(context, value, index, list)}- ).sort((left, right) ->- a = left.criteria; b = right.criteria- if a < b then -1 else if a > b then 1 else 0- )), 'value')---# Use a comparator function to figure out at what index an object should-# be inserted so as to maintain order. Uses binary search.-_.sortedIndex = (array, obj, iterator) ->- iterator ||= _.identity- low = 0- high = array.length- while low < high- mid = (low + high) >> 1- if iterator(array[mid]) < iterator(obj) then low = mid + 1 else high = mid- low---# Convert anything iterable into a real, live array.-_.toArray = (iterable) ->- return [] if (!iterable)- return iterable.toArray() if (iterable.toArray)- return iterable if (_.isArray(iterable))- return slice.call(iterable) if (_.isArguments(iterable))- _.values(iterable)---# Return the number of elements in an object.-_.size = (obj) -> _.toArray(obj).length---# Array Functions-# -----------------# Get the first element of an array. Passing `n` will return the first N-# values in the array. Aliased as **head**. The `guard` check allows it to work-# with **map**.-_.first = (array, n, guard) ->- if n and not guard then slice.call(array, 0, n) else array[0]---# Returns everything but the first entry of the array. Aliased as **tail**.-# Especially useful on the arguments object. Passing an `index` will return-# the rest of the values in the array from that index onward. The `guard`-# check allows it to work with **map**.-_.rest = (array, index, guard) ->- slice.call(array, if _.isUndefined(index) or guard then 1 else index)---# Get the last element of an array.-_.last = (array) -> array[array.length - 1]---# Trim out all falsy values from an array.-_.compact = (array) -> item for item in array when item---# Return a completely flattened version of an array.-_.flatten = (array) ->- _.reduce array, (memo, value) ->- return memo.concat(_.flatten(value)) if _.isArray value- memo.push value- memo- , []---# Return a version of the array that does not contain the specified value(s).-_.without = (array) ->- values = _.rest arguments- val for val in _.toArray(array) when not _.include values, val---# Produce a duplicate-free version of the array. If the array has already-# been sorted, you have the option of using a faster algorithm.-_.uniq = (array, isSorted) ->- memo = []- for el, i in _.toArray array- memo.push el if i is 0 || (if isSorted is true then _.last(memo) isnt el else not _.include(memo, el))- memo---# Produce an array that contains every item shared between all the-# passed-in arrays.-_.intersect = (array) ->- rest = _.rest arguments- _.select _.uniq(array), (item) ->- _.all rest, (other) ->- _.indexOf(other, item) >= 0---# Zip together multiple lists into a single array -- elements that share-# an index go together.-_.zip = ->- length = _.max _.pluck arguments, 'length'- results = new Array length- for i in [0...length]- results[i] = _.pluck arguments, String i- results---# If the browser doesn't supply us with **indexOf** (I'm looking at you, MSIE),-# we need this function. Return the position of the first occurrence of an-# item in an array, or -1 if the item is not included in the array.-_.indexOf = (array, item) ->- return array.indexOf item if nativeIndexOf and array.indexOf is nativeIndexOf- i = 0; l = array.length- while l - i- if array[i] is item then return i else i++- -1---# Provide JavaScript 1.6's **lastIndexOf**, delegating to the native function,-# if possible.-_.lastIndexOf = (array, item) ->- return array.lastIndexOf(item) if nativeLastIndexOf and array.lastIndexOf is nativeLastIndexOf- i = array.length- while i- if array[i] is item then return i else i--- -1---# Generate an integer Array containing an arithmetic progression. A port of-# [the native Python **range** function](http://docs.python.org/library/functions.html#range).-_.range = (start, stop, step) ->- a = arguments- solo = a.length <= 1- i = start = if solo then 0 else a[0]- stop = if solo then a[0] else a[1]- step = a[2] or 1- len = Math.ceil((stop - start) / step)- return [] if len <= 0- range = new Array len- idx = 0- loop- return range if (if step > 0 then i - stop else stop - i) >= 0- range[idx] = i- idx++- i+= step---# Function Functions-# --------------------# Create a function bound to a given object (assigning `this`, and arguments,-# optionally). Binding with arguments is also known as **curry**.-_.bind = (func, obj) ->- args = _.rest arguments, 2- -> func.apply obj or root, args.concat arguments---# Bind all of an object's methods to that object. Useful for ensuring that-# all callbacks defined on an object belong to it.-_.bindAll = (obj) ->- funcs = if arguments.length > 1 then _.rest(arguments) else _.functions(obj)- _.each funcs, (f) -> obj[f] = _.bind obj[f], obj- obj---# Delays a function for the given number of milliseconds, and then calls-# it with the arguments supplied.-_.delay = (func, wait) ->- args = _.rest arguments, 2- setTimeout((-> func.apply(func, args)), wait)---# Memoize an expensive function by storing its results.-_.memoize = (func, hasher) ->- memo = {}- hasher or= _.identity- ->- key = hasher.apply this, arguments- return memo[key] if key of memo- memo[key] = func.apply this, arguments---# Defers a function, scheduling it to run after the current call stack has-# cleared.-_.defer = (func) ->- _.delay.apply _, [func, 1].concat _.rest arguments---# Returns the first function passed as an argument to the second,-# allowing you to adjust arguments, run code before and after, and-# conditionally execute the original function.-_.wrap = (func, wrapper) ->- -> wrapper.apply wrapper, [func].concat arguments---# Returns a function that is the composition of a list of functions, each-# consuming the return value of the function that follows.-_.compose = ->- funcs = arguments- ->- args = arguments- for i in [funcs.length - 1..0] by -1- args = [funcs[i].apply(this, args)]- args[0]---# Object Functions-# ------------------# Retrieve the names of an object's properties.-_.keys = nativeKeys or (obj) ->- return _.range 0, obj.length if _.isArray(obj)- key for key, val of obj---# Retrieve the values of an object's properties.-_.values = (obj) ->- _.map obj, _.identity---# Return a sorted list of the function names available in Underscore.-_.functions = (obj) ->- _.filter(_.keys(obj), (key) -> _.isFunction(obj[key])).sort()---# Extend a given object with all of the properties in a source object.-_.extend = (obj) ->- for source in _.rest(arguments)- obj[key] = val for key, val of source- obj---# Create a (shallow-cloned) duplicate of an object.-_.clone = (obj) ->- return obj.slice 0 if _.isArray obj- _.extend {}, obj---# Invokes interceptor with the obj, and then returns obj.-# The primary purpose of this method is to "tap into" a method chain,-# in order to perform operations on intermediate results within- the chain.-_.tap = (obj, interceptor) ->- interceptor obj- obj---# Perform a deep comparison to check if two objects are equal.-_.isEqual = (a, b) ->- # Check object identity.- return true if a is b- # Different types?- atype = typeof(a); btype = typeof(b)- return false if atype isnt btype- # Basic equality test (watch out for coercions).- return true if `a == b`- # One is falsy and the other truthy.- return false if (!a and b) or (a and !b)- # One of them implements an `isEqual()`?- return a.isEqual(b) if a.isEqual- # Check dates' integer values.- return a.getTime() is b.getTime() if _.isDate(a) and _.isDate(b)- # Both are NaN?- return false if _.isNaN(a) and _.isNaN(b)- # Compare regular expressions.- if _.isRegExp(a) and _.isRegExp(b)- return a.source is b.source and- a.global is b.global and- a.ignoreCase is b.ignoreCase and- a.multiline is b.multiline- # If a is not an object by this point, we can't handle it.- return false if atype isnt 'object'- # Check for different array lengths before comparing contents.- return false if a.length and (a.length isnt b.length)- # Nothing else worked, deep compare the contents.- aKeys = _.keys(a); bKeys = _.keys(b)- # Different object sizes?- return false if aKeys.length isnt bKeys.length- # Recursive comparison of contents.- return false for key, val of a when !(key of b) or !_.isEqual(val, b[key])- true---# Is a given array or object empty?-_.isEmpty = (obj) ->- return obj.length is 0 if _.isArray(obj) or _.isString(obj)- return false for own key of obj- true---# Is a given value a DOM element?-_.isElement = (obj) -> obj and obj.nodeType is 1---# Is a given value an array?-_.isArray = nativeIsArray or (obj) -> !!(obj and obj.concat and obj.unshift and not obj.callee)---# Is a given variable an arguments object?-_.isArguments = (obj) -> obj and obj.callee---# Is the given value a function?-_.isFunction = (obj) -> !!(obj and obj.constructor and obj.call and obj.apply)---# Is the given value a string?-_.isString = (obj) -> !!(obj is '' or (obj and obj.charCodeAt and obj.substr))---# Is a given value a number?-_.isNumber = (obj) -> (obj is +obj) or toString.call(obj) is '[object Number]'---# Is a given value a boolean?-_.isBoolean = (obj) -> obj is true or obj is false---# Is a given value a Date?-_.isDate = (obj) -> !!(obj and obj.getTimezoneOffset and obj.setUTCFullYear)---# Is the given value a regular expression?-_.isRegExp = (obj) -> !!(obj and obj.exec and (obj.ignoreCase or obj.ignoreCase is false))---# Is the given value NaN -- this one is interesting. `NaN != NaN`, and-# `isNaN(undefined) == true`, so we make sure it's a number first.-_.isNaN = (obj) -> _.isNumber(obj) and window.isNaN(obj)---# Is a given value equal to null?-_.isNull = (obj) -> obj is null---# Is a given variable undefined?-_.isUndefined = (obj) -> typeof obj is 'undefined'---# Utility Functions-# -------------------# Run Underscore.js in noConflict mode, returning the `_` variable to its-# previous owner. Returns a reference to the Underscore object.-_.noConflict = ->- root._ = previousUnderscore- this---# Keep the identity function around for default iterators.-_.identity = (value) -> value---# Run a function `n` times.-_.times = (n, iterator, context) ->- iterator.call context, i for i in [0...n]---# Break out of the middle of an iteration.-_.breakLoop = -> throw breaker---# Add your own custom functions to the Underscore object, ensuring that-# they're correctly added to the OOP wrapper as well.-_.mixin = (obj) ->- for name in _.functions(obj)- addToWrapper name, _[name] = obj[name]---# Generate a unique integer id (unique within the entire client session).-# Useful for temporary DOM ids.-idCounter = 0-_.uniqueId = (prefix) ->- (prefix or '') + idCounter++---# By default, Underscore uses **ERB**-style template delimiters, change the-# following template settings to use alternative delimiters.-_.templateSettings = {- start: '<%'- end: '%>'- interpolate: /<%=(.+?)%>/g-}---# JavaScript templating a-la **ERB**, pilfered from John Resig's-# *Secrets of the JavaScript Ninja*, page 83.-# Single-quote fix from Rick Strahl.-# With alterations for arbitrary delimiters, and to preserve whitespace.-_.template = (str, data) ->- c = _.templateSettings- endMatch = new RegExp("'(?=[^"+c.end.substr(0, 1)+"]*"+escapeRegExp(c.end)+")","g")- fn = new Function 'obj',- 'var p=[],print=function(){p.push.apply(p,arguments);};' +- 'with(obj||{}){p.push(\'' +- str.replace(/\r/g, '\\r')- .replace(/\n/g, '\\n')- .replace(/\t/g, '\\t')- .replace(endMatch,"���")- .split("'").join("\\'")- .split("���").join("'")- .replace(c.interpolate, "',$1,'")- .split(c.start).join("');")- .split(c.end).join("p.push('") +- "');}return p.join('');"- if data then fn(data) else fn---# Aliases-# ---------_.forEach = _.each-_.foldl = _.inject = _.reduce-_.foldr = _.reduceRight-_.select = _.filter-_.all = _.every-_.any = _.some-_.contains = _.include-_.head = _.first-_.tail = _.rest-_.methods = _.functions---# Setup the OOP Wrapper-# -----------------------# If Underscore is called as a function, it returns a wrapped object that-# can be used OO-style. This wrapper holds altered versions of all the-# underscore functions. Wrapped objects may be chained.-wrapper = (obj) ->- this._wrapped = obj- this---# Helper function to continue chaining intermediate results.-result = (obj, chain) ->- if chain then _(obj).chain() else obj---# A method to easily add functions to the OOP wrapper.-addToWrapper = (name, func) ->- wrapper.prototype[name] = ->- args = _.toArray arguments- unshift.call args, this._wrapped- result func.apply(_, args), this._chain---# Add all ofthe Underscore functions to the wrapper object.-_.mixin _---# Add all mutator Array functions to the wrapper.-_.each ['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], (name) ->- method = Array.prototype[name]- wrapper.prototype[name] = ->- method.apply(this._wrapped, arguments)- result(this._wrapped, this._chain)---# Add all accessor Array functions to the wrapper.-_.each ['concat', 'join', 'slice'], (name) ->- method = Array.prototype[name]- wrapper.prototype[name] = ->- result(method.apply(this._wrapped, arguments), this._chain)---# Start chaining a wrapped Underscore object.-wrapper::chain = ->- this._chain = true- this---# Extracts the result from a wrapped and chained object.-wrapper::value = -> this._wrapped-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});- </script>-- <p><strong>MIME types defined:</strong> <code>application/vnd.coffeescript</code>, <code>text/coffeescript</code>, <code>text/x-coffeescript</code>.</p>-- <p>The CoffeeScript mode was written by Jeff Pickhardt.</p>-- </article>diff --git a/libraries/codemirror/mode/commonlisp/index.html b/libraries/codemirror/mode/commonlisp/index.htmldeleted file mode 100644index a5b907e831..0000000000--- a/libraries/codemirror/mode/commonlisp/index.html+++ /dev/null@@ -1,177 +0,0 @@-<!doctype html>--<title>CodeMirror: Common Lisp mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="commonlisp.js"></script>-<style>.CodeMirror {background: #f8f8f8;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Common Lisp</a>- </ul>-</div>--<article>-<h2>Common Lisp mode</h2>-<form><textarea id="code" name="code">(in-package :cl-postgres)--;; These are used to synthesize reader and writer names for integer-;; reading/writing functions when the amount of bytes and the-;; signedness is known. Both the macro that creates the functions and-;; some macros that use them create names this way.-(eval-when (:compile-toplevel :load-toplevel :execute)- (defun integer-reader-name (bytes signed)- (intern (with-standard-io-syntax- (format nil "~a~a~a~a" '#:read- (if signed "" '#:u) '#:int bytes))))- (defun integer-writer-name (bytes signed)- (intern (with-standard-io-syntax- (format nil "~a~a~a~a" '#:write- (if signed "" '#:u) '#:int bytes)))))--(defmacro integer-reader (bytes)- "Create a function to read integers from a binary stream."- (let ((bits (* bytes 8)))- (labels ((return-form (signed)- (if signed- `(if (logbitp ,(1- bits) result)- (dpb result (byte ,(1- bits) 0) -1)- result)- `result))- (generate-reader (signed)- `(defun ,(integer-reader-name bytes signed) (socket)- (declare (type stream socket)- #.*optimize*)- ,(if (= bytes 1)- `(let ((result (the (unsigned-byte 8) (read-byte socket))))- (declare (type (unsigned-byte 8) result))- ,(return-form signed))- `(let ((result 0))- (declare (type (unsigned-byte ,bits) result))- ,@(loop :for byte :from (1- bytes) :downto 0- :collect `(setf (ldb (byte 8 ,(* 8 byte)) result)- (the (unsigned-byte 8) (read-byte socket))))- ,(return-form signed))))))- `(progn-;; This causes weird errors on SBCL in some circumstances. Disabled for now.-;; (declaim (inline ,(integer-reader-name bytes t)-;; ,(integer-reader-name bytes nil)))- (declaim (ftype (function (t) (signed-byte ,bits))- ,(integer-reader-name bytes t)))- ,(generate-reader t)- (declaim (ftype (function (t) (unsigned-byte ,bits))- ,(integer-reader-name bytes nil)))- ,(generate-reader nil)))))--(defmacro integer-writer (bytes)- "Create a function to write integers to a binary stream."- (let ((bits (* 8 bytes)))- `(progn- (declaim (inline ,(integer-writer-name bytes t)- ,(integer-writer-name bytes nil)))- (defun ,(integer-writer-name bytes nil) (socket value)- (declare (type stream socket)- (type (unsigned-byte ,bits) value)- #.*optimize*)- ,@(if (= bytes 1)- `((write-byte value socket))- (loop :for byte :from (1- bytes) :downto 0- :collect `(write-byte (ldb (byte 8 ,(* byte 8)) value)- socket)))- (values))- (defun ,(integer-writer-name bytes t) (socket value)- (declare (type stream socket)- (type (signed-byte ,bits) value)- #.*optimize*)- ,@(if (= bytes 1)- `((write-byte (ldb (byte 8 0) value) socket))- (loop :for byte :from (1- bytes) :downto 0- :collect `(write-byte (ldb (byte 8 ,(* byte 8)) value)- socket)))- (values)))))--;; All the instances of the above that we need.--(integer-reader 1)-(integer-reader 2)-(integer-reader 4)-(integer-reader 8)--(integer-writer 1)-(integer-writer 2)-(integer-writer 4)--(defun write-bytes (socket bytes)- "Write a byte-array to a stream."- (declare (type stream socket)- (type (simple-array (unsigned-byte 8)) bytes)- #.*optimize*)- (write-sequence bytes socket))--(defun write-str (socket string)- "Write a null-terminated string to a stream \(encoding it when UTF-8-support is enabled.)."- (declare (type stream socket)- (type string string)- #.*optimize*)- (enc-write-string string socket)- (write-uint1 socket 0))--(declaim (ftype (function (t unsigned-byte)- (simple-array (unsigned-byte 8) (*)))- read-bytes))-(defun read-bytes (socket length)- "Read a byte array of the given length from a stream."- (declare (type stream socket)- (type fixnum length)- #.*optimize*)- (let ((result (make-array length :element-type '(unsigned-byte 8))))- (read-sequence result socket)- result))--(declaim (ftype (function (t) string) read-str))-(defun read-str (socket)- "Read a null-terminated string from a stream. Takes care of encoding-when UTF-8 support is enabled."- (declare (type stream socket)- #.*optimize*)- (enc-read-string socket :null-terminated t))--(defun skip-bytes (socket length)- "Skip a given number of bytes in a binary stream."- (declare (type stream socket)- (type (unsigned-byte 32) length)- #.*optimize*)- (dotimes (i length)- (read-byte socket)))--(defun skip-str (socket)- "Skip a null-terminated string."- (declare (type stream socket)- #.*optimize*)- (loop :for char :of-type fixnum = (read-byte socket)- :until (zerop char)))--(defun ensure-socket-is-closed (socket &key abort)- (when (open-stream-p socket)- (handler-case- (close socket :abort abort)- (error (error)- (warn "Ignoring the error which happened while trying to close PostgreSQL socket: ~A" error)))))-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {lineNumbers: true});- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-common-lisp</code>.</p>-- </article>diff --git a/libraries/codemirror/mode/crystal/index.html b/libraries/codemirror/mode/crystal/index.htmldeleted file mode 100644index ae4218eec5..0000000000--- a/libraries/codemirror/mode/crystal/index.html+++ /dev/null@@ -1,116 +0,0 @@-<!doctype html>--<title>CodeMirror: Crystal mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="crystal.js"></script>-<style>- .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}- .cm-s-default span.cm-arrow { color: red; }-</style>--<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Crystal</a>- </ul>-</div>--<article>-<h2>Crystal mode</h2>-<form><textarea id="code" name="code">-# Features of Crystal-# - Ruby-inspired syntax.-# - Statically type-checked but without having to specify the type of variables or method arguments.-# - Be able to call C code by writing bindings to it in Crystal.-# - Have compile-time evaluation and generation of code, to avoid boilerplate code.-# - Compile to efficient native code.--# A very basic HTTP server-require "http/server"--server = HTTP::Server.new(8080) do |request|- HTTP::Response.ok "text/plain", "Hello world, got #{request.path}!"-end--puts "Listening on http://0.0.0.0:8080"-server.listen--module Foo- abstract def abstract_method : String-- @[AlwaysInline]- def with_foofoo- with Foo.new(self) yield- end-- struct Foo- def initialize(@foo : ::Foo)- end-- def hello_world- @foo.abstract_method- end- end-end--class Bar- include Foo-- @@foobar = 12345-- def initialize(@bar : Int32)- end-- macro alias_method(name, method)- def {{ name }}(*args)- {{ method }}(*args)- end- end-- def a_method- "Hello, World"- end-- alias_method abstract_method, a_method-- def show_instance_vars : Nil- {% for var in @type.instance_vars %}- puts "@{{ var }} = #{ @{{ var }} }"- {% end %}- end-end--class Baz < Bar; end--lib LibC- fun c_puts = "puts"(str : Char*) : Int-end--baz = Baz.new(100)-baz.show_instance_vars-baz.with_foofoo do- LibC.c_puts hello_world-end-</textarea></form>-<script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: "text/x-crystal",- matchBrackets: true,- indentUnit: 2- });-</script>--<p><strong>MIME types defined:</strong> <code>text/x-crystal</code>.</p>-</article>diff --git a/libraries/codemirror/mode/css/gss.html b/libraries/codemirror/mode/css/gss.htmlindex 447929bf21..17d24f8ac9 100644--- a/libraries/codemirror/mode/css/gss.html+++ b/libraries/codemirror/mode/css/gss.html@@ -13,7 +13,7 @@<script src="../../addon/hint/css-hint.js"></script><style>.CodeMirror {background: #f8f8f8;}</style><div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>+ <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png" alt=""></a><ul><li><a href="../../index.html">Home</a>diff --git a/libraries/codemirror/mode/css/gss_test.js b/libraries/codemirror/mode/css/gss_test.jsdeleted file mode 100644index 2401bc4968..0000000000--- a/libraries/codemirror/mode/css/gss_test.js+++ /dev/null@@ -1,17 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- "use strict";-- var mode = CodeMirror.getMode({indentUnit: 2}, "text/x-gss");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), "gss"); }-- MT("atComponent",- "[def @component] {",- "[tag foo] {",- " [property color]: [keyword black];",- "}",- "}");--})();diff --git a/libraries/codemirror/mode/css/index.html b/libraries/codemirror/mode/css/index.htmldeleted file mode 100644index b39f126597..0000000000--- a/libraries/codemirror/mode/css/index.html+++ /dev/null@@ -1,75 +0,0 @@-<!doctype html>--<title>CodeMirror: CSS mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<link rel="stylesheet" href="../../addon/hint/show-hint.css">-<script src="../../lib/codemirror.js"></script>-<script src="css.js"></script>-<script src="../../addon/hint/show-hint.js"></script>-<script src="../../addon/hint/css-hint.js"></script>-<style>.CodeMirror {background: #f8f8f8;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">CSS</a>- </ul>-</div>--<article>-<h2>CSS mode</h2>-<form><textarea id="code" name="code">-/* Some example CSS */--@import url("something.css");--body {- margin: 0;- padding: 3em 6em;- font-family: tahoma, arial, sans-serif;- color: #000;-}--#navigation a {- font-weight: bold;- text-decoration: none !important;-}--h1 {- font-size: 2.5em;-}--h2 {- font-size: 1.7em;-}--h1:before, h2:before {- content: "::";-}--code {- font-family: courier, monospace;- font-size: 80%;- color: #418A8A;-}-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- extraKeys: {"Ctrl-Space": "autocomplete"}- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/css</code>, <code>text/x-scss</code> (<a href="scss.html">demo</a>), <code>text/x-less</code> (<a href="less.html">demo</a>).</p>-- <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#css_*">normal</a>, <a href="../../test/index.html#verbose,css_*">verbose</a>.</p>-- </article>diff --git a/libraries/codemirror/mode/css/less.html b/libraries/codemirror/mode/css/less.htmlindex 6ceb7a0342..f7611ef087 100644--- a/libraries/codemirror/mode/css/less.html+++ b/libraries/codemirror/mode/css/less.html@@ -10,7 +10,7 @@<script src="css.js"></script><style>.CodeMirror {border: 1px solid #ddd; line-height: 1.2;}</style><div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>+ <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png" alt=""></a><ul><li><a href="../../index.html">Home</a>diff --git a/libraries/codemirror/mode/css/less_test.js b/libraries/codemirror/mode/css/less_test.jsdeleted file mode 100644index abeb6a2040..0000000000--- a/libraries/codemirror/mode/css/less_test.js+++ /dev/null@@ -1,54 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- "use strict";-- var mode = CodeMirror.getMode({indentUnit: 2}, "text/x-less");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), "less"); }-- MT("variable",- "[variable-2 @base]: [atom #f04615];",- "[qualifier .class] {",- " [property width]: [variable&callee percentage]([number 0.5]); [comment // returns `50%`]",- " [property color]: [variable&callee saturate]([variable-2 @base], [number 5%]);",- "}");-- MT("amp",- "[qualifier .child], [qualifier .sibling] {",- " [qualifier .parent] [atom &] {",- " [property color]: [keyword black];",- " }",- " [atom &] + [atom &] {",- " [property color]: [keyword red];",- " }",- "}");-- MT("mixin",- "[qualifier .mixin] ([variable dark]; [variable-2 @color]) {",- " [property color]: [variable&callee darken]([variable-2 @color], [number 10%]);",- "}",- "[qualifier .mixin] ([variable light]; [variable-2 @color]) {",- " [property color]: [variable&callee lighten]([variable-2 @color], [number 10%]);",- "}",- "[qualifier .mixin] ([variable-2 @_]; [variable-2 @color]) {",- " [property display]: [atom block];",- "}",- "[variable-2 @switch]: [variable light];",- "[qualifier .class] {",- " [qualifier .mixin]([variable-2 @switch]; [atom #888]);",- "}");-- MT("nest",- "[qualifier .one] {",- " [def @media] ([property width]: [number 400px]) {",- " [property font-size]: [number 1.2em];",- " [def @media] [attribute print] [keyword and] [property color] {",- " [property color]: [keyword blue];",- " }",- " }",- "}");--- MT("interpolation", ".@{[variable foo]} { [property font-weight]: [atom bold]; }");-})();diff --git a/libraries/codemirror/mode/css/scss.html b/libraries/codemirror/mode/css/scss.htmlindex 3e42ea6535..525bab2fec 100644--- a/libraries/codemirror/mode/css/scss.html+++ b/libraries/codemirror/mode/css/scss.html@@ -10,7 +10,7 @@<script src="css.js"></script><style>.CodeMirror {background: #f8f8f8;}</style><div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>+ <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png" alt=""></a><ul><li><a href="../../index.html">Home</a>diff --git a/libraries/codemirror/mode/css/scss_test.js b/libraries/codemirror/mode/css/scss_test.jsdeleted file mode 100644index 68afc664b6..0000000000--- a/libraries/codemirror/mode/css/scss_test.js+++ /dev/null@@ -1,110 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({indentUnit: 2}, "text/x-scss");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), "scss"); }-- MT('url_with_quotation',- "[tag foo] { [property background]:[variable&callee url]([string test.jpg]) }");-- MT('url_with_double_quotes',- "[tag foo] { [property background]:[variable&callee url]([string \"test.jpg\"]) }");-- MT('url_with_single_quotes',- "[tag foo] { [property background]:[variable&callee url]([string \'test.jpg\']) }");-- MT('string',- "[def @import] [string \"compass/css3\"]");-- MT('important_keyword',- "[tag foo] { [property background]:[variable&callee url]([string \'test.jpg\']) [keyword !important] }");-- MT('variable',- "[variable-2 $blue]:[atom #333]");-- MT('variable_as_attribute',- "[tag foo] { [property color]:[variable-2 $blue] }");-- MT('numbers',- "[tag foo] { [property padding]:[number 10px] [number 10] [number 10em] [number 8in] }");-- MT('number_percentage',- "[tag foo] { [property width]:[number 80%] }");-- MT('selector',- "[builtin #hello][qualifier .world]{}");-- MT('singleline_comment',- "[comment // this is a comment]");-- MT('multiline_comment',- "[comment /*foobar*/]");-- MT('attribute_with_hyphen',- "[tag foo] { [property font-size]:[number 10px] }");-- MT('string_after_attribute',- "[tag foo] { [property content]:[string \"::\"] }");-- MT('directives',- "[def @include] [qualifier .mixin]");-- MT('basic_structure',- "[tag p] { [property background]:[keyword red]; }");-- MT('nested_structure',- "[tag p] { [tag a] { [property color]:[keyword red]; } }");-- MT('mixin',- "[def @mixin] [tag table-base] {}");-- MT('number_without_semicolon',- "[tag p] {[property width]:[number 12]}",- "[tag a] {[property color]:[keyword red];}");-- MT('atom_in_nested_block',- "[tag p] { [tag a] { [property color]:[atom #000]; } }");-- MT('interpolation_in_property',- "[tag foo] { #{[variable-2 $hello]}:[number 2]; }");-- MT('interpolation_in_selector',- "[tag foo]#{[variable-2 $hello]} { [property color]:[atom #000]; }");-- MT('interpolation_error',- "[tag foo]#{[variable foo]} { [property color]:[atom #000]; }");-- MT("divide_operator",- "[tag foo] { [property width]:[number 4] [operator /] [number 2] }");-- MT('nested_structure_with_id_selector',- "[tag p] { [builtin #hello] { [property color]:[keyword red]; } }");-- MT('indent_mixin',- "[def @mixin] [tag container] (",- " [variable-2 $a]: [number 10],",- " [variable-2 $b]: [number 10])",- "{}");-- MT('indent_nested',- "[tag foo] {",- " [tag bar] {",- " }",- "}");-- MT('indent_parentheses',- "[tag foo] {",- " [property color]: [variable&callee darken]([variable-2 $blue],",- " [number 9%]);",- "}");-- MT('indent_vardef',- "[variable-2 $name]:",- " [string 'val'];",- "[tag tag] {",- " [tag inner] {",- " [property margin]: [number 3px];",- " }",- "}");-})();diff --git a/libraries/codemirror/mode/css/test.js b/libraries/codemirror/mode/css/test.jsdeleted file mode 100644index 64352d74fc..0000000000--- a/libraries/codemirror/mode/css/test.js+++ /dev/null@@ -1,217 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({indentUnit: 2}, "css");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }-- // Error, because "foobarhello" is neither a known type or property, but- // property was expected (after "and"), and it should be in parentheses.- MT("atMediaUnknownType",- "[def @media] [attribute screen] [keyword and] [error foobarhello] { }");-- // Soft error, because "foobarhello" is not a known property or type.- MT("atMediaUnknownProperty",- "[def @media] [attribute screen] [keyword and] ([error foobarhello]) { }");-- // Make sure nesting works with media queries- MT("atMediaMaxWidthNested",- "[def @media] [attribute screen] [keyword and] ([property max-width]: [number 25px]) { [tag foo] { } }");-- MT("atMediaFeatureValueKeyword",- "[def @media] ([property orientation]: [keyword landscape]) { }");-- MT("atMediaUnknownFeatureValueKeyword",- "[def @media] ([property orientation]: [error upsidedown]) { }");-- MT("atMediaUppercase",- "[def @MEDIA] ([property orienTAtion]: [keyword landScape]) { }");-- MT("tagSelector",- "[tag foo] { }");-- MT("classSelector",- "[qualifier .foo-bar_hello] { }");-- MT("idSelector",- "[builtin #foo] { [error #foo] }");-- MT("tagSelectorUnclosed",- "[tag foo] { [property margin]: [number 0] } [tag bar] { }");-- MT("tagStringNoQuotes",- "[tag foo] { [property font-family]: [variable hello] [variable world]; }");-- MT("tagStringDouble",- "[tag foo] { [property font-family]: [string \"hello world\"]; }");-- MT("tagStringSingle",- "[tag foo] { [property font-family]: [string 'hello world']; }");-- MT("tagColorKeyword",- "[tag foo] {",- " [property color]: [keyword black];",- " [property color]: [keyword navy];",- " [property color]: [keyword yellow];",- "}");-- MT("tagColorHex3",- "[tag foo] { [property background]: [atom #fff]; }");-- MT("tagColorHex4",- "[tag foo] { [property background]: [atom #ffff]; }");-- MT("tagColorHex6",- "[tag foo] { [property background]: [atom #ffffff]; }");-- MT("tagColorHex8",- "[tag foo] { [property background]: [atom #ffffffff]; }");-- MT("tagColorHex5Invalid",- "[tag foo] { [property background]: [atom&error #fffff]; }");-- MT("tagColorHexInvalid",- "[tag foo] { [property background]: [atom&error #ffg]; }");-- MT("tagNegativeNumber",- "[tag foo] { [property margin]: [number -5px]; }");-- MT("tagPositiveNumber",- "[tag foo] { [property padding]: [number 5px]; }");-- MT("tagVendor",- "[tag foo] { [meta -foo-][property box-sizing]: [meta -foo-][atom border-box]; }");-- MT("tagBogusProperty",- "[tag foo] { [property&error barhelloworld]: [number 0]; }");-- MT("tagTwoProperties",- "[tag foo] { [property margin]: [number 0]; [property padding]: [number 0]; }");-- MT("tagTwoPropertiesURL",- "[tag foo] { [property background]: [variable&callee url]([string //example.com/foo.png]); [property padding]: [number 0]; }");-- MT("indent_tagSelector",- "[tag strong], [tag em] {",- " [property background]: [variable&callee rgba](",- " [number 255], [number 255], [number 0], [number .2]",- " );",- "}");-- MT("indent_atMedia",- "[def @media] {",- " [tag foo] {",- " [property color]:",- " [keyword yellow];",- " }",- "}");-- MT("indent_comma",- "[tag foo] {",- " [property font-family]: [variable verdana],",- " [atom sans-serif];",- "}");-- MT("indent_parentheses",- "[tag foo]:[variable-3 before] {",- " [property background]: [variable&callee url](",- "[string blahblah]",- "[string etc]",- "[string ]) [keyword !important];",- "}");-- MT("font_face",- "[def @font-face] {",- " [property font-family]: [string 'myfont'];",- " [error nonsense]: [string 'abc'];",- " [property src]: [variable&callee url]([string http://blah]),",- " [variable&callee url]([string http://foo]);",- "}");-- MT("empty_url",- "[def @import] [variable&callee url]() [attribute screen];");-- MT("parens",- "[qualifier .foo] {",- " [property background-image]: [variable&callee fade]([atom #000], [number 20%]);",- " [property border-image]: [variable&callee linear-gradient](",- " [atom to] [atom bottom],",- " [variable&callee fade]([atom #000], [number 20%]) [number 0%],",- " [variable&callee fade]([atom #000], [number 20%]) [number 100%]",- " );",- "}");-- MT("css_variable",- ":[variable-3 root] {",- " [variable-2 --main-color]: [atom #06c];",- "}",- "[tag h1][builtin #foo] {",- " [property color]: [variable&callee var]([variable-2 --main-color]);",- "}");-- MT("blank_css_variable",- ":[variable-3 root] {",- " [variable-2 --]: [atom #06c];",- "}",- "[tag h1][builtin #foo] {",- " [property color]: [variable&callee var]([variable-2 --]);",- "}");-- MT("supports",- "[def @supports] ([keyword not] (([property text-align-last]: [atom justify]) [keyword or] ([meta -moz-][property text-align-last]: [atom justify])) {",- " [property text-align-last]: [atom justify];",- "}");-- MT("document",- "[def @document] [variable&callee url]([string http://blah]),",- " [variable&callee url-prefix]([string https://]),",- " [variable&callee domain]([string blah.com]),",- " [variable&callee regexp]([string \".*blah.+\"]) {",- " [builtin #id] {",- " [property background-color]: [keyword white];",- " }",- " [tag foo] {",- " [property font-family]: [variable Verdana], [atom sans-serif];",- " }",- "}");-- MT("document_url",- "[def @document] [variable&callee url]([string http://blah]) { [qualifier .class] { } }");-- MT("document_urlPrefix",- "[def @document] [variable&callee url-prefix]([string https://]) { [builtin #id] { } }");-- MT("document_domain",- "[def @document] [variable&callee domain]([string blah.com]) { [tag foo] { } }");-- MT("document_regexp",- "[def @document] [variable&callee regexp]([string \".*blah.+\"]) { [builtin #id] { } }");-- MT("counter-style",- "[def @counter-style] [variable binary] {",- " [property system]: [atom numeric];",- " [property symbols]: [number 0] [number 1];",- " [property suffix]: [string \".\"];",- " [property range]: [atom infinite];",- " [property speak-as]: [atom numeric];",- "}");-- MT("counter-style-additive-symbols",- "[def @counter-style] [variable simple-roman] {",- " [property system]: [atom additive];",- " [property additive-symbols]: [number 10] [variable X], [number 5] [variable V], [number 1] [variable I];",- " [property range]: [number 1] [number 49];",- "}");-- MT("counter-style-use",- "[tag ol][qualifier .roman] { [property list-style]: [variable simple-roman]; }");-- MT("counter-style-symbols",- "[tag ol] { [property list-style]: [variable&callee symbols]([atom cyclic] [string \"*\"] [string \"\\2020\"] [string \"\\2021\"] [string \"\\A7\"]); }");-- MT("comment-does-not-disrupt",- "[def @font-face] [comment /* foo */] {",- " [property src]: [variable&callee url]([string x]);",- " [property font-family]: [variable One];",- "}")-})();diff --git a/libraries/codemirror/mode/cypher/index.html b/libraries/codemirror/mode/cypher/index.htmldeleted file mode 100644index 0db7a6a7c6..0000000000--- a/libraries/codemirror/mode/cypher/index.html+++ /dev/null@@ -1,64 +0,0 @@-<!doctype html>--<title>CodeMirror: Cypher Mode for CodeMirror</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css" />-<link rel="stylesheet" href="../../theme/neo.css" />-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="cypher.js"></script>-<style>-.CodeMirror {- border-top: 1px solid black;- border-bottom: 1px solid black;-}- </style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Cypher Mode for CodeMirror</a>- </ul>-</div>--<article>-<h2>Cypher Mode for CodeMirror</h2>-<form>- <textarea id="code" name="code">// Cypher Mode for CodeMirror, using the neo theme-MATCH (joe { name: 'Joe' })-[:knows*2..2]-(friend_of_friend)-WHERE NOT (joe)-[:knows]-(friend_of_friend)-RETURN friend_of_friend.name, COUNT(*)-ORDER BY COUNT(*) DESC , friend_of_friend.name-</textarea>- </form>- <p><strong>MIME types defined:</strong>- <code><a href="?mime=application/x-cypher-query">application/x-cypher-query</a></code>- </p>-<script>-window.onload = function() {- var mime = 'application/x-cypher-query';- // get mime type- if (window.location.href.indexOf('mime=') > -1) {- mime = window.location.href.substr(window.location.href.indexOf('mime=') + 5);- }- window.editor = CodeMirror.fromTextArea(document.getElementById('code'), {- mode: mime,- indentWithTabs: true,- smartIndent: true,- lineNumbers: true,- matchBrackets: true,- autofocus: true,- theme: 'neo'- });-};-</script>--</article>diff --git a/libraries/codemirror/mode/cypher/test.js b/libraries/codemirror/mode/cypher/test.jsdeleted file mode 100644index 691835596f..0000000000--- a/libraries/codemirror/mode/cypher/test.js+++ /dev/null@@ -1,37 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({tabSize: 4, indentUnit: 2}, "cypher");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }-- MT("unbalancedDoubledQuotedString",- "[string \"a'b\"][variable c]");-- MT("unbalancedSingleQuotedString",- "[string 'a\"b'][variable c]");-- MT("doubleQuotedString",- "[string \"a\"][variable b]");-- MT("singleQuotedString",- "[string 'a'][variable b]");-- MT("single attribute (with content)",- "[node {][atom a:][string 'a'][node }]");-- MT("multiple attribute, singleQuotedString (with content)",- "[node {][atom a:][string 'a'][node ,][atom b:][string 'b'][node }]");-- MT("multiple attribute, doubleQuotedString (with content)",- "[node {][atom a:][string \"a\"][node ,][atom b:][string \"b\"][node }]");-- MT("single attribute (without content)",- "[node {][atom a:][string 'a'][node }]");-- MT("multiple attribute, singleQuotedString (without content)",- "[node {][atom a:][string ''][node ,][atom b:][string ''][node }]");-- MT("multiple attribute, doubleQuotedString (without content)",- "[node {][atom a:][string \"\"][node ,][atom b:][string \"\"][node }]");- })();diff --git a/libraries/codemirror/mode/d/index.html b/libraries/codemirror/mode/d/index.htmldeleted file mode 100644index 95437e5e7d..0000000000--- a/libraries/codemirror/mode/d/index.html+++ /dev/null@@ -1,273 +0,0 @@-<!doctype html>--<title>CodeMirror: D mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="d.js"></script>-<style>.CodeMirror {border: 2px inset #dee;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">D</a>- </ul>-</div>--<article>-<h2>D mode</h2>-<form><textarea id="code" name="code">-/* D demo code // copied from phobos/sd/metastrings.d */-// Written in the D programming language.--/**-Templates with which to do compile-time manipulation of strings.--Macros:- WIKI = Phobos/StdMetastrings--Copyright: Copyright Digital Mars 2007 - 2009.-License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.-Authors: $(WEB digitalmars.com, Walter Bright),- Don Clugston-Source: $(PHOBOSSRC std/_metastrings.d)-*/-/*- Copyright Digital Mars 2007 - 2009.-Distributed under the Boost Software License, Version 1.0.- (See accompanying file LICENSE_1_0.txt or copy at- http://www.boost.org/LICENSE_1_0.txt)- */-module std.metastrings;--/**-Formats constants into a string at compile time. Analogous to $(XREF-string,format).--Parameters:--A = tuple of constants, which can be strings, characters, or integral- values.--Formats:- * The formats supported are %s for strings, and %%- * for the % character.-Example:-----import std.metastrings;-import std.stdio;--void main()-{- string s = Format!("Arg %s = %s", "foo", 27);- writefln(s); // "Arg foo = 27"-}- * ---- */--template Format(A...)-{- static if (A.length == 0)- enum Format = "";- else static if (is(typeof(A[0]) : const(char)[]))- enum Format = FormatString!(A[0], A[1..$]);- else- enum Format = toStringNow!(A[0]) ~ Format!(A[1..$]);-}--template FormatString(const(char)[] F, A...)-{- static if (F.length == 0)- enum FormatString = Format!(A);- else static if (F.length == 1)- enum FormatString = F[0] ~ Format!(A);- else static if (F[0..2] == "%s")- enum FormatString- = toStringNow!(A[0]) ~ FormatString!(F[2..$],A[1..$]);- else static if (F[0..2] == "%%")- enum FormatString = "%" ~ FormatString!(F[2..$],A);- else- {- static assert(F[0] != '%', "unrecognized format %" ~ F[1]);- enum FormatString = F[0] ~ FormatString!(F[1..$],A);- }-}--unittest-{- auto s = Format!("hel%slo", "world", -138, 'c', true);- assert(s == "helworldlo-138ctrue", "[" ~ s ~ "]");-}--/**- * Convert constant argument to a string.- */--template toStringNow(ulong v)-{- static if (v < 10)- enum toStringNow = "" ~ cast(char)(v + '0');- else- enum toStringNow = toStringNow!(v / 10) ~ toStringNow!(v % 10);-}--unittest-{- static assert(toStringNow!(1uL << 62) == "4611686018427387904");-}--/// ditto-template toStringNow(long v)-{- static if (v < 0)- enum toStringNow = "-" ~ toStringNow!(cast(ulong) -v);- else- enum toStringNow = toStringNow!(cast(ulong) v);-}--unittest-{- static assert(toStringNow!(0x100000000) == "4294967296");- static assert(toStringNow!(-138L) == "-138");-}--/// ditto-template toStringNow(uint U)-{- enum toStringNow = toStringNow!(cast(ulong)U);-}--/// ditto-template toStringNow(int I)-{- enum toStringNow = toStringNow!(cast(long)I);-}--/// ditto-template toStringNow(bool B)-{- enum toStringNow = B ? "true" : "false";-}--/// ditto-template toStringNow(string S)-{- enum toStringNow = S;-}--/// ditto-template toStringNow(char C)-{- enum toStringNow = "" ~ C;-}---/********- * Parse unsigned integer literal from the start of string s.- * returns:- * .value = the integer literal as a string,- * .rest = the string following the integer literal- * Otherwise:- * .value = null,- * .rest = s- */--template parseUinteger(const(char)[] s)-{- static if (s.length == 0)- {- enum value = "";- enum rest = "";- }- else static if (s[0] >= '0' && s[0] <= '9')- {- enum value = s[0] ~ parseUinteger!(s[1..$]).value;- enum rest = parseUinteger!(s[1..$]).rest;- }- else- {- enum value = "";- enum rest = s;- }-}--/********-Parse integer literal optionally preceded by $(D '-') from the start-of string $(D s).--Returns:- .value = the integer literal as a string,- .rest = the string following the integer literal--Otherwise:- .value = null,- .rest = s-*/--template parseInteger(const(char)[] s)-{- static if (s.length == 0)- {- enum value = "";- enum rest = "";- }- else static if (s[0] >= '0' && s[0] <= '9')- {- enum value = s[0] ~ parseUinteger!(s[1..$]).value;- enum rest = parseUinteger!(s[1..$]).rest;- }- else static if (s.length >= 2 &&- s[0] == '-' && s[1] >= '0' && s[1] <= '9')- {- enum value = s[0..2] ~ parseUinteger!(s[2..$]).value;- enum rest = parseUinteger!(s[2..$]).rest;- }- else- {- enum value = "";- enum rest = s;- }-}--unittest-{- assert(parseUinteger!("1234abc").value == "1234");- assert(parseUinteger!("1234abc").rest == "abc");- assert(parseInteger!("-1234abc").value == "-1234");- assert(parseInteger!("-1234abc").rest == "abc");-}--/**-Deprecated aliases held for backward compatibility.-*/-deprecated alias toStringNow ToString;-/// Ditto-deprecated alias parseUinteger ParseUinteger;-/// Ditto-deprecated alias parseUinteger ParseInteger;--</textarea></form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- matchBrackets: true,- indentUnit: 4,- mode: "text/x-d"- });- </script>-- <p>Simple mode that handle D-Syntax (<a href="http://www.dlang.org">DLang Homepage</a>).</p>-- <p><strong>MIME types defined:</strong> <code>text/x-d</code>- .</p>- </article>diff --git a/libraries/codemirror/mode/d/test.js b/libraries/codemirror/mode/d/test.jsdeleted file mode 100644index f8ac9de1c8..0000000000--- a/libraries/codemirror/mode/d/test.js+++ /dev/null@@ -1,11 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({indentUnit: 2}, "d");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }-- MT("nested_comments",- "[comment /+]","[comment comment]","[comment +/]","[variable void] [variable main](){}");--})();diff --git a/libraries/codemirror/mode/dart/index.html b/libraries/codemirror/mode/dart/index.htmldeleted file mode 100644index b68a4c5939..0000000000--- a/libraries/codemirror/mode/dart/index.html+++ /dev/null@@ -1,71 +0,0 @@-<!doctype html>--<title>CodeMirror: Dart mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">-<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../clike/clike.js"></script>-<script src="dart.js"></script>-<style>.CodeMirror {border: 1px solid #dee;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Dart</a>- </ul>-</div>--<article>-<h2>Dart mode</h2>-<form>-<textarea id="code" name="code">-import 'dart:math' show Random;--void main() {- print(new Die(n: 12).roll());-}--// Define a class.-class Die {- // Define a class variable.- static Random shaker = new Random();-- // Define instance variables.- int sides, value;-- // Define a method using shorthand syntax.- String toString() => '$value';-- // Define a constructor.- Die({int n: 6}) {- if (4 <= n && n <= 20) {- sides = n;- } else {- // Support for errors and exceptions.- throw new ArgumentError(/* */);- }- }-- // Define an instance method.- int roll() {- return value = shaker.nextInt(sides) + 1;- }-}-</textarea>-</form>--<script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- mode: "application/dart"- });-</script>--</article>diff --git a/libraries/codemirror/mode/diff/index.html b/libraries/codemirror/mode/diff/index.htmldeleted file mode 100644index 5c7ef7dee0..0000000000--- a/libraries/codemirror/mode/diff/index.html+++ /dev/null@@ -1,117 +0,0 @@-<!doctype html>--<title>CodeMirror: Diff mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="diff.js"></script>-<style>- .CodeMirror {border-top: 1px solid #ddd; border-bottom: 1px solid #ddd;}- span.cm-meta {color: #a0b !important;}- span.cm-error { background-color: black; opacity: 0.4;}- span.cm-error.cm-string { background-color: red; }- span.cm-error.cm-tag { background-color: #2b2; }- </style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Diff</a>- </ul>-</div>--<article>-<h2>Diff mode</h2>-<form><textarea id="code" name="code">-diff --git a/index.html b/index.html-index c1d9156..7764744 100644---- a/index.html-+++ b/index.html-@@ -95,7 +95,8 @@ StringStream.prototype = {- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,-- autoMatchBrackets: true-+ autoMatchBrackets: true,-+ onGutterClick: function(x){console.log(x);}- });- </script>- </body>-diff --git a/lib/codemirror.js b/lib/codemirror.js-index 04646a9..9a39cc7 100644---- a/lib/codemirror.js-+++ b/lib/codemirror.js-@@ -399,10 +399,16 @@ var CodeMirror = (function() {- }-- function onMouseDown(e) {-- var start = posFromMouse(e), last = start;-+ var start = posFromMouse(e), last = start, target = e.target();- if (!start) return;- setCursor(start.line, start.ch, false);- if (e.button() != 1) return;-+ if (target.parentNode == gutter) {-+ if (options.onGutterClick)-+ options.onGutterClick(indexOf(gutter.childNodes, target) + showingFrom);-+ return;-+ }-+- if (!focused) onFocus();-- e.stop();-@@ -808,7 +814,7 @@ var CodeMirror = (function() {- for (var i = showingFrom; i < showingTo; ++i) {- var marker = lines[i].gutterMarker;- if (marker) html.push('<div class="' + marker.style + '">' + htmlEscape(marker.text) + '</div>');-- else html.push("<div>" + (options.lineNumbers ? i + 1 : "\u00a0") + "</div>");-+ else html.push("<div>" + (options.lineNumbers ? i + options.firstLineNumber : "\u00a0") + "</div>");- }- gutter.style.display = "none"; // TODO test whether this actually helps- gutter.innerHTML = html.join("");-@@ -1371,10 +1377,8 @@ var CodeMirror = (function() {- if (option == "parser") setParser(value);- else if (option === "lineNumbers") setLineNumbers(value);- else if (option === "gutter") setGutter(value);-- else if (option === "readOnly") options.readOnly = value;-- else if (option === "indentUnit") {options.indentUnit = indentUnit = value; setParser(options.parser);}-- else if (/^(?:enterMode|tabMode|indentWithTabs|readOnly|autoMatchBrackets|undoDepth)$/.test(option)) options[option] = value;-- else throw new Error("Can't set option " + option);-+ else if (option === "indentUnit") {options.indentUnit = value; setParser(options.parser);}-+ else options[option] = value;- },- cursorCoords: cursorCoords,- undo: operation(undo),-@@ -1402,7 +1406,8 @@ var CodeMirror = (function() {- replaceRange: operation(replaceRange),-- operation: function(f){return operation(f)();},-- refresh: function(){updateDisplay([{from: 0, to: lines.length}]);}-+ refresh: function(){updateDisplay([{from: 0, to: lines.length}]);},-+ getInputField: function(){return input;}- };- return instance;- }-@@ -1420,6 +1425,7 @@ var CodeMirror = (function() {- readOnly: false,- onChange: null,- onCursorActivity: null,-+ onGutterClick: null,- autoMatchBrackets: false,- workTime: 200,- workDelay: 300,-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-diff</code>.</p>-- </article>diff --git a/libraries/codemirror/mode/django/index.html b/libraries/codemirror/mode/django/index.htmldeleted file mode 100644index 384e0067be..0000000000--- a/libraries/codemirror/mode/django/index.html+++ /dev/null@@ -1,73 +0,0 @@-<!doctype html>--<title>CodeMirror: Django template mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<link rel="stylesheet" href="../../theme/mdn-like.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/mode/overlay.js"></script>-<script src="../xml/xml.js"></script>-<script src="../htmlmixed/htmlmixed.js"></script>-<script src="django.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Django</a>- </ul>-</div>--<article>-<h2>Django template mode</h2>-<form><textarea id="code" name="code">-<!doctype html>-<html>- <head>- <title>My Django web application</title>- </head>- <body>- <h1>- {{ page.title|capfirst }}- </h1>- <ul class="my-list">- {# traverse a list of items and produce links to their views. #}- {% for item in items %}- <li>- <a href="{% url 'item_view' item.name|slugify %}">- {{ item.name }}- </a>- </li>- {% empty %}- <li>You have no items in your list.</li>- {% endfor %}- </ul>- {% comment "this is a forgotten footer" %}- <footer></footer>- {% endcomment %}- </body>-</html>-</textarea></form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- mode: "django",- indentUnit: 2,- indentWithTabs: true,- theme: "mdn-like"- });- </script>-- <p>Mode for HTML with embedded Django template markup.</p>-- <p><strong>MIME types defined:</strong> <code>text/x-django</code></p>- </article>diff --git a/libraries/codemirror/mode/dockerfile/index.html b/libraries/codemirror/mode/dockerfile/index.htmldeleted file mode 100644index 63bb91e6ec..0000000000--- a/libraries/codemirror/mode/dockerfile/index.html+++ /dev/null@@ -1,73 +0,0 @@-<!doctype html>--<title>CodeMirror: Dockerfile mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/mode/simple.js"></script>-<script src="dockerfile.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Dockerfile</a>- </ul>-</div>--<article>-<h2>Dockerfile mode</h2>-<form><textarea id="code" name="code"># Install Ghost blogging platform and run development environment-#-# VERSION 1.0.0--FROM ubuntu:12.10-MAINTAINER Amer Grgic "[email protected]"-WORKDIR /data/ghost--# Install dependencies for nginx installation-RUN apt-get update-RUN apt-get install -y python g++ make software-properties-common --force-yes-RUN add-apt-repository ppa:chris-lea/node.js-RUN apt-get update-# Install unzip-RUN apt-get install -y unzip-# Install curl-RUN apt-get install -y curl-# Install nodejs & npm-RUN apt-get install -y rlwrap-RUN apt-get install -y nodejs-# Download Ghost v0.4.1-RUN curl -L https://ghost.org/zip/ghost-latest.zip -o /tmp/ghost.zip-# Unzip Ghost zip to /data/ghost-RUN unzip -uo /tmp/ghost.zip -d /data/ghost-# Add custom config js to /data/ghost-ADD ./config.example.js /data/ghost/config.js-# Install Ghost with NPM-RUN cd /data/ghost/ && npm install --production-# Expose port 2368-EXPOSE 2368-# Run Ghost-CMD ["npm","start"]-</textarea></form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- mode: "dockerfile"- });- </script>-- <p>Dockerfile syntax highlighting for CodeMirror. Depends on- the <a href="../../demo/simplemode.html">simplemode</a> addon.</p>-- <p><strong>MIME types defined:</strong> <code>text/x-dockerfile</code></p>- </article>diff --git a/libraries/codemirror/mode/dockerfile/test.js b/libraries/codemirror/mode/dockerfile/test.jsdeleted file mode 100644index 51add3ce9c..0000000000--- a/libraries/codemirror/mode/dockerfile/test.js+++ /dev/null@@ -1,128 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({indentUnit: 2}, "text/x-dockerfile");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }-- MT("simple_nodejs_dockerfile",- "[keyword FROM] node:carbon",- "[comment # Create app directory]",- "[keyword WORKDIR] /usr/src/app",- "[comment # Install app dependencies]",- "[comment # A wildcard is used to ensure both package.json AND package-lock.json are copied]",- "[comment # where available (npm@5+)]",- "[keyword COPY] package*.json ./",- "[keyword RUN] npm install",- "[keyword COPY] . .",- "[keyword EXPOSE] [number 8080] [number 3000]",- "[keyword ENV] NODE_ENV development",- "[keyword CMD] [[ [string \"npm\"], [string \"start\"] ]]");-- // Ideally the last space should not be highlighted.- MT("instruction_without_args_1",- "[keyword CMD] ");-- MT("instruction_without_args_2",- "[comment # An instruction without args...]",- "[keyword ARG] [error #...is an error]");-- MT("multiline",- "[keyword RUN] apt-get update && apt-get install -y \\",- " mercurial \\",- " subversion \\",- " && apt-get clean \\",- " && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*");-- MT("from_comment",- " [keyword FROM] debian:stretch # I tend to use stable as that is more stable",- " [keyword FROM] debian:stretch [keyword AS] stable # I am even more stable",- " [keyword FROM] [error # this is an error]");-- MT("from_as",- "[keyword FROM] golang:1.9.2-alpine3.6 [keyword AS] build",- "[keyword COPY] --from=build /bin/project /bin/project",- "[keyword ENTRYPOINT] [[ [string \"/bin/project\"] ]]",- "[keyword CMD] [[ [string \"--help\"] ]]");-- MT("arg",- "[keyword ARG] VERSION=latest",- "[keyword FROM] busybox:$VERSION",- "[keyword ARG] VERSION",- "[keyword RUN] echo $VERSION > image_version");-- MT("label",- "[keyword LABEL] com.example.label-with-value=[string \"foo\"]");-- MT("label_multiline",- "[keyword LABEL] description=[string \"This text illustrates ]\\",- "[string that label-values can span multiple lines.\"]");-- MT("maintainer",- "[keyword MAINTAINER] Foo Bar [string \"[email protected]\"] ",- "[keyword MAINTAINER] Bar Baz <[email protected]>");-- MT("env",- "[keyword ENV] BUNDLE_PATH=[string \"$GEM_HOME\"] \\",- " BUNDLE_APP_CONFIG=[string \"$GEM_HOME\"]");-- MT("verify_keyword",- "[keyword RUN] add-apt-repository ppa:chris-lea/node.js");-- MT("scripts",- "[comment # Set an entrypoint, to automatically install node modules]",- "[keyword ENTRYPOINT] [[ [string \"/bin/bash\"], [string \"-c\"], [string \"if [[ ! -d node_modules ]]; then npm install; fi; exec \\\"${@:0}\\\";\"] ]]",- "[keyword CMD] npm start",- "[keyword RUN] npm run build && \\",- "[comment # a comment between the shell commands]",- " npm run test");-- MT("strings_single",- "[keyword FROM] buildpack-deps:stretch",- "[keyword RUN] { \\",- " echo [string 'install: --no-document']; \\",- " echo [string 'update: --no-document']; \\",- " } >> /usr/local/etc/gemrc");-- MT("strings_single_multiline",- "[keyword RUN] set -ex \\",- " \\",- " && buildDeps=[string ' ]\\",- "[string bison ]\\",- "[string dpkg-dev ]\\",- "[string libgdbm-dev ]\\",- "[string ruby ]\\",- "[string '] \\",- " && apt-get update");-- MT("strings_single_multiline_2",- "[keyword RUN] echo [string 'say \\' ]\\",- "[string it works'] ");-- MT("strings_double",- "[keyword RUN] apt-get install -y --no-install-recommends $buildDeps \\",- " \\",- " && wget -O ruby.tar.xz [string \"https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.xz\"] \\",- " && echo [string \"$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz\"] | sha256sum -c - ");-- MT("strings_double_multiline",- "[keyword RUN] echo [string \"say \\\" ]\\",- "[string it works\"] ");-- MT("escape",- "[comment # escape=`]",- "[keyword FROM] microsoft/windowsservercore",- "[keyword RUN] powershell.exe -Command `",- " $ErrorActionPreference = [string 'Stop']; `",- " wget https://www.python.org/ftp/python/3.5.1/python-3.5.1.exe -OutFile c:\python-3.5.1.exe ; `",- " Start-Process c:\python-3.5.1.exe -ArgumentList [string '/quiet InstallAllUsers=1 PrependPath=1'] -Wait ; `",- " Remove-Item c:\python-3.5.1.exe -Force)");-- MT("escape_strings",- "[comment # escape=`]",- "[keyword FROM] python:3.6-windowsservercore [keyword AS] python",- "[keyword RUN] $env:PATH = [string 'C:\\Python;C:\\Python\\Scripts;{0}'] -f $env:PATH ; `",- // It should not consider \' as escaped.- // " Set-ItemProperty -Path [string 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment\\'] -Name Path -Value $env:PATH ;");- " Set-ItemProperty -Path [string 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment\\' -Name Path -Value $env:PATH ;]");-})();diff --git a/libraries/codemirror/mode/dtd/index.html b/libraries/codemirror/mode/dtd/index.htmldeleted file mode 100644index 959c346527..0000000000--- a/libraries/codemirror/mode/dtd/index.html+++ /dev/null@@ -1,89 +0,0 @@-<!doctype html>--<title>CodeMirror: DTD mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="dtd.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">DTD</a>- </ul>-</div>--<article>-<h2>DTD mode</h2>-<form><textarea id="code" name="code"><?xml version="1.0" encoding="UTF-8"?>--<!ATTLIST title- xmlns CDATA #FIXED "http://docbook.org/ns/docbook"- role CDATA #IMPLIED- %db.common.attributes;- %db.common.linking.attributes;->--<!--- Try: http://docbook.org/xml/5.0/dtd/docbook.dtd--->--<!DOCTYPE xsl:stylesheet- [- <!ENTITY nbsp "&#160;">- <!ENTITY copy "&#169;">- <!ENTITY reg "&#174;">- <!ENTITY trade "&#8482;">- <!ENTITY mdash "&#8212;">- <!ENTITY ldquo "&#8220;">- <!ENTITY rdquo "&#8221;">- <!ENTITY pound "&#163;">- <!ENTITY yen "&#165;">- <!ENTITY euro "&#8364;">- <!ENTITY mathml "http://www.w3.org/1998/Math/MathML">- ]->--<!ELEMENT title (#PCDATA|inlinemediaobject|remark|superscript|subscript|xref|link|olink|anchor|biblioref|alt|annotation|indexterm|abbrev|acronym|date|emphasis|footnote|footnoteref|foreignphrase|phrase|quote|wordasword|firstterm|glossterm|coref|trademark|productnumber|productname|database|application|hardware|citation|citerefentry|citetitle|citebiblioid|author|person|personname|org|orgname|editor|jobtitle|replaceable|package|parameter|termdef|nonterminal|systemitem|option|optional|property|inlineequation|tag|markup|token|symbol|literal|code|constant|email|uri|guiicon|guibutton|guimenuitem|guimenu|guisubmenu|guilabel|menuchoice|mousebutton|keycombo|keycap|keycode|keysym|shortcut|accel|prompt|envar|filename|command|computeroutput|userinput|function|varname|returnvalue|type|classname|exceptionname|interfacename|methodname|modifier|initializer|ooclass|ooexception|oointerface|errorcode|errortext|errorname|errortype)*>--<!ENTITY % db.common.attributes "- xml:id ID #IMPLIED- version CDATA #IMPLIED- xml:lang CDATA #IMPLIED- xml:base CDATA #IMPLIED- remap CDATA #IMPLIED- xreflabel CDATA #IMPLIED- revisionflag (changed|added|deleted|off) #IMPLIED- dir (ltr|rtl|lro|rlo) #IMPLIED- arch CDATA #IMPLIED- audience CDATA #IMPLIED- condition CDATA #IMPLIED- conformance CDATA #IMPLIED- os CDATA #IMPLIED- revision CDATA #IMPLIED- security CDATA #IMPLIED- userlevel CDATA #IMPLIED- vendor CDATA #IMPLIED- wordsize CDATA #IMPLIED- annotations CDATA #IMPLIED--"></textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: {name: "dtd", alignCDATA: true},- lineNumbers: true,- lineWrapping: true- });- </script>-- <p><strong>MIME types defined:</strong> <code>application/xml-dtd</code>.</p>- </article>diff --git a/libraries/codemirror/mode/dylan/index.html b/libraries/codemirror/mode/dylan/index.htmldeleted file mode 100644index af259528cb..0000000000--- a/libraries/codemirror/mode/dylan/index.html+++ /dev/null@@ -1,407 +0,0 @@-<!doctype html>--<title>CodeMirror: Dylan mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="../../addon/comment/continuecomment.js"></script>-<script src="../../addon/comment/comment.js"></script>-<script src="dylan.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Dylan</a>- </ul>-</div>--<article>-<h2>Dylan mode</h2>---<div><textarea id="code" name="code">-Module: locators-internals-Synopsis: Abstract modeling of locations-Author: Andy Armstrong-Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc.- All rights reserved.-License: See License.txt in this distribution for details.-Warranty: Distributed WITHOUT WARRANTY OF ANY KIND--define open generic locator-server- (locator :: <locator>) => (server :: false-or(<server-locator>));-define open generic locator-host- (locator :: <locator>) => (host :: false-or(<string>));-define open generic locator-volume- (locator :: <locator>) => (volume :: false-or(<string>));-define open generic locator-directory- (locator :: <locator>) => (directory :: false-or(<directory-locator>));-define open generic locator-relative?- (locator :: <locator>) => (relative? :: <boolean>);-define open generic locator-path- (locator :: <locator>) => (path :: <sequence>);-define open generic locator-base- (locator :: <locator>) => (base :: false-or(<string>));-define open generic locator-extension- (locator :: <locator>) => (extension :: false-or(<string>));--/// Locator classes--define open abstract class <directory-locator> (<physical-locator>)-end class <directory-locator>;--define open abstract class <file-locator> (<physical-locator>)-end class <file-locator>;--define method as- (class == <directory-locator>, string :: <string>)- => (locator :: <directory-locator>)- as(<native-directory-locator>, string)-end method as;--define method make- (class == <directory-locator>,- #key server :: false-or(<server-locator>) = #f,- path :: <sequence> = #[],- relative? :: <boolean> = #f,- name :: false-or(<string>) = #f)- => (locator :: <directory-locator>)- make(<native-directory-locator>,- server: server,- path: path,- relative?: relative?,- name: name)-end method make;--define method as- (class == <file-locator>, string :: <string>)- => (locator :: <file-locator>)- as(<native-file-locator>, string)-end method as;--define method make- (class == <file-locator>,- #key directory :: false-or(<directory-locator>) = #f,- base :: false-or(<string>) = #f,- extension :: false-or(<string>) = #f,- name :: false-or(<string>) = #f)- => (locator :: <file-locator>)- make(<native-file-locator>,- directory: directory,- base: base,- extension: extension,- name: name)-end method make;--/// Locator coercion--//---*** andrewa: This caching scheme doesn't work yet, so disable it.-define constant $cache-locators? = #f;-define constant $cache-locator-strings? = #f;--define constant $locator-to-string-cache = make(<object-table>, weak: #"key");-define constant $string-to-locator-cache = make(<string-table>, weak: #"value");--define open generic locator-as-string- (class :: subclass(<string>), locator :: <locator>)- => (string :: <string>);--define open generic string-as-locator- (class :: subclass(<locator>), string :: <string>)- => (locator :: <locator>);--define sealed sideways method as- (class :: subclass(<string>), locator :: <locator>)- => (string :: <string>)- let string = element($locator-to-string-cache, locator, default: #f);- if (string)- as(class, string)- else- let string = locator-as-string(class, locator);- if ($cache-locator-strings?)- element($locator-to-string-cache, locator) := string;- else- string- end- end-end method as;--define sealed sideways method as- (class :: subclass(<locator>), string :: <string>)- => (locator :: <locator>)- let locator = element($string-to-locator-cache, string, default: #f);- if (instance?(locator, class))- locator- else- let locator = string-as-locator(class, string);- if ($cache-locators?)- element($string-to-locator-cache, string) := locator;- else- locator- end- end-end method as;--/// Locator conditions--define class <locator-error> (<format-string-condition>, <error>)-end class <locator-error>;--define function locator-error- (format-string :: <string>, #rest format-arguments)- error(make(<locator-error>,- format-string: format-string,- format-arguments: format-arguments))-end function locator-error;--/// Useful locator protocols--define open generic locator-test- (locator :: <directory-locator>) => (test :: <function>);--define method locator-test- (locator :: <directory-locator>) => (test :: <function>)- \=-end method locator-test;--define open generic locator-might-have-links?- (locator :: <directory-locator>) => (links? :: <boolean>);--define method locator-might-have-links?- (locator :: <directory-locator>) => (links? :: singleton(#f))- #f-end method locator-might-have-links?;--define method locator-relative?- (locator :: <file-locator>) => (relative? :: <boolean>)- let directory = locator.locator-directory;- ~directory | directory.locator-relative?-end method locator-relative?;--define method current-directory-locator?- (locator :: <directory-locator>) => (current-directory? :: <boolean>)- locator.locator-relative?- & locator.locator-path = #[#"self"]-end method current-directory-locator?;--define method locator-directory- (locator :: <directory-locator>) => (parent :: false-or(<directory-locator>))- let path = locator.locator-path;- unless (empty?(path))- make(object-class(locator),- server: locator.locator-server,- path: copy-sequence(path, end: path.size - 1),- relative?: locator.locator-relative?)- end-end method locator-directory;--/// Simplify locator--define open generic simplify-locator- (locator :: <physical-locator>)- => (simplified-locator :: <physical-locator>);--define method simplify-locator- (locator :: <directory-locator>)- => (simplified-locator :: <directory-locator>)- let path = locator.locator-path;- let relative? = locator.locator-relative?;- let resolve-parent? = ~locator.locator-might-have-links?;- let simplified-path- = simplify-path(path,- resolve-parent?: resolve-parent?,- relative?: relative?);- if (path ~= simplified-path)- make(object-class(locator),- server: locator.locator-server,- path: simplified-path,- relative?: locator.locator-relative?)- else- locator- end-end method simplify-locator;--define method simplify-locator- (locator :: <file-locator>) => (simplified-locator :: <file-locator>)- let directory = locator.locator-directory;- let simplified-directory = directory & simplify-locator(directory);- if (directory ~= simplified-directory)- make(object-class(locator),- directory: simplified-directory,- base: locator.locator-base,- extension: locator.locator-extension)- else- locator- end-end method simplify-locator;--/// Subdirectory locator--define open generic subdirectory-locator- (locator :: <directory-locator>, #rest sub-path)- => (subdirectory :: <directory-locator>);--define method subdirectory-locator- (locator :: <directory-locator>, #rest sub-path)- => (subdirectory :: <directory-locator>)- let old-path = locator.locator-path;- let new-path = concatenate-as(<simple-object-vector>, old-path, sub-path);- make(object-class(locator),- server: locator.locator-server,- path: new-path,- relative?: locator.locator-relative?)-end method subdirectory-locator;--/// Relative locator--define open generic relative-locator- (locator :: <physical-locator>, from-locator :: <physical-locator>)- => (relative-locator :: <physical-locator>);--define method relative-locator- (locator :: <directory-locator>, from-locator :: <directory-locator>)- => (relative-locator :: <directory-locator>)- let path = locator.locator-path;- let from-path = from-locator.locator-path;- case- ~locator.locator-relative? & from-locator.locator-relative? =>- locator-error- ("Cannot find relative path of absolute locator %= from relative locator %=",- locator, from-locator);- locator.locator-server ~= from-locator.locator-server =>- locator;- path = from-path =>- make(object-class(locator),- path: vector(#"self"),- relative?: #t);- otherwise =>- make(object-class(locator),- path: relative-path(path, from-path, test: locator.locator-test),- relative?: #t);- end-end method relative-locator;--define method relative-locator- (locator :: <file-locator>, from-directory :: <directory-locator>)- => (relative-locator :: <file-locator>)- let directory = locator.locator-directory;- let relative-directory = directory & relative-locator(directory, from-directory);- if (relative-directory ~= directory)- simplify-locator- (make(object-class(locator),- directory: relative-directory,- base: locator.locator-base,- extension: locator.locator-extension))- else- locator- end-end method relative-locator;--define method relative-locator- (locator :: <physical-locator>, from-locator :: <file-locator>)- => (relative-locator :: <physical-locator>)- let from-directory = from-locator.locator-directory;- case- from-directory =>- relative-locator(locator, from-directory);- ~locator.locator-relative? =>- locator-error- ("Cannot find relative path of absolute locator %= from relative locator %=",- locator, from-locator);- otherwise =>- locator;- end-end method relative-locator;--/// Merge locators--define open generic merge-locators- (locator :: <physical-locator>, from-locator :: <physical-locator>)- => (merged-locator :: <physical-locator>);--/// Merge locators--define method merge-locators- (locator :: <directory-locator>, from-locator :: <directory-locator>)- => (merged-locator :: <directory-locator>)- if (locator.locator-relative?)- let path = concatenate(from-locator.locator-path, locator.locator-path);- simplify-locator- (make(object-class(locator),- server: from-locator.locator-server,- path: path,- relative?: from-locator.locator-relative?))- else- locator- end-end method merge-locators;--define method merge-locators- (locator :: <file-locator>, from-locator :: <directory-locator>)- => (merged-locator :: <file-locator>)- let directory = locator.locator-directory;- let merged-directory- = if (directory)- merge-locators(directory, from-locator)- else- simplify-locator(from-locator)- end;- if (merged-directory ~= directory)- make(object-class(locator),- directory: merged-directory,- base: locator.locator-base,- extension: locator.locator-extension)- else- locator- end-end method merge-locators;--define method merge-locators- (locator :: <physical-locator>, from-locator :: <file-locator>)- => (merged-locator :: <physical-locator>)- let from-directory = from-locator.locator-directory;- if (from-directory)- merge-locators(locator, from-directory)- else- locator- end-end method merge-locators;--/// Locator protocols--define sideways method supports-open-locator?- (locator :: <file-locator>) => (openable? :: <boolean>)- ~locator.locator-relative?-end method supports-open-locator?;--define sideways method open-locator- (locator :: <file-locator>, #rest keywords, #key, #all-keys)- => (stream :: <stream>)- apply(open-file-stream, locator, keywords)-end method open-locator;-</textarea></div>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: "text/x-dylan",- lineNumbers: true,- matchBrackets: true,- continueComments: "Enter",- extraKeys: {"Ctrl-Q": "toggleComment"},- tabMode: "indent",- indentUnit: 2- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-dylan</code>.</p>-</article>diff --git a/libraries/codemirror/mode/dylan/test.js b/libraries/codemirror/mode/dylan/test.jsdeleted file mode 100644index 8b121b9133..0000000000--- a/libraries/codemirror/mode/dylan/test.js+++ /dev/null@@ -1,88 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({indentUnit: 2}, "dylan");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }-- MT('comments',- '[comment // This is a line comment]',- '[comment /* This is a block comment */]',- '[comment /* This is a multi]',- '[comment line comment]',- '[comment */]',- '[comment /* And this is a /*]',- '[comment /* nested */ comment */]');-- MT('unary_operators',- '[operator -][variable a]',- '[operator -] [variable a]',- '[operator ~][variable a]',- '[operator ~] [variable a]');-- MT('binary_operators',- '[variable a] [operator +] [variable b]',- '[variable a] [operator -] [variable b]',- '[variable a] [operator *] [variable b]',- '[variable a] [operator /] [variable b]',- '[variable a] [operator ^] [variable b]',- '[variable a] [operator =] [variable b]',- '[variable a] [operator ==] [variable b]',- '[variable a] [operator ~=] [variable b]',- '[variable a] [operator ~==] [variable b]',- '[variable a] [operator <] [variable b]',- '[variable a] [operator <=] [variable b]',- '[variable a] [operator >] [variable b]',- '[variable a] [operator >=] [variable b]',- '[variable a] [operator &] [variable b]',- '[variable a] [operator |] [variable b]',- '[variable a] [operator :=] [variable b]');-- MT('integers',- '[number 1]',- '[number 123]',- '[number -123]',- '[number +456]',- '[number #b010]',- '[number #o073]',- '[number #xabcDEF123]');-- MT('floats',- '[number .3]',- '[number -1.]',- '[number -2.335]',- '[number +3.78d1]',- '[number 3.78s-1]',- '[number -3.32e+5]');-- MT('characters_and_strings',- "[string 'a']",- "[string '\\\\'']",- '[string ""]',- '[string "a"]',- '[string "abc def"]',- '[string "More escaped characters: \\\\\\\\ \\\\a \\\\b \\\\e \\\\f \\\\n \\\\r \\\\t \\\\0 ..."]');-- MT('brackets',- '[bracket #[[]]]',- '[bracket #()]',- '[bracket #(][number 1][bracket )]',- '[bracket [[][number 1][punctuation ,] [number 3][bracket ]]]',- '[bracket ()]',- '[bracket {}]',- '[keyword if] [bracket (][variable foo][bracket )]',- '[bracket (][number 1][bracket )]',- '[bracket [[][number 1][bracket ]]]');-- MT('hash_words',- '[punctuation ##]',- '[atom #f]', '[atom #F]',- '[atom #t]', '[atom #T]',- '[atom #all-keys]',- '[atom #include]',- '[atom #key]',- '[atom #next]',- '[atom #rest]',- '[string #"foo"]',- '[error #invalid]');-})();diff --git a/libraries/codemirror/mode/ebnf/index.html b/libraries/codemirror/mode/ebnf/index.htmldeleted file mode 100644index 9bd28a4adf..0000000000--- a/libraries/codemirror/mode/ebnf/index.html+++ /dev/null@@ -1,102 +0,0 @@-<!doctype html>-<html>- <head>- <title>CodeMirror: EBNF Mode</title>- <meta charset="utf-8"/>- <link rel=stylesheet href="../../doc/docs.css">-- <link rel="stylesheet" href="../../lib/codemirror.css">- <script src="../../lib/codemirror.js"></script>- <script src="../javascript/javascript.js"></script>- <script src="ebnf.js"></script>- <style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>- </head>- <body>- <div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">EBNF Mode</a>- </ul>- </div>-- <article>- <h2>EBNF Mode (bracesMode setting = "javascript")</h2>- <form><textarea id="code" name="code">-/* description: Parses end executes mathematical expressions. */--/* lexical grammar */-%lex--%%-\s+ /* skip whitespace */-[0-9]+("."[0-9]+)?\b return 'NUMBER';-"*" return '*';-"/" return '/';-"-" return '-';-"+" return '+';-"^" return '^';-"(" return '(';-")" return ')';-"PI" return 'PI';-"E" return 'E';-<<EOF>> return 'EOF';--/lex--/* operator associations and precedence */--%left '+' '-'-%left '*' '/'-%left '^'-%left UMINUS--%start expressions--%% /* language grammar */--expressions-: e EOF-{print($1); return $1;}-;--e-: e '+' e-{$$ = $1+$3;}-| e '-' e-{$$ = $1-$3;}-| e '*' e-{$$ = $1*$3;}-| e '/' e-{$$ = $1/$3;}-| e '^' e-{$$ = Math.pow($1, $3);}-| '-' e %prec UMINUS-{$$ = -$2;}-| '(' e ')'-{$$ = $2;}-| NUMBER-{$$ = Number(yytext);}-| E-{$$ = Math.E;}-| PI-{$$ = Math.PI;}-;</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: {name: "ebnf"},- lineNumbers: true,- bracesMode: 'javascript'- });- </script>- <h3>The EBNF Mode</h3>- <p> Created by <a href="https://github.com/robertleeplummerjr">Robert Plummer</a></p>- </article>- </body>-</html>diff --git a/libraries/codemirror/mode/ecl/index.html b/libraries/codemirror/mode/ecl/index.htmldeleted file mode 100644index 1acaec332f..0000000000--- a/libraries/codemirror/mode/ecl/index.html+++ /dev/null@@ -1,52 +0,0 @@-<!doctype html>--<title>CodeMirror: ECL mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="ecl.js"></script>-<style>.CodeMirror {border: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">ECL</a>- </ul>-</div>--<article>-<h2>ECL mode</h2>-<form><textarea id="code" name="code">-/*-sample useless code to demonstrate ecl syntax highlighting-this is a multiline comment!-*/--// this is a singleline comment!--import ut;-r :=- record- string22 s1 := '123';- integer4 i1 := 123;- end;-#option('tmp', true);-d := dataset('tmp::qb', r, thor);-output(d);-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});- </script>-- <p>Based on CodeMirror's clike mode. For more information see <a href="http://hpccsystems.com">HPCC Systems</a> web site.</p>- <p><strong>MIME types defined:</strong> <code>text/x-ecl</code>.</p>-- </article>diff --git a/libraries/codemirror/mode/eiffel/index.html b/libraries/codemirror/mode/eiffel/index.htmldeleted file mode 100644index 568fbb79bb..0000000000--- a/libraries/codemirror/mode/eiffel/index.html+++ /dev/null@@ -1,429 +0,0 @@-<!doctype html>--<title>CodeMirror: Eiffel mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<link rel="stylesheet" href="../../theme/neat.css">-<script src="../../lib/codemirror.js"></script>-<script src="eiffel.js"></script>-<style>- .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}- .cm-s-default span.cm-arrow { color: red; }- </style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Eiffel</a>- </ul>-</div>--<article>-<h2>Eiffel mode</h2>-<form><textarea id="code" name="code">-note- description: "[- Project-wide universal properties.- This class is an ancestor to all developer-written classes.- ANY may be customized for individual projects or teams.- ]"-- library: "Free implementation of ELKS library"- status: "See notice at end of class."- legal: "See notice at end of class."- date: "$Date: 2013-01-25 11:49:00 -0800 (Fri, 25 Jan 2013) $"- revision: "$Revision: 712 $"--class- ANY--feature -- Customization--feature -- Access-- generator: STRING- -- Name of current object's generating class- -- (base class of the type of which it is a direct instance)- external- "built_in"- ensure- generator_not_void: Result /= Void- generator_not_empty: not Result.is_empty- end-- generating_type: TYPE [detachable like Current]- -- Type of current object- -- (type of which it is a direct instance)- do- Result := {detachable like Current}- ensure- generating_type_not_void: Result /= Void- end--feature -- Status report-- conforms_to (other: ANY): BOOLEAN- -- Does type of current object conform to type- -- of `other' (as per Eiffel: The Language, chapter 13)?- require- other_not_void: other /= Void- external- "built_in"- end-- same_type (other: ANY): BOOLEAN- -- Is type of current object identical to type of `other'?- require- other_not_void: other /= Void- external- "built_in"- ensure- definition: Result = (conforms_to (other) and- other.conforms_to (Current))- end--feature -- Comparison-- is_equal (other: like Current): BOOLEAN- -- Is `other' attached to an object considered- -- equal to current object?- require- other_not_void: other /= Void- external- "built_in"- ensure- symmetric: Result implies other ~ Current- consistent: standard_is_equal (other) implies Result- end-- frozen standard_is_equal (other: like Current): BOOLEAN- -- Is `other' attached to an object of the same type- -- as current object, and field-by-field identical to it?- require- other_not_void: other /= Void- external- "built_in"- ensure- same_type: Result implies same_type (other)- symmetric: Result implies other.standard_is_equal (Current)- end-- frozen equal (a: detachable ANY; b: like a): BOOLEAN- -- Are `a' and `b' either both void or attached- -- to objects considered equal?- do- if a = Void then- Result := b = Void- else- Result := b /= Void and then- a.is_equal (b)- end- ensure- definition: Result = (a = Void and b = Void) or else- ((a /= Void and b /= Void) and then- a.is_equal (b))- end-- frozen standard_equal (a: detachable ANY; b: like a): BOOLEAN- -- Are `a' and `b' either both void or attached to- -- field-by-field identical objects of the same type?- -- Always uses default object comparison criterion.- do- if a = Void then- Result := b = Void- else- Result := b /= Void and then- a.standard_is_equal (b)- end- ensure- definition: Result = (a = Void and b = Void) or else- ((a /= Void and b /= Void) and then- a.standard_is_equal (b))- end-- frozen is_deep_equal (other: like Current): BOOLEAN- -- Are `Current' and `other' attached to isomorphic object structures?- require- other_not_void: other /= Void- external- "built_in"- ensure- shallow_implies_deep: standard_is_equal (other) implies Result- same_type: Result implies same_type (other)- symmetric: Result implies other.is_deep_equal (Current)- end-- frozen deep_equal (a: detachable ANY; b: like a): BOOLEAN- -- Are `a' and `b' either both void- -- or attached to isomorphic object structures?- do- if a = Void then- Result := b = Void- else- Result := b /= Void and then a.is_deep_equal (b)- end- ensure- shallow_implies_deep: standard_equal (a, b) implies Result- both_or_none_void: (a = Void) implies (Result = (b = Void))- same_type: (Result and (a /= Void)) implies (b /= Void and then a.same_type (b))- symmetric: Result implies deep_equal (b, a)- end--feature -- Duplication-- frozen twin: like Current- -- New object equal to `Current'- -- `twin' calls `copy'; to change copying/twinning semantics, redefine `copy'.- external- "built_in"- ensure- twin_not_void: Result /= Void- is_equal: Result ~ Current- end-- copy (other: like Current)- -- Update current object using fields of object attached- -- to `other', so as to yield equal objects.- require- other_not_void: other /= Void- type_identity: same_type (other)- external- "built_in"- ensure- is_equal: Current ~ other- end-- frozen standard_copy (other: like Current)- -- Copy every field of `other' onto corresponding field- -- of current object.- require- other_not_void: other /= Void- type_identity: same_type (other)- external- "built_in"- ensure- is_standard_equal: standard_is_equal (other)- end-- frozen clone (other: detachable ANY): like other- -- Void if `other' is void; otherwise new object- -- equal to `other'- --- -- For non-void `other', `clone' calls `copy';- -- to change copying/cloning semantics, redefine `copy'.- obsolete- "Use `twin' instead."- do- if other /= Void then- Result := other.twin- end- ensure- equal: Result ~ other- end-- frozen standard_clone (other: detachable ANY): like other- -- Void if `other' is void; otherwise new object- -- field-by-field identical to `other'.- -- Always uses default copying semantics.- obsolete- "Use `standard_twin' instead."- do- if other /= Void then- Result := other.standard_twin- end- ensure- equal: standard_equal (Result, other)- end-- frozen standard_twin: like Current- -- New object field-by-field identical to `other'.- -- Always uses default copying semantics.- external- "built_in"- ensure- standard_twin_not_void: Result /= Void- equal: standard_equal (Result, Current)- end-- frozen deep_twin: like Current- -- New object structure recursively duplicated from Current.- external- "built_in"- ensure- deep_twin_not_void: Result /= Void- deep_equal: deep_equal (Current, Result)- end-- frozen deep_clone (other: detachable ANY): like other- -- Void if `other' is void: otherwise, new object structure- -- recursively duplicated from the one attached to `other'- obsolete- "Use `deep_twin' instead."- do- if other /= Void then- Result := other.deep_twin- end- ensure- deep_equal: deep_equal (other, Result)- end-- frozen deep_copy (other: like Current)- -- Effect equivalent to that of:- -- `copy' (`other' . `deep_twin')- require- other_not_void: other /= Void- do- copy (other.deep_twin)- ensure- deep_equal: deep_equal (Current, other)- end--feature {NONE} -- Retrieval-- frozen internal_correct_mismatch- -- Called from runtime to perform a proper dynamic dispatch on `correct_mismatch'- -- from MISMATCH_CORRECTOR.- local- l_msg: STRING- l_exc: EXCEPTIONS- do- if attached {MISMATCH_CORRECTOR} Current as l_corrector then- l_corrector.correct_mismatch- else- create l_msg.make_from_string ("Mismatch: ")- create l_exc- l_msg.append (generating_type.name)- l_exc.raise_retrieval_exception (l_msg)- end- end--feature -- Output-- io: STD_FILES- -- Handle to standard file setup- once- create Result- Result.set_output_default- ensure- io_not_void: Result /= Void- end-- out: STRING- -- New string containing terse printable representation- -- of current object- do- Result := tagged_out- ensure- out_not_void: Result /= Void- end-- frozen tagged_out: STRING- -- New string containing terse printable representation- -- of current object- external- "built_in"- ensure- tagged_out_not_void: Result /= Void- end-- print (o: detachable ANY)- -- Write terse external representation of `o'- -- on standard output.- do- if o /= Void then- io.put_string (o.out)- end- end--feature -- Platform-- Operating_environment: OPERATING_ENVIRONMENT- -- Objects available from the operating system- once- create Result- ensure- operating_environment_not_void: Result /= Void- end--feature {NONE} -- Initialization-- default_create- -- Process instances of classes with no creation clause.- -- (Default: do nothing.)- do- end--feature -- Basic operations-- default_rescue- -- Process exception for routines with no Rescue clause.- -- (Default: do nothing.)- do- end-- frozen do_nothing- -- Execute a null action.- do- end-- frozen default: detachable like Current- -- Default value of object's type- do- end-- frozen default_pointer: POINTER- -- Default value of type `POINTER'- -- (Avoid the need to write `p'.`default' for- -- some `p' of type `POINTER'.)- do- ensure- -- Result = Result.default- end-- frozen as_attached: attached like Current- -- Attached version of Current- -- (Can be used during transitional period to convert- -- non-void-safe classes to void-safe ones.)- do- Result := Current- end--invariant- reflexive_equality: standard_is_equal (Current)- reflexive_conformance: conforms_to (Current)--note- copyright: "Copyright (c) 1984-2012, Eiffel Software and others"- license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"- source: "[- Eiffel Software- 5949 Hollister Ave., Goleta, CA 93117 USA- Telephone 805-685-1006, Fax 805-685-6869- Website http://www.eiffel.com- Customer support http://support.eiffel.com- ]"--end--</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: "text/x-eiffel",- indentUnit: 4,- lineNumbers: true,- theme: "neat"- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-eiffel</code>.</p>-- <p> Created by <a href="https://github.com/ynh">YNH</a>.</p>- </article>diff --git a/libraries/codemirror/mode/elm/index.html b/libraries/codemirror/mode/elm/index.htmldeleted file mode 100644index 9bef08a8e3..0000000000--- a/libraries/codemirror/mode/elm/index.html+++ /dev/null@@ -1,61 +0,0 @@-<!doctype html>--<title>CodeMirror: Elm mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="elm.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Elm</a>- </ul>-</div>--<article>-<h2>Elm mode</h2>--<div><textarea id="code" name="code">-import Color exposing (..)-import Graphics.Collage exposing (..)-import Graphics.Element exposing (..)-import Time exposing (..)--main =- Signal.map clock (every second)--clock t =- collage 400 400- [ filled lightGrey (ngon 12 110)- , outlined (solid grey) (ngon 12 110)- , hand orange 100 t- , hand charcoal 100 (t/60)- , hand charcoal 60 (t/720)- ]--hand clr len time =- let angle = degrees (90 - 6 * inSeconds time)- in- segment (0,0) (fromPolar (len,angle))- |> traced (solid clr)-</textarea></div>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- mode: "text/x-elm"- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-elm</code>.</p>- </article>diff --git a/libraries/codemirror/mode/erlang/index.html b/libraries/codemirror/mode/erlang/index.htmldeleted file mode 100644index 5f54c0fe98..0000000000--- a/libraries/codemirror/mode/erlang/index.html+++ /dev/null@@ -1,76 +0,0 @@-<!doctype html>--<title>CodeMirror: Erlang mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<link rel="stylesheet" href="../../theme/erlang-dark.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="erlang.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Erlang</a>- </ul>-</div>--<article>-<h2>Erlang mode</h2>-<form><textarea id="code" name="code">-%% -*- mode: erlang; erlang-indent-level: 2 -*--%%% Created : 7 May 2012 by mats cronqvist <[email protected]>--%% @doc-%% Demonstrates how to print a record.-%% @end---module('ex').--author('mats cronqvist').--export([demo/0,- rec_info/1]).---record(demo,{a="One",b="Two",c="Three",d="Four"}).--rec_info(demo) -> record_info(fields,demo).--demo() -> expand_recs(?MODULE,#demo{a="A",b="BB"}).--expand_recs(M,List) when is_list(List) ->- [expand_recs(M,L)||L<-List];-expand_recs(M,Tup) when is_tuple(Tup) ->- case tuple_size(Tup) of- L when L < 1 -> Tup;- L ->- try- Fields = M:rec_info(element(1,Tup)),- L = length(Fields)+1,- lists:zip(Fields,expand_recs(M,tl(tuple_to_list(Tup))))- catch- _:_ -> list_to_tuple(expand_recs(M,tuple_to_list(Tup)))- end- end;-expand_recs(_,Term) ->- Term.-</textarea></form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- matchBrackets: true,- extraKeys: {"Tab": "indentAuto"},- theme: "erlang-dark"- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-erlang</code>.</p>- </article>diff --git a/libraries/codemirror/mode/factor/index.html b/libraries/codemirror/mode/factor/index.htmldeleted file mode 100644index 13fe429783..0000000000--- a/libraries/codemirror/mode/factor/index.html+++ /dev/null@@ -1,77 +0,0 @@-<!doctype html>--<title>CodeMirror: Factor mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link href='http://fonts.googleapis.com/css?family=Droid+Sans+Mono' rel='stylesheet' type='text/css'>-<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/mode/simple.js"></script>-<script src="factor.js"></script>-<style>-.CodeMirror {- font-family: 'Droid Sans Mono', monospace;- font-size: 14px;-}-</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Factor</a>- </ul>-</div>--<article>--<h2>Factor mode</h2>--<form><textarea id="code" name="code">-! Copyright (C) 2008 Slava Pestov.-! See http://factorcode.org/license.txt for BSD license.--! A simple time server--USING: accessors calendar calendar.format io io.encodings.ascii-io.servers kernel threads ;-IN: time-server--: handle-time-client ( -- )- now timestamp>rfc822 print ;--: <time-server> ( -- threaded-server )- ascii <threaded-server>- "time-server" >>name- 1234 >>insecure- [ handle-time-client ] >>handler ;--: start-time-server ( -- )- <time-server> start-server drop ;--MAIN: start-time-server-</textarea>- </form>--<script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- lineWrapping: true,- indentUnit: 2,- tabSize: 2,- autofocus: true,- mode: "text/x-factor"- });-</script>-<p/>-<p>Simple mode that handles Factor Syntax (<a href="http://en.wikipedia.org/wiki/Factor_(programming_language)">Factor on WikiPedia</a>).</p>--<p><strong>MIME types defined:</strong> <code>text/x-factor</code>.</p>--</article>diff --git a/libraries/codemirror/mode/fcl/index.html b/libraries/codemirror/mode/fcl/index.htmldeleted file mode 100644index 7ea0fd15f8..0000000000--- a/libraries/codemirror/mode/fcl/index.html+++ /dev/null@@ -1,108 +0,0 @@-<!doctype html>--<title>CodeMirror: FCL mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<link rel="stylesheet" href="../../theme/elegant.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="fcl.js"></script>-<style>.CodeMirror {border:1px solid #999; background:#ffc}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">FCL</a>- </ul>-</div>--<article>-<h2>FCL mode</h2>-<form><textarea id="code" name="code">- FUNCTION_BLOCK Fuzzy_FB- VAR_INPUT- TimeDay : REAL; (* RANGE(0 .. 23) *)- ApplicateHost: REAL;- TimeConfiguration: REAL;- TimeRequirements: REAL;- END_VAR-- VAR_OUTPUT- ProbabilityDistribution: REAL;- ProbabilityAccess: REAL;- END_VAR-- FUZZIFY TimeDay- TERM inside := (0, 0) (8, 1) (22,0);- TERM outside := (0, 1) (8, 0) (22, 1);- END_FUZZIFY-- FUZZIFY ApplicateHost- TERM few := (0, 1) (100, 0) (200, 0);- TERM many := (0, 0) (100, 0) (200, 1);- END_FUZZIFY-- FUZZIFY TimeConfiguration- TERM recently := (0, 1) (30, 1) (120, 0);- TERM long := (0, 0) (30, 0) (120, 1);- END_FUZZIFY-- FUZZIFY TimeRequirements- TERM recently := (0, 1) (30, 1) (365, 0);- TERM long := (0, 0) (30, 0) (365, 1);- END_FUZZIFY-- DEFUZZIFY ProbabilityAccess- TERM hight := 1;- TERM medium := 0.5;- TERM low := 0;- ACCU: MAX;- METHOD: COGS;- DEFAULT := 0;- END_DEFUZZIFY-- DEFUZZIFY ProbabilityDistribution- TERM hight := 1;- TERM medium := 0.5;- TERM low := 0;- ACCU: MAX;- METHOD: COGS;- DEFAULT := 0;- END_DEFUZZIFY-- RULEBLOCK No1- AND : MIN;- RULE 1 : IF TimeDay IS outside AND ApplicateHost IS few THEN ProbabilityAccess IS hight;- RULE 2 : IF ApplicateHost IS many THEN ProbabilityAccess IS hight;- RULE 3 : IF TimeDay IS inside AND ApplicateHost IS few THEN ProbabilityAccess IS low;- END_RULEBLOCK-- RULEBLOCK No2- AND : MIN;- RULE 1 : IF ApplicateHost IS many THEN ProbabilityDistribution IS hight;- END_RULEBLOCK-- END_FUNCTION_BLOCK-</textarea></form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- theme: "elegant",- matchBrackets: true,- indentUnit: 8,- tabSize: 8,- indentWithTabs: true,- mode: "text/x-fcl"- });- </script>-- <p><strong>MIME type:</strong> <code>text/x-fcl</code></p>- </article>diff --git a/libraries/codemirror/mode/forth/index.html b/libraries/codemirror/mode/forth/index.htmldeleted file mode 100644index 470363f48f..0000000000--- a/libraries/codemirror/mode/forth/index.html+++ /dev/null@@ -1,75 +0,0 @@-<!doctype html>--<title>CodeMirror: Forth mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link href='http://fonts.googleapis.com/css?family=Droid+Sans+Mono' rel='stylesheet' type='text/css'>-<link rel="stylesheet" href="../../lib/codemirror.css">-<link rel=stylesheet href="../../theme/colorforth.css">-<script src="../../lib/codemirror.js"></script>-<script src="forth.js"></script>-<style>-.CodeMirror {- font-family: 'Droid Sans Mono', monospace;- font-size: 14px;-}-</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Forth</a>- </ul>-</div>--<article>--<h2>Forth mode</h2>--<form><textarea id="code" name="code">-\ Insertion sort--: cell- 1 cells - ;--: insert ( start end -- start )- dup @ >r ( r: v )- begin- 2dup <- while- r@ over cell- @ <- while- cell-- dup @ over cell+ !- repeat then- r> swap ! ;--: sort ( array len -- )- 1 ?do- dup i cells + insert- loop drop ;</textarea>- </form>--<script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- lineWrapping: true,- indentUnit: 2,- tabSize: 2,- autofocus: true,- theme: "colorforth",- mode: "text/x-forth"- });-</script>--<p>Simple mode that handle Forth-Syntax (<a href="http://en.wikipedia.org/wiki/Forth_%28programming_language%29">Forth on WikiPedia</a>).</p>--<p><strong>MIME types defined:</strong> <code>text/x-forth</code>.</p>--</article>diff --git a/libraries/codemirror/mode/fortran/index.html b/libraries/codemirror/mode/fortran/index.htmldeleted file mode 100644index a799e937f1..0000000000--- a/libraries/codemirror/mode/fortran/index.html+++ /dev/null@@ -1,81 +0,0 @@-<!doctype html>--<title>CodeMirror: Fortran mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="fortran.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Fortran</a>- </ul>-</div>--<article>-<h2>Fortran mode</h2>---<div><textarea id="code" name="code">-! Example Fortran code- program average-- ! Read in some numbers and take the average- ! As written, if there are no data points, an average of zero is returned- ! While this may not be desired behavior, it keeps this example simple-- implicit none-- real, dimension(:), allocatable :: points- integer :: number_of_points- real :: average_points=0., positive_average=0., negative_average=0.-- write (*,*) "Input number of points to average:"- read (*,*) number_of_points-- allocate (points(number_of_points))-- write (*,*) "Enter the points to average:"- read (*,*) points-- ! Take the average by summing points and dividing by number_of_points- if (number_of_points > 0) average_points = sum(points) / number_of_points-- ! Now form average over positive and negative points only- if (count(points > 0.) > 0) then- positive_average = sum(points, points > 0.) / count(points > 0.)- end if-- if (count(points < 0.) > 0) then- negative_average = sum(points, points < 0.) / count(points < 0.)- end if-- deallocate (points)-- ! Print result to terminal- write (*,'(a,g12.4)') 'Average = ', average_points- write (*,'(a,g12.4)') 'Average of positive points = ', positive_average- write (*,'(a,g12.4)') 'Average of negative points = ', negative_average-- end program average-</textarea></div>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- mode: "text/x-fortran"- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-fortran</code>.</p>- </article>diff --git a/libraries/codemirror/mode/gas/index.html b/libraries/codemirror/mode/gas/index.htmldeleted file mode 100644index 34eea72da4..0000000000--- a/libraries/codemirror/mode/gas/index.html+++ /dev/null@@ -1,68 +0,0 @@-<!doctype html>--<title>CodeMirror: Gas mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="gas.js"></script>-<style>.CodeMirror {border: 2px inset #dee;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Gas</a>- </ul>-</div>--<article>-<h2>Gas mode</h2>-<form>-<textarea id="code" name="code">-.syntax unified-.global main--/*- * A- * multi-line- * comment.- */--@ A single line comment.--main:- push {sp, lr}- ldr r0, =message- bl puts- mov r0, #0- pop {sp, pc}--message:- .asciz "Hello world!<br />"-</textarea>- </form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- mode: {name: "gas", architecture: "ARMv6"},- });- </script>-- <p>Handles AT&T assembler syntax (more specifically this handles- the GNU Assembler (gas) syntax.)- It takes a single optional configuration parameter:- <code>architecture</code>, which can be one of <code>"ARM"</code>,- <code>"ARMv6"</code> or <code>"x86"</code>.- Including the parameter adds syntax for the registers and special- directives for the supplied architecture.-- <p><strong>MIME types defined:</strong> <code>text/x-gas</code></p>- </article>diff --git a/libraries/codemirror/mode/gfm/index.html b/libraries/codemirror/mode/gfm/index.htmldeleted file mode 100644index 8f6fb8ea80..0000000000--- a/libraries/codemirror/mode/gfm/index.html+++ /dev/null@@ -1,136 +0,0 @@-<!doctype html>--<title>CodeMirror: GFM mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/mode/overlay.js"></script>-<script src="../xml/xml.js"></script>-<script src="../markdown/markdown.js"></script>-<script src="gfm.js"></script>-<script src="../javascript/javascript.js"></script>-<script src="../css/css.js"></script>-<script src="../htmlmixed/htmlmixed.js"></script>-<script src="../clike/clike.js"></script>-<script src="../meta.js"></script>-<style>- .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}- .cm-s-default .cm-emoji {color: #009688;}-</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">GFM</a>- </ul>-</div>--<article>-<h2>GFM mode</h2>-<form><textarea id="code" name="code">-GitHub Flavored Markdown-========================--Everything from markdown plus GFM features:--## URL autolinking--Underscores_are_allowed_between_words.--## Strikethrough text--GFM adds syntax to strikethrough text, which is missing from standard Markdown.--~~Mistaken text.~~-~~**works with other formatting**~~--~~spans across-lines~~--## Fenced code blocks (and syntax highlighting)--```javascript-for (var i = 0; i < items.length; i++) {- console.log(items[i], i); // log them-}-```--## Task Lists--- [ ] Incomplete task list item-- [x] **Completed** task list item--## A bit of GitHub spice--See http://github.github.com/github-flavored-markdown/.--(Set `gitHubSpice: false` in mode options to disable):--* SHA: be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2-* User@SHA ref: mojombo@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2-* User/Project@SHA: mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2-* \#Num: #1-* User/#Num: mojombo#1-* User/Project#Num: mojombo/god#1--(Set `emoji: false` in mode options to disable):--* emoji: :smile:---</textarea></form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: {- name: "gfm",- tokenTypeOverrides: {- emoji: "emoji"- }- },- lineNumbers: true,- theme: "default"- });- </script>-- <p>Optionally depends on other modes for properly highlighted code blocks.</p>-- <p>Gfm mode supports these options (apart those from base Markdown mode):</p>- <ul>- <li>- <d1>- <dt><code>gitHubSpice: boolean</code></dt>- <dd>Hashes, issues... (default: <code>true</code>).</dd>- </d1>- </li>- <li>- <d1>- <dt><code>taskLists: boolean</code></dt>- <dd><code>- [ ]</code> syntax (default: <code>true</code>).</dd>- </d1>- </li>- <li>- <d1>- <dt><code>strikethrough: boolean</code></dt>- <dd><code>~~foo~~</code> syntax (default: <code>true</code>).</dd>- </d1>- </li>- <li>- <d1>- <dt><code>emoji: boolean</code></dt>- <dd><code>:emoji:</code> syntax (default: <code>true</code>).</dd>- </d1>- </li>- </ul>-- <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#gfm_*">normal</a>, <a href="../../test/index.html#verbose,gfm_*">verbose</a>.</p>-- </article>diff --git a/libraries/codemirror/mode/gfm/test.js b/libraries/codemirror/mode/gfm/test.jsdeleted file mode 100644index d933896aa5..0000000000--- a/libraries/codemirror/mode/gfm/test.js+++ /dev/null@@ -1,198 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var config = {tabSize: 4, indentUnit: 2}- var mode = CodeMirror.getMode(config, "gfm");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }- var modeHighlightFormatting = CodeMirror.getMode(config, {name: "gfm", highlightFormatting: true});- function FT(name) { test.mode(name, modeHighlightFormatting, Array.prototype.slice.call(arguments, 1)); }-- FT("codeBackticks",- "[comment&formatting&formatting-code `][comment foo][comment&formatting&formatting-code `]");-- FT("doubleBackticks",- "[comment&formatting&formatting-code ``][comment foo ` bar][comment&formatting&formatting-code ``]");-- FT("taskList",- "[variable-2&formatting&formatting-list&formatting-list-ul - ][meta&formatting&formatting-task [ ]]][variable-2 foo]",- "[variable-2&formatting&formatting-list&formatting-list-ul - ][property&formatting&formatting-task [x]]][variable-2 foo]");-- FT("formatting_strikethrough",- "[strikethrough&formatting&formatting-strikethrough ~~][strikethrough foo][strikethrough&formatting&formatting-strikethrough ~~]");-- FT("formatting_strikethrough",- "foo [strikethrough&formatting&formatting-strikethrough ~~][strikethrough bar][strikethrough&formatting&formatting-strikethrough ~~]");-- FT("formatting_emoji",- "foo [builtin&formatting&formatting-emoji :smile:] foo");-- MT("emInWordAsterisk",- "foo[em *bar*]hello");-- MT("emInWordUnderscore",- "foo_bar_hello");-- MT("emStrongUnderscore",- "[em&strong ___foo___] bar");-- MT("taskListAsterisk",- "[variable-2 * ][link&variable-2 [[]]][variable-2 foo]", // Invalid; must have space or x between []- "[variable-2 * ][link&variable-2 [[ ]]][variable-2 bar]", // Invalid; must have space after ]- "[variable-2 * ][link&variable-2 [[x]]][variable-2 hello]", // Invalid; must have space after ]- "[variable-2 * ][meta [ ]]][variable-2 ][link&variable-2 [[world]]]", // Valid; tests reference style links- " [variable-3 * ][property [x]]][variable-3 foo]"); // Valid; can be nested-- MT("taskListPlus",- "[variable-2 + ][link&variable-2 [[]]][variable-2 foo]", // Invalid; must have space or x between []- "[variable-2 + ][link&variable-2 [[x]]][variable-2 hello]", // Invalid; must have space after ]- "[variable-2 + ][meta [ ]]][variable-2 ][link&variable-2 [[world]]]", // Valid; tests reference style links- " [variable-3 + ][property [x]]][variable-3 foo]"); // Valid; can be nested-- MT("taskListDash",- "[variable-2 - ][link&variable-2 [[]]][variable-2 foo]", // Invalid; must have space or x between []- "[variable-2 - ][link&variable-2 [[x]]][variable-2 hello]", // Invalid; must have space after ]- "[variable-2 - ][meta [ ]]][variable-2 world]", // Valid; tests reference style links- " [variable-3 - ][property [x]]][variable-3 foo]"); // Valid; can be nested-- MT("taskListNumber",- "[variable-2 1. ][link&variable-2 [[]]][variable-2 foo]", // Invalid; must have space or x between []- "[variable-2 2. ][link&variable-2 [[ ]]][variable-2 bar]", // Invalid; must have space after ]- "[variable-2 3. ][meta [ ]]][variable-2 world]", // Valid; tests reference style links- " [variable-3 1. ][property [x]]][variable-3 foo]"); // Valid; can be nested-- MT("SHA",- "foo [link be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2] bar");-- MT("SHAEmphasis",- "[em *foo ][em&link be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2][em *]");-- MT("shortSHA",- "foo [link be6a8cc] bar");-- MT("tooShortSHA",- "foo be6a8c bar");-- MT("longSHA",- "foo be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd22 bar");-- MT("badSHA",- "foo be6a8cc1c1ecfe9489fb51e4869af15a13fc2cg2 bar");-- MT("userSHA",- "foo [link bar@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2] hello");-- MT("userSHAEmphasis",- "[em *foo ][em&link bar@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2][em *]");-- MT("userProjectSHA",- "foo [link bar/hello@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2] world");-- MT("userProjectSHAEmphasis",- "[em *foo ][em&link bar/hello@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2][em *]");-- MT("wordSHA",- "ask for feedbac")-- MT("num",- "foo [link #1] bar");-- MT("numEmphasis",- "[em *foo ][em&link #1][em *]");-- MT("badNum",- "foo #1bar hello");-- MT("userNum",- "foo [link bar#1] hello");-- MT("userNumEmphasis",- "[em *foo ][em&link bar#1][em *]");-- MT("userProjectNum",- "foo [link bar/hello#1] world");-- MT("userProjectNumEmphasis",- "[em *foo ][em&link bar/hello#1][em *]");-- MT("vanillaLink",- "foo [link http://www.example.com/] bar");-- MT("vanillaLinkNoScheme",- "foo [link www.example.com] bar");-- MT("vanillaLinkHttps",- "foo [link https://www.example.com/] bar");-- MT("vanillaLinkDataSchema",- "foo [link data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==] bar");-- MT("vanillaLinkPunctuation",- "foo [link http://www.example.com/]. bar");-- MT("vanillaLinkExtension",- "foo [link http://www.example.com/index.html] bar");-- MT("vanillaLinkEmphasis",- "foo [em *][em&link http://www.example.com/index.html][em *] bar");-- MT("notALink",- "foo asfd:asdf bar");-- MT("notALink",- "[comment ``foo `bar` http://www.example.com/``] hello");-- MT("notALink",- "[comment `foo]",- "[comment&link http://www.example.com/]",- "[comment `] foo",- "",- "[link http://www.example.com/]");-- MT("strikethrough",- "[strikethrough ~~foo~~]");-- MT("strikethroughWithStartingSpace",- "~~ foo~~");-- MT("strikethroughUnclosedStrayTildes",- "[strikethrough ~~foo~~~]");-- MT("strikethroughUnclosedStrayTildes",- "[strikethrough ~~foo ~~]");-- MT("strikethroughUnclosedStrayTildes",- "[strikethrough ~~foo ~~ bar]");-- MT("strikethroughUnclosedStrayTildes",- "[strikethrough ~~foo ~~ bar~~]hello");-- MT("strikethroughOneLetter",- "[strikethrough ~~a~~]");-- MT("strikethroughWrapped",- "[strikethrough ~~foo]",- "[strikethrough foo~~]");-- MT("strikethroughParagraph",- "[strikethrough ~~foo]",- "",- "foo[strikethrough ~~bar]");-- MT("strikethroughEm",- "[strikethrough ~~foo][em&strikethrough *bar*][strikethrough ~~]");-- MT("strikethroughEm",- "[em *][em&strikethrough ~~foo~~][em *]");-- MT("strikethroughStrong",- "[strikethrough ~~][strong&strikethrough **foo**][strikethrough ~~]");-- MT("strikethroughStrong",- "[strong **][strong&strikethrough ~~foo~~][strong **]");-- MT("emoji",- "text [builtin :blush:] text [builtin :v:] text [builtin :+1:] text",- ":text text: [builtin :smiley_cat:]");--})();diff --git a/libraries/codemirror/mode/gherkin/index.html b/libraries/codemirror/mode/gherkin/index.htmldeleted file mode 100644index 52e9ff67b2..0000000000--- a/libraries/codemirror/mode/gherkin/index.html+++ /dev/null@@ -1,48 +0,0 @@-<!doctype html>--<title>CodeMirror: Gherkin mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="gherkin.js"></script>-<style>.CodeMirror { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Gherkin</a>- </ul>-</div>--<article>-<h2>Gherkin mode</h2>-<form><textarea id="code" name="code">-Feature: Using Google- Background:- Something something- Something else- Scenario: Has a homepage- When I navigate to the google home page- Then the home page should contain the menu and the search form- Scenario: Searching for a term- When I navigate to the google home page- When I search for Tofu- Then the search results page is displayed- Then the search results page contains 10 individual search results- Then the search results contain a link to the wikipedia tofu page-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-feature</code>.</p>-- </article>diff --git a/libraries/codemirror/mode/go/index.html b/libraries/codemirror/mode/go/index.htmldeleted file mode 100644index 4489211043..0000000000--- a/libraries/codemirror/mode/go/index.html+++ /dev/null@@ -1,85 +0,0 @@-<!doctype html>--<title>CodeMirror: Go mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<link rel="stylesheet" href="../../theme/elegant.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="go.js"></script>-<style>.CodeMirror {border:1px solid #999; background:#ffc}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Go</a>- </ul>-</div>--<article>-<h2>Go mode</h2>-<form><textarea id="code" name="code">-// Prime Sieve in Go.-// Taken from the Go specification.-// Copyright © The Go Authors.--package main--import "fmt"--// Send the sequence 2, 3, 4, ... to channel 'ch'.-func generate(ch chan<- int) {- for i := 2; ; i++ {- ch <- i // Send 'i' to channel 'ch'- }-}--// Copy the values from channel 'src' to channel 'dst',-// removing those divisible by 'prime'.-func filter(src <-chan int, dst chan<- int, prime int) {- for i := range src { // Loop over values received from 'src'.- if i%prime != 0 {- dst <- i // Send 'i' to channel 'dst'.- }- }-}--// The prime sieve: Daisy-chain filter processes together.-func sieve() {- ch := make(chan int) // Create a new channel.- go generate(ch) // Start generate() as a subprocess.- for {- prime := <-ch- fmt.Print(prime, "\n")- ch1 := make(chan int)- go filter(ch, ch1, prime)- ch = ch1- }-}--func main() {- sieve()-}-</textarea></form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- theme: "elegant",- matchBrackets: true,- indentUnit: 8,- tabSize: 8,- indentWithTabs: true,- mode: "text/x-go"- });- </script>-- <p><strong>MIME type:</strong> <code>text/x-go</code></p>- </article>diff --git a/libraries/codemirror/mode/groovy/index.html b/libraries/codemirror/mode/groovy/index.htmldeleted file mode 100644index 3e022fdf09..0000000000--- a/libraries/codemirror/mode/groovy/index.html+++ /dev/null@@ -1,84 +0,0 @@-<!doctype html>--<title>CodeMirror: Groovy mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="groovy.js"></script>-<style>.CodeMirror {border-top: 1px solid #500; border-bottom: 1px solid #500;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Groovy</a>- </ul>-</div>--<article>-<h2>Groovy mode</h2>-<form><textarea id="code" name="code">-//Pattern for groovy script-def p = ~/.*\.groovy/-new File( 'd:\\scripts' ).eachFileMatch(p) {f ->- // imports list- def imports = []- f.eachLine {- // condition to detect an import instruction- ln -> if ( ln =~ '^import .*' ) {- imports << "${ln - 'import '}"- }- }- // print thmen- if ( ! imports.empty ) {- println f- imports.each{ println " $it" }- }-}--/* Coin changer demo code from http://groovy.codehaus.org */--enum UsCoin {- quarter(25), dime(10), nickel(5), penny(1)- UsCoin(v) { value = v }- final value-}--enum OzzieCoin {- fifty(50), twenty(20), ten(10), five(5)- OzzieCoin(v) { value = v }- final value-}--def plural(word, count) {- if (count == 1) return word- word[-1] == 'y' ? word[0..-2] + "ies" : word + "s"-}--def change(currency, amount) {- currency.values().inject([]){ list, coin ->- int count = amount / coin.value- amount = amount % coin.value- list += "$count ${plural(coin.toString(), count)}"- }-}-</textarea></form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- matchBrackets: true,- mode: "text/x-groovy"- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-groovy</code></p>- </article>diff --git a/libraries/codemirror/mode/haml/index.html b/libraries/codemirror/mode/haml/index.htmldeleted file mode 100644index ba3ea3062c..0000000000--- a/libraries/codemirror/mode/haml/index.html+++ /dev/null@@ -1,79 +0,0 @@-<!doctype html>--<title>CodeMirror: HAML mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../xml/xml.js"></script>-<script src="../htmlmixed/htmlmixed.js"></script>-<script src="../javascript/javascript.js"></script>-<script src="../ruby/ruby.js"></script>-<script src="haml.js"></script>-<style>.CodeMirror {background: #f8f8f8;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">HAML</a>- </ul>-</div>--<article>-<h2>HAML mode</h2>-<form><textarea id="code" name="code">-!!!-#content-.left.column(title="title"){:href => "/hello", :test => "#{hello}_#{world}"}- <!-- This is a comment -->- %h2 Welcome to our site!- %p= puts "HAML MODE"- .right.column- = render :partial => "sidebar"--.container- .row- .span8- %h1.title= @page_title-%p.title= @page_title-%p- /- The same as HTML comment- Hello multiline comment-- -# haml comment- This wont be displayed- nor will this- Date/Time:- - now = DateTime.now- %strong= now- - if now > DateTime.parse("December 31, 2006")- = "Happy new " + "year!"--%title- = @title- \= @title- <h1>Title</h1>- <h1 title="HELLO">- Title- </h1>- </textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- mode: "text/x-haml"- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-haml</code>.</p>-- <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#haml_*">normal</a>, <a href="../../test/index.html#verbose,haml_*">verbose</a>.</p>-- </article>diff --git a/libraries/codemirror/mode/haml/test.js b/libraries/codemirror/mode/haml/test.jsdeleted file mode 100644index e051452738..0000000000--- a/libraries/codemirror/mode/haml/test.js+++ /dev/null@@ -1,97 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({tabSize: 4, indentUnit: 2}, "haml");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }-- // Requires at least one media query- MT("elementName",- "[tag %h1] Hey There");-- MT("oneElementPerLine",- "[tag %h1] Hey There %h2");-- MT("idSelector",- "[tag %h1][attribute #test] Hey There");-- MT("classSelector",- "[tag %h1][attribute .hello] Hey There");-- MT("docType",- "[tag !!! XML]");-- MT("comment",- "[comment / Hello WORLD]");-- MT("notComment",- "[tag %h1] This is not a / comment ");-- MT("attributes",- "[tag %a]([variable title][operator =][string \"test\"]){[atom :title] [operator =>] [string \"test\"]}");-- MT("htmlCode",- "[tag&bracket <][tag h1][tag&bracket >]Title[tag&bracket </][tag h1][tag&bracket >]");-- MT("rubyBlock",- "[operator =][variable-2 @item]");-- MT("selectorRubyBlock",- "[tag %a.selector=] [variable-2 @item]");-- MT("nestedRubyBlock",- "[tag %a]",- " [operator =][variable puts] [string \"test\"]");-- MT("multilinePlaintext",- "[tag %p]",- " Hello,",- " World");-- MT("multilineRuby",- "[tag %p]",- " [comment -# this is a comment]",- " [comment and this is a comment too]",- " Date/Time",- " [operator -] [variable now] [operator =] [tag DateTime][operator .][property now]",- " [tag %strong=] [variable now]",- " [operator -] [keyword if] [variable now] [operator >] [tag DateTime][operator .][property parse]([string \"December 31, 2006\"])",- " [operator =][string \"Happy\"]",- " [operator =][string \"Belated\"]",- " [operator =][string \"Birthday\"]");-- MT("multilineComment",- "[comment /]",- " [comment Multiline]",- " [comment Comment]");-- MT("hamlComment",- "[comment -# this is a comment]");-- MT("multilineHamlComment",- "[comment -# this is a comment]",- " [comment and this is a comment too]");-- MT("multilineHTMLComment",- "[comment <!--]",- " [comment what a comment]",- " [comment -->]");-- MT("hamlAfterRubyTag",- "[attribute .block]",- " [tag %strong=] [variable now]",- " [attribute .test]",- " [operator =][variable now]",- " [attribute .right]");-- MT("stretchedRuby",- "[operator =] [variable puts] [string \"Hello\"],",- " [string \"World\"]");-- MT("interpolationInHashAttribute",- //"[tag %div]{[atom :id] [operator =>] [string \"#{][variable test][string }_#{][variable ting][string }\"]} test");- "[tag %div]{[atom :id] [operator =>] [string \"#{][variable test][string }_#{][variable ting][string }\"]} test");-- MT("interpolationInHTMLAttribute",- "[tag %div]([variable title][operator =][string \"#{][variable test][string }_#{][variable ting]()[string }\"]) Test");-})();diff --git a/libraries/codemirror/mode/handlebars/index.html b/libraries/codemirror/mode/handlebars/index.htmldeleted file mode 100644index e2da2e766f..0000000000--- a/libraries/codemirror/mode/handlebars/index.html+++ /dev/null@@ -1,82 +0,0 @@-<!doctype html>--<title>CodeMirror: Handlebars mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/mode/simple.js"></script>-<script src="../../addon/mode/multiplex.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="../xml/xml.js"></script>-<script src="handlebars.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">HTML mixed</a>- </ul>-</div>--<article>-<h2>Handlebars</h2>-<form><textarea id="code" name="code">-{{> breadcrumbs}}--{{!--- You can use the t function to get- content translated to the current locale, es:- {{t 'article_list'}}---}}--<h1>{{t 'article_list'}}</h1>--{{! one line comment }}--{{{propertyContainingRawHtml}}}--{{#each articles}}- {{~title}}- <p>{{excerpt body size=120 ellipsis=true}}</p>-- {{#with author}}- written by {{first_name}} {{last_name}}- from category: {{../category.title}}- {{#if @../last}}foobar!{{/if}}- {{/with~}}-- {{#if promoted.latest}}Read this one! {{else}} This is ok! {{/if}}-- {{#if @last}}<hr>{{/if}}-{{/each}}--{{#form new_comment}}- <input type="text" name="body">-{{/form}}--</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- matchBrackets: true,- mode: {name: "handlebars", base: "text/html"}- });- </script>-- <p>Handlebars syntax highlighting for CodeMirror.</p>-- <p><strong>MIME types defined:</strong> <code>text/x-handlebars-template</code></p>-- <p>Supported options: <code>base</code> to set the mode to- wrap. For example, use</p>- <pre>mode: {name: "handlebars", base: "text/html"}</pre>- <p>to highlight an HTML template.</p>-</article>diff --git a/libraries/codemirror/mode/haskell-literate/index.html b/libraries/codemirror/mode/haskell-literate/index.htmldeleted file mode 100644index aa3f3ea5b1..0000000000--- a/libraries/codemirror/mode/haskell-literate/index.html+++ /dev/null@@ -1,282 +0,0 @@-<!doctype html>--<title>CodeMirror: Haskell-literate mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="haskell-literate.js"></script>-<script src="../haskell/haskell.js"></script>-<style>.CodeMirror {- border-top : 1px solid #DDDDDD;- border-bottom : 1px solid #DDDDDD;-}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo- src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Haskell-literate</a>- </ul>-</div>--<article>- <h2>Haskell literate mode</h2>- <form>- <textarea id="code" name="code">-> {-# LANGUAGE OverloadedStrings #-}-> {-# OPTIONS_GHC -fno-warn-unused-do-bind #-}-> import Control.Applicative ((<$>), (<*>))-> import Data.Maybe (isJust)--> import Data.Text (Text)-> import Text.Blaze ((!))-> import qualified Data.Text as T-> import qualified Happstack.Server as Happstack-> import qualified Text.Blaze.Html5 as H-> import qualified Text.Blaze.Html5.Attributes as A--> import Text.Digestive-> import Text.Digestive.Blaze.Html5-> import Text.Digestive.Happstack-> import Text.Digestive.Util--Simple forms and validation------------------------------Let's start by creating a very simple datatype to represent a user:--> data User = User-> { userName :: Text-> , userMail :: Text-> } deriving (Show)--And dive in immediately to create a `Form` for a user. The `Form v m a` type-has three parameters:--- `v`: the type for messages and errors (usually a `String`-like type, `Text` in- this case);-- `m`: the monad we are operating in, not specified here;-- `a`: the return type of the `Form`, in this case, this is obviously `User`.--> userForm :: Monad m => Form Text m User--We create forms by using the `Applicative` interface. A few form types are-provided in the `Text.Digestive.Form` module, such as `text`, `string`,-`bool`...--In the `digestive-functors` library, the developer is required to label each-field using the `.:` operator. This might look like a bit of a burden, but it-allows you to do some really useful stuff, like separating the `Form` from the-actual HTML layout.--> userForm = User-> <$> "name" .: text Nothing-> <*> "mail" .: check "Not a valid email address" checkEmail (text Nothing)--The `check` function enables you to validate the result of a form. For example,-we can validate the email address with a really naive `checkEmail` function.--> checkEmail :: Text -> Bool-> checkEmail = isJust . T.find (== '@')--More validation------------------For our example, we also want descriptions of Haskell libraries, and in order to-do that, we need package versions...--> type Version = [Int]--We want to let the user input a version number such as `0.1.0.0`. This means we-need to validate if the input `Text` is of this form, and then we need to parse-it to a `Version` type. Fortunately, we can do this in a single function:-`validate` allows conversion between values, which can optionally fail.--`readMaybe :: Read a => String -> Maybe a` is a utility function imported from-`Text.Digestive.Util`.--> validateVersion :: Text -> Result Text Version-> validateVersion = maybe (Error "Cannot parse version") Success .-> mapM (readMaybe . T.unpack) . T.split (== '.')--A quick test in GHCi:-- ghci> validateVersion (T.pack "0.3.2.1")- Success [0,3,2,1]- ghci> validateVersion (T.pack "0.oops")- Error "Cannot parse version"--It works! This means we can now easily add a `Package` type and a `Form` for it:--> data Category = Web | Text | Math-> deriving (Bounded, Enum, Eq, Show)--> data Package = Package Text Version Category-> deriving (Show)--> packageForm :: Monad m => Form Text m Package-> packageForm = Package-> <$> "name" .: text Nothing-> <*> "version" .: validate validateVersion (text (Just "0.0.0.1"))-> <*> "category" .: choice categories Nothing-> where-> categories = [(x, T.pack (show x)) | x <- [minBound .. maxBound]]--Composing forms------------------A release has an author and a package. Let's use this to illustrate the-composability of the digestive-functors library: we can reuse the forms we have-written earlier on.--> data Release = Release User Package-> deriving (Show)--> releaseForm :: Monad m => Form Text m Release-> releaseForm = Release-> <$> "author" .: userForm-> <*> "package" .: packageForm--Views--------As mentioned before, one of the advantages of using digestive-functors is-separation of forms and their actual HTML layout. In order to do this, we have-another type, `View`.--We can get a `View` from a `Form` by supplying input. A `View` contains more-information than a `Form`, it has:--- the original form;-- the input given by the user;-- any errors that have occurred.--It is this view that we convert to HTML. For this tutorial, we use the-[blaze-html] library, and some helpers from the `digestive-functors-blaze`-library.--[blaze-html]: http://jaspervdj.be/blaze/--Let's write a view for the `User` form. As you can see, we here refer to the-different fields in the `userForm`. The `errorList` will generate a list of-errors for the `"mail"` field.--> userView :: View H.Html -> H.Html-> userView view = do-> label "name" view "Name: "-> inputText "name" view-> H.br->-> errorList "mail" view-> label "mail" view "Email address: "-> inputText "mail" view-> H.br--Like forms, views are also composable: let's illustrate that by adding a view-for the `releaseForm`, in which we reuse `userView`. In order to do this, we-take only the parts relevant to the author from the view by using `subView`. We-can then pass the resulting view to our own `userView`.-We have no special view code for `Package`, so we can just add that to-`releaseView` as well. `childErrorList` will generate a list of errors for each-child of the specified form. In this case, this means a list of errors from-`"package.name"` and `"package.version"`. Note how we use `foo.bar` to refer to-nested forms.--> releaseView :: View H.Html -> H.Html-> releaseView view = do-> H.h2 "Author"-> userView $ subView "author" view->-> H.h2 "Package"-> childErrorList "package" view->-> label "package.name" view "Name: "-> inputText "package.name" view-> H.br->-> label "package.version" view "Version: "-> inputText "package.version" view-> H.br->-> label "package.category" view "Category: "-> inputSelect "package.category" view-> H.br--The attentive reader might have wondered what the type parameter for `View` is:-it is the `String`-like type used for e.g. error messages.-But wait! We have- releaseForm :: Monad m => Form Text m Release- releaseView :: View H.Html -> H.Html-... doesn't this mean that we need a `View Text` rather than a `View Html`? The-answer is yes -- but having `View Html` allows us to write these views more-easily with the `digestive-functors-blaze` library. Fortunately, we will be able-to fix this using the `Functor` instance of `View`.- fmap :: Monad m => (v -> w) -> View v -> View w-A backend-----------To finish this tutorial, we need to be able to actually run this code. We need-an HTTP server for that, and we use [Happstack] for this tutorial. The-`digestive-functors-happstack` library gives about everything we need for this.-[Happstack]: http://happstack.com/--> site :: Happstack.ServerPart Happstack.Response-> site = do-> Happstack.decodeBody $ Happstack.defaultBodyPolicy "/tmp" 4096 4096 4096-> r <- runForm "test" releaseForm-> case r of-> (view, Nothing) -> do-> let view' = fmap H.toHtml view-> Happstack.ok $ Happstack.toResponse $-> template $-> form view' "/" $ do-> releaseView view'-> H.br-> inputSubmit "Submit"-> (_, Just release) -> Happstack.ok $ Happstack.toResponse $-> template $ do-> css-> H.h1 "Release received"-> H.p $ H.toHtml $ show release->-> main :: IO ()-> main = Happstack.simpleHTTP Happstack.nullConf site--Utilities------------> template :: H.Html -> H.Html-> template body = H.docTypeHtml $ do-> H.head $ do-> H.title "digestive-functors tutorial"-> css-> H.body body-> css :: H.Html-> css = H.style ! A.type_ "text/css" $ do-> "label {width: 130px; float: left; clear: both}"-> "ul.digestive-functors-error-list {"-> " color: red;"-> " list-style-type: none;"-> " padding-left: 0px;"-> "}"- </textarea>- </form>-- <p><strong>MIME types- defined:</strong> <code>text/x-literate-haskell</code>.</p>-- <p>Parser configuration parameters recognized: <code>base</code> to- set the base mode (defaults to <code>"haskell"</code>).</p>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {mode: "haskell-literate"});- </script>--</article>diff --git a/libraries/codemirror/mode/haskell/index.html b/libraries/codemirror/mode/haskell/index.htmldeleted file mode 100644index 4d56682973..0000000000--- a/libraries/codemirror/mode/haskell/index.html+++ /dev/null@@ -1,73 +0,0 @@-<!doctype html>--<title>CodeMirror: Haskell mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<link rel="stylesheet" href="../../theme/elegant.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="haskell.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Haskell</a>- </ul>-</div>--<article>-<h2>Haskell mode</h2>-<form><textarea id="code" name="code">-module UniquePerms (- uniquePerms- )-where---- | Find all unique permutations of a list where there might be duplicates.-uniquePerms :: (Eq a) => [a] -> [[a]]-uniquePerms = permBag . makeBag---- | An unordered collection where duplicate values are allowed,--- but represented with a single value and a count.-type Bag a = [(a, Int)]--makeBag :: (Eq a) => [a] -> Bag a-makeBag [] = []-makeBag (a:as) = mix a $ makeBag as- where- mix a [] = [(a,1)]- mix a (bn@(b,n):bs) | a == b = (b,n+1):bs- | otherwise = bn : mix a bs--permBag :: Bag a -> [[a]]-permBag [] = [[]]-permBag bs = concatMap (\(f,cs) -> map (f:) $ permBag cs) . oneOfEach $ bs- where- oneOfEach [] = []- oneOfEach (an@(a,n):bs) =- let bs' = if n == 1 then bs else (a,n-1):bs- in (a,bs') : mapSnd (an:) (oneOfEach bs)-- apSnd f (a,b) = (a, f b)- mapSnd = map . apSnd-</textarea></form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- matchBrackets: true,- theme: "elegant"- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-haskell</code>.</p>- </article>diff --git a/libraries/codemirror/mode/haxe/index.html b/libraries/codemirror/mode/haxe/index.htmldeleted file mode 100644index 89dacdfb59..0000000000--- a/libraries/codemirror/mode/haxe/index.html+++ /dev/null@@ -1,124 +0,0 @@-<!doctype html>--<title>CodeMirror: Haxe mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="haxe.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Haxe</a>- </ul>-</div>--<article>-<h2>Haxe mode</h2>---<div><p><textarea id="code-haxe" name="code">-import one.two.Three;--@attr("test")-class Foo<T> extends Three-{- public function new()- {- noFoo = 12;- }-- public static inline function doFoo(obj:{k:Int, l:Float}):Int- {- for(i in 0...10)- {- obj.k++;- trace(i);- var var1 = new Array();- if(var1.length > 1)- throw "Error";- }- // The following line should not be colored, the variable is scoped out- var1;- /* Multi line- * Comment test- */- return obj.k;- }- private function bar():Void- {- #if flash- var t1:String = "1.21";- #end- try {- doFoo({k:3, l:1.2});- }- catch (e : String) {- trace(e);- }- var t2:Float = cast(3.2);- var t3:haxe.Timer = new haxe.Timer();- var t4 = {k:Std.int(t2), l:Std.parseFloat(t1)};- var t5 = ~/123+.*$/i;- doFoo(t4);- untyped t1 = 4;- bob = new Foo<Int>- }- public var okFoo(default, never):Float;- var noFoo(getFoo, null):Int;- function getFoo():Int {- return noFoo;- }-- public var three:Int;-}-enum Color-{- red;- green;- blue;- grey( v : Int );- rgb (r:Int,g:Int,b:Int);-}-</textarea></p>--<p>Hxml mode:</p>--<p><textarea id="code-hxml">--cp test--js path/to/file.js-#-remap nme:flash---next--D source-map-content--cmd 'test'--lib lime-</textarea></p>-</div>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code-haxe"), {- mode: "haxe",- lineNumbers: true,- indentUnit: 4,- indentWithTabs: true- });-- editor = CodeMirror.fromTextArea(document.getElementById("code-hxml"), {- mode: "hxml",- lineNumbers: true,- indentUnit: 4,- indentWithTabs: true- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-haxe, text/x-hxml</code>.</p>- </article>diff --git a/libraries/codemirror/mode/htmlembedded/index.html b/libraries/codemirror/mode/htmlembedded/index.htmldeleted file mode 100644index 4257237af1..0000000000--- a/libraries/codemirror/mode/htmlembedded/index.html+++ /dev/null@@ -1,60 +0,0 @@-<!doctype html>--<title>CodeMirror: Html Embedded Scripts mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../xml/xml.js"></script>-<script src="../javascript/javascript.js"></script>-<script src="../css/css.js"></script>-<script src="../htmlmixed/htmlmixed.js"></script>-<script src="../../addon/mode/multiplex.js"></script>-<script src="htmlembedded.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Html Embedded Scripts</a>- </ul>-</div>--<article>-<h2>Html Embedded Scripts mode</h2>-<form><textarea id="code" name="code">-<%-function hello(who) {- return "Hello " + who;-}-%>-This is an example of EJS (embedded javascript)-<p>The program says <%= hello("world") %>.</p>-<script>- alert("And here is some normal JS code"); // also colored-</script>-</textarea></form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- mode: "application/x-ejs",- indentUnit: 4,- indentWithTabs: true- });- </script>-- <p>Mode for html embedded scripts like JSP and ASP.NET. Depends on multiplex and HtmlMixed which in turn depends on- JavaScript, CSS and XML.<br />Other dependencies include those of the scripting language chosen.</p>-- <p><strong>MIME types defined:</strong> <code>application/x-aspx</code> (ASP.NET),- <code>application/x-ejs</code> (Embedded Javascript), <code>application/x-jsp</code> (JavaServer Pages)- and <code>application/x-erb</code></p>- </article>diff --git a/libraries/codemirror/mode/htmlmixed/index.html b/libraries/codemirror/mode/htmlmixed/index.htmldeleted file mode 100644index 7de1e03503..0000000000--- a/libraries/codemirror/mode/htmlmixed/index.html+++ /dev/null@@ -1,100 +0,0 @@-<!doctype html>--<title>CodeMirror: HTML mixed mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/selection/selection-pointer.js"></script>-<script src="../xml/xml.js"></script>-<script src="../javascript/javascript.js"></script>-<script src="../css/css.js"></script>-<script src="../vbscript/vbscript.js"></script>-<script src="htmlmixed.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">HTML mixed</a>- </ul>-</div>--<article>-<h2>HTML mixed mode</h2>-<form><textarea id="code" name="code">-<html style="color: green">- <!-- this is a comment -->- <head>- <title>Mixed HTML Example</title>- <style>- h1 {font-family: comic sans; color: #f0f;}- div {background: yellow !important;}- body {- max-width: 50em;- margin: 1em 2em 1em 5em;- }- </style>- </head>- <body>- <h1>Mixed HTML Example</h1>- <script>- function jsFunc(arg1, arg2) {- if (arg1 && arg2) document.body.innerHTML = "achoo";- }- </script>- </body>-</html>-</textarea></form>- <script>- // Define an extended mixed-mode that understands vbscript and- // leaves mustache/handlebars embedded templates in html mode- var mixedMode = {- name: "htmlmixed",- scriptTypes: [{matches: /\/x-handlebars-template|\/x-mustache/i,- mode: null},- {matches: /(text|application)\/(x-)?vb(a|script)/i,- mode: "vbscript"}]- };- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: mixedMode,- selectionPointer: true- });- </script>-- <p>The HTML mixed mode depends on the XML, JavaScript, and CSS modes.</p>-- <p>It takes an optional mode configuration- option, <code>tags</code>, which can be used to add custom- behavior for specific tags. When given, it should be an object- mapping tag names (for example <code>script</code>) to arrays or- three-element arrays. Those inner arrays indicate [attributeName,- valueRegexp, <a href="../../doc/manual.html#option_mode">modeSpec</a>]- specifications. For example, you could use <code>["type", /^foo$/,- "foo"]</code> to map the attribute <code>type="foo"</code> to- the <code>foo</code> mode. When the first two fields are null- (<code>[null, null, "mode"]</code>), the given mode is used for- any such tag that doesn't match any of the previously given- attributes. For example:</p>-- <pre>var myModeSpec = {- name: "htmlmixed",- tags: {- style: [["type", /^text\/(x-)?scss$/, "text/x-scss"],- [null, null, "css"]],- custom: [[null, null, "customMode"]]- }-}</pre>-- <p><strong>MIME types defined:</strong> <code>text/html</code>- (redefined, only takes effect if you load this parser after the- XML parser).</p>-- </article>diff --git a/libraries/codemirror/mode/http/index.html b/libraries/codemirror/mode/http/index.htmldeleted file mode 100644index b631ec5294..0000000000--- a/libraries/codemirror/mode/http/index.html+++ /dev/null@@ -1,45 +0,0 @@-<!doctype html>--<title>CodeMirror: HTTP mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="http.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">HTTP</a>- </ul>-</div>--<article>-<h2>HTTP mode</h2>---<div><textarea id="code" name="code">-POST /somewhere HTTP/1.1-Host: example.com-If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT-Content-Type: application/x-www-form-urlencoded;- charset=utf-8-User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/20.0.1132.47 Chrome/20.0.1132.47 Safari/536.11--This is the request body!-</textarea></div>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});- </script>-- <p><strong>MIME types defined:</strong> <code>message/http</code>.</p>- </article>diff --git a/libraries/codemirror/mode/idl/index.html b/libraries/codemirror/mode/idl/index.htmldeleted file mode 100644index 6ef17d093e..0000000000--- a/libraries/codemirror/mode/idl/index.html+++ /dev/null@@ -1,65 +0,0 @@-<!doctype html>--<title>CodeMirror: IDL mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="idl.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">IDL</a>- </ul>-</div>--<article>-<h2>IDL mode</h2>-- <div><textarea id="code" name="code">-;; Example IDL code-FUNCTION mean_and_stddev,array- ;; This program reads in an array of numbers- ;; and returns a structure containing the- ;; average and standard deviation-- ave = 0.0- count = 0.0-- for i=0,N_ELEMENTS(array)-1 do begin- ave = ave + array[i]- count = count + 1- endfor-- ave = ave/count-- std = stddev(array)-- return, {average:ave,std:std}--END-- </textarea></div>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: {name: "idl",- version: 1,- singleLineStringErrors: false},- lineNumbers: true,- indentUnit: 4,- matchBrackets: true- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-idl</code>.</p>-</article>diff --git a/libraries/codemirror/mode/index.html b/libraries/codemirror/mode/index.htmldeleted file mode 100644index 858ba127f2..0000000000--- a/libraries/codemirror/mode/index.html+++ /dev/null@@ -1,165 +0,0 @@-<!doctype html>--<title>CodeMirror: Language Modes</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../doc/docs.css">--<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../doc/logo.png"></a>-- <ul>- <li><a href="../index.html">Home</a>- <li><a href="../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a class=active href="#">Language modes</a>- </ul>-</div>--<article>-- <h2>Language modes</h2>-- <p>This is a list of every mode in the distribution. Each mode lives-in a subdirectory of the <code>mode/</code> directory, and typically-defines a single JavaScript file that implements the mode. Loading-such file will make the language available to CodeMirror, through-the <a href="../doc/manual.html#option_mode"><code>mode</code></a>-option.</p>-- <div style="-webkit-columns: 100px 2; -moz-columns: 100px 2; columns: 100px 2;">- <ul style="margin-top: 0">- <li><a href="apl/index.html">APL</a></li>- <li><a href="asn.1/index.html">ASN.1</a></li>- <li><a href="asterisk/index.html">Asterisk dialplan</a></li>- <li><a href="brainfuck/index.html">Brainfuck</a></li>- <li><a href="clike/index.html">C, C++, C#</a></li>- <li><a href="clike/index.html">Ceylon</a></li>- <li><a href="clojure/index.html">Clojure</a></li>- <li><a href="css/gss.html">Closure Stylesheets (GSS)</a></li>- <li><a href="cmake/index.html">CMake</a></li>- <li><a href="cobol/index.html">COBOL</a></li>- <li><a href="coffeescript/index.html">CoffeeScript</a></li>- <li><a href="commonlisp/index.html">Common Lisp</a></li>- <li><a href="crystal/index.html">Crystal</a></li>- <li><a href="css/index.html">CSS</a></li>- <li><a href="cypher/index.html">Cypher</a></li>- <li><a href="python/index.html">Cython</a></li>- <li><a href="d/index.html">D</a></li>- <li><a href="dart/index.html">Dart</a></li>- <li><a href="django/index.html">Django</a> (templating language)</li>- <li><a href="dockerfile/index.html">Dockerfile</a></li>- <li><a href="diff/index.html">diff</a></li>- <li><a href="dtd/index.html">DTD</a></li>- <li><a href="dylan/index.html">Dylan</a></li>- <li><a href="ebnf/index.html">EBNF</a></li>- <li><a href="ecl/index.html">ECL</a></li>- <li><a href="eiffel/index.html">Eiffel</a></li>- <li><a href="https://github.com/optick/codemirror-mode-elixir">Elixir</a></li>- <li><a href="elm/index.html">Elm</a></li>- <li><a href="erlang/index.html">Erlang</a></li>- <li><a href="factor/index.html">Factor</a></li>- <li><a href="fcl/index.html">FCL</a></li>- <li><a href="forth/index.html">Forth</a></li>- <li><a href="fortran/index.html">Fortran</a></li>- <li><a href="mllike/index.html">F#</a></li>- <li><a href="gas/index.html">Gas</a> (AT&T-style assembly)</li>- <li><a href="gherkin/index.html">Gherkin</a></li>- <li><a href="go/index.html">Go</a></li>- <li><a href="groovy/index.html">Groovy</a></li>- <li><a href="haml/index.html">HAML</a></li>- <li><a href="handlebars/index.html">Handlebars</a></li>- <li><a href="haskell/index.html">Haskell</a> (<a href="haskell-literate/index.html">Literate</a>)</li>- <li><a href="haxe/index.html">Haxe</a></li>- <li><a href="htmlembedded/index.html">HTML embedded</a> (JSP, ASP.NET)</li>- <li><a href="htmlmixed/index.html">HTML mixed-mode</a></li>- <li><a href="http/index.html">HTTP</a></li>- <li><a href="idl/index.html">IDL</a></li>- <li><a href="clike/index.html">Java</a></li>- <li><a href="javascript/index.html">JavaScript</a> (<a href="jsx/index.html">JSX</a>)</li>- <li><a href="jinja2/index.html">Jinja2</a></li>- <li><a href="julia/index.html">Julia</a></li>- <li><a href="clike/index.html">Kotlin</a></li>- <li><a href="css/less.html">LESS</a></li>- <li><a href="livescript/index.html">LiveScript</a></li>- <li><a href="lua/index.html">Lua</a></li>- <li><a href="markdown/index.html">Markdown</a> (<a href="gfm/index.html">GitHub-flavour</a>)</li>- <li><a href="mathematica/index.html">Mathematica</a></li>- <li><a href="mbox/index.html">mbox</a></li>- <li><a href="mirc/index.html">mIRC</a></li>- <li><a href="modelica/index.html">Modelica</a></li>- <li><a href="mscgen/index.html">MscGen</a></li>- <li><a href="mumps/index.html">MUMPS</a></li>- <li><a href="nginx/index.html">Nginx</a></li>- <li><a href="nsis/index.html">NSIS</a></li>- <li><a href="ntriples/index.html">N-Triples/N-Quads</a></li>- <li><a href="clike/index.html">Objective C</a></li>- <li><a href="mllike/index.html">OCaml</a></li>- <li><a href="octave/index.html">Octave</a> (MATLAB)</li>- <li><a href="oz/index.html">Oz</a></li>- <li><a href="pascal/index.html">Pascal</a></li>- <li><a href="pegjs/index.html">PEG.js</a></li>- <li><a href="perl/index.html">Perl</a></li>- <li><a href="asciiarmor/index.html">PGP (ASCII armor)</a></li>- <li><a href="php/index.html">PHP</a></li>- <li><a href="pig/index.html">Pig Latin</a></li>- <li><a href="powershell/index.html">PowerShell</a></li>- <li><a href="properties/index.html">Properties files</a></li>- <li><a href="protobuf/index.html">ProtoBuf</a></li>- <li><a href="pug/index.html">Pug</a></li>- <li><a href="puppet/index.html">Puppet</a></li>- <li><a href="python/index.html">Python</a></li>- <li><a href="q/index.html">Q</a></li>- <li><a href="r/index.html">R</a></li>- <li><a href="rpm/index.html">RPM</a></li>- <li><a href="rst/index.html">reStructuredText</a></li>- <li><a href="ruby/index.html">Ruby</a></li>- <li><a href="rust/index.html">Rust</a></li>- <li><a href="sas/index.html">SAS</a></li>- <li><a href="sass/index.html">Sass</a></li>- <li><a href="spreadsheet/index.html">Spreadsheet</a></li>- <li><a href="clike/scala.html">Scala</a></li>- <li><a href="scheme/index.html">Scheme</a></li>- <li><a href="css/scss.html">SCSS</a></li>- <li><a href="shell/index.html">Shell</a></li>- <li><a href="sieve/index.html">Sieve</a></li>- <li><a href="slim/index.html">Slim</a></li>- <li><a href="smalltalk/index.html">Smalltalk</a></li>- <li><a href="smarty/index.html">Smarty</a></li>- <li><a href="solr/index.html">Solr</a></li>- <li><a href="soy/index.html">Soy</a></li>- <li><a href="stylus/index.html">Stylus</a></li>- <li><a href="sql/index.html">SQL</a> (several dialects)</li>- <li><a href="sparql/index.html">SPARQL</a></li>- <li><a href="clike/index.html">Squirrel</a></li>- <li><a href="swift/index.html">Swift</a></li>- <li><a href="stex/index.html">sTeX, LaTeX</a></li>- <li><a href="tcl/index.html">Tcl</a></li>- <li><a href="textile/index.html">Textile</a></li>- <li><a href="tiddlywiki/index.html">Tiddlywiki</a></li>- <li><a href="tiki/index.html">Tiki wiki</a></li>- <li><a href="toml/index.html">TOML</a></li>- <li><a href="tornado/index.html">Tornado</a> (templating language)</li>- <li><a href="troff/index.html">troff</a> (for manpages)</li>- <li><a href="ttcn/index.html">TTCN</a></li>- <li><a href="ttcn-cfg/index.html">TTCN Configuration</a></li>- <li><a href="turtle/index.html">Turtle</a></li>- <li><a href="twig/index.html">Twig</a></li>- <li><a href="vb/index.html">VB.NET</a></li>- <li><a href="vbscript/index.html">VBScript</a></li>- <li><a href="velocity/index.html">Velocity</a></li>- <li><a href="verilog/index.html">Verilog/SystemVerilog</a></li>- <li><a href="vhdl/index.html">VHDL</a></li>- <li><a href="vue/index.html">Vue.js app</a></li>- <li><a href="webidl/index.html">Web IDL</a></li>- <li><a href="xml/index.html">XML/HTML</a></li>- <li><a href="xquery/index.html">XQuery</a></li>- <li><a href="yacas/index.html">Yacas</a></li>- <li><a href="yaml/index.html">YAML</a></li>- <li><a href="yaml-frontmatter/index.html">YAML frontmatter</a></li>- <li><a href="z80/index.html">Z80</a></li>- </ul>- </div>--</article>diff --git a/libraries/codemirror/mode/javascript/index.html b/libraries/codemirror/mode/javascript/index.htmldeleted file mode 100644index 4eff2e28bc..0000000000--- a/libraries/codemirror/mode/javascript/index.html+++ /dev/null@@ -1,114 +0,0 @@-<!doctype html>--<title>CodeMirror: JavaScript mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="../../addon/comment/continuecomment.js"></script>-<script src="../../addon/comment/comment.js"></script>-<script src="javascript.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">JavaScript</a>- </ul>-</div>--<article>-<h2>JavaScript mode</h2>---<div><textarea id="code" name="code">-// Demo code (the actual new parser character stream implementation)--function StringStream(string) {- this.pos = 0;- this.string = string;-}--StringStream.prototype = {- done: function() {return this.pos >= this.string.length;},- peek: function() {return this.string.charAt(this.pos);},- next: function() {- if (this.pos < this.string.length)- return this.string.charAt(this.pos++);- },- eat: function(match) {- var ch = this.string.charAt(this.pos);- if (typeof match == "string") var ok = ch == match;- else var ok = ch && match.test ? match.test(ch) : match(ch);- if (ok) {this.pos++; return ch;}- },- eatWhile: function(match) {- var start = this.pos;- while (this.eat(match));- if (this.pos > start) return this.string.slice(start, this.pos);- },- backUp: function(n) {this.pos -= n;},- column: function() {return this.pos;},- eatSpace: function() {- var start = this.pos;- while (/\s/.test(this.string.charAt(this.pos))) this.pos++;- return this.pos - start;- },- match: function(pattern, consume, caseInsensitive) {- if (typeof pattern == "string") {- function cased(str) {return caseInsensitive ? str.toLowerCase() : str;}- if (cased(this.string).indexOf(cased(pattern), this.pos) == this.pos) {- if (consume !== false) this.pos += str.length;- return true;- }- }- else {- var match = this.string.slice(this.pos).match(pattern);- if (match && consume !== false) this.pos += match[0].length;- return match;- }- }-};-</textarea></div>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- matchBrackets: true,- continueComments: "Enter",- extraKeys: {"Ctrl-Q": "toggleComment"}- });- </script>-- <p>- JavaScript mode supports several configuration options:- <ul>- <li><code>json</code> which will set the mode to expect JSON- data rather than a JavaScript program.</li>- <li><code>jsonld</code> which will set the mode to expect- <a href="http://json-ld.org">JSON-LD</a> linked data rather- than a JavaScript program (<a href="json-ld.html">demo</a>).</li>- <li><code>typescript</code> which will activate additional- syntax highlighting and some other things for TypeScript code- (<a href="typescript.html">demo</a>).</li>- <li><code>statementIndent</code> which (given a number) will- determine the amount of indentation to use for statements- continued on a new line.</li>- <li><code>wordCharacters</code>, a regexp that indicates which- characters should be considered part of an identifier.- Defaults to <code>/[\w$]/</code>, which does not handle- non-ASCII identifiers. Can be set to something more elaborate- to improve Unicode support.</li>- </ul>- </p>-- <p><strong>MIME types defined:</strong> <code>text/javascript</code>, <code>application/json</code>, <code>application/ld+json</code>, <code>text/typescript</code>, <code>application/typescript</code>.</p>- </article>diff --git a/libraries/codemirror/mode/javascript/test.js b/libraries/codemirror/mode/javascript/test.jsdeleted file mode 100644index 327eac76b9..0000000000--- a/libraries/codemirror/mode/javascript/test.js+++ /dev/null@@ -1,513 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({indentUnit: 2}, "javascript");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }-- MT("locals",- "[keyword function] [def foo]([def a], [def b]) { [keyword var] [def c] [operator =] [number 10]; [keyword return] [variable-2 a] [operator +] [variable-2 c] [operator +] [variable d]; }");-- MT("comma-and-binop",- "[keyword function](){ [keyword var] [def x] [operator =] [number 1] [operator +] [number 2], [def y]; }");-- MT("destructuring",- "([keyword function]([def a], [[[def b], [def c] ]]) {",- " [keyword let] {[def d], [property foo]: [def c][operator =][number 10], [def x]} [operator =] [variable foo]([variable-2 a]);",- " [[[variable-2 c], [variable y] ]] [operator =] [variable-2 c];",- "})();");-- MT("destructure_trailing_comma",- "[keyword let] {[def a], [def b],} [operator =] [variable foo];",- "[keyword let] [def c];"); // Parser still in good state?-- MT("class_body",- "[keyword class] [def Foo] {",- " [property constructor]() {}",- " [property sayName]() {",- " [keyword return] [string-2 `foo${][variable foo][string-2 }oo`];",- " }",- "}");-- MT("class",- "[keyword class] [def Point] [keyword extends] [variable SuperThing] {",- " [keyword get] [property prop]() { [keyword return] [number 24]; }",- " [property constructor]([def x], [def y]) {",- " [keyword super]([string 'something']);",- " [keyword this].[property x] [operator =] [variable-2 x];",- " }",- "}");-- MT("anonymous_class_expression",- "[keyword const] [def Adder] [operator =] [keyword class] [keyword extends] [variable Arithmetic] {",- " [property add]([def a], [def b]) {}",- "};");-- MT("named_class_expression",- "[keyword const] [def Subber] [operator =] [keyword class] [def Subtract] {",- " [property sub]([def a], [def b]) {}",- "};");-- MT("class_async_method",- "[keyword class] [def Foo] {",- " [property sayName1]() {}",- " [keyword async] [property sayName2]() {}",- "}");-- MT("import",- "[keyword function] [def foo]() {",- " [keyword import] [def $] [keyword from] [string 'jquery'];",- " [keyword import] { [def encrypt], [def decrypt] } [keyword from] [string 'crypto'];",- "}");-- MT("import_trailing_comma",- "[keyword import] {[def foo], [def bar],} [keyword from] [string 'baz']")-- MT("import_dynamic",- "[keyword import]([string 'baz']).[property then]")-- MT("import_dynamic",- "[keyword const] [def t] [operator =] [keyword import]([string 'baz']).[property then]")-- MT("const",- "[keyword function] [def f]() {",- " [keyword const] [[ [def a], [def b] ]] [operator =] [[ [number 1], [number 2] ]];",- "}");-- MT("for/of",- "[keyword for]([keyword let] [def of] [keyword of] [variable something]) {}");-- MT("for await",- "[keyword for] [keyword await]([keyword let] [def of] [keyword of] [variable something]) {}");-- MT("generator",- "[keyword function*] [def repeat]([def n]) {",- " [keyword for]([keyword var] [def i] [operator =] [number 0]; [variable-2 i] [operator <] [variable-2 n]; [operator ++][variable-2 i])",- " [keyword yield] [variable-2 i];",- "}");-- MT("let_scoping",- "[keyword function] [def scoped]([def n]) {",- " { [keyword var] [def i]; } [variable-2 i];",- " { [keyword let] [def j]; [variable-2 j]; } [variable j];",- " [keyword if] ([atom true]) { [keyword const] [def k]; [variable-2 k]; } [variable k];",- "}");-- MT("switch_scoping",- "[keyword switch] ([variable x]) {",- " [keyword default]:",- " [keyword let] [def j];",- " [keyword return] [variable-2 j]",- "}",- "[variable j];")-- MT("leaving_scope",- "[keyword function] [def a]() {",- " {",- " [keyword const] [def x] [operator =] [number 1]",- " [keyword if] ([atom true]) {",- " [keyword let] [def y] [operator =] [number 2]",- " [keyword var] [def z] [operator =] [number 3]",- " [variable console].[property log]([variable-2 x], [variable-2 y], [variable-2 z])",- " }",- " [variable console].[property log]([variable-2 x], [variable y], [variable-2 z])",- " }",- " [variable console].[property log]([variable x], [variable y], [variable-2 z])",- "}")-- MT("quotedStringAddition",- "[keyword let] [def f] [operator =] [variable a] [operator +] [string 'fatarrow'] [operator +] [variable c];");-- MT("quotedFatArrow",- "[keyword let] [def f] [operator =] [variable a] [operator +] [string '=>'] [operator +] [variable c];");-- MT("fatArrow",- "[variable array].[property filter]([def a] [operator =>] [variable-2 a] [operator +] [number 1]);",- "[variable a];", // No longer in scope- "[keyword let] [def f] [operator =] ([[ [def a], [def b] ]], [def c]) [operator =>] [variable-2 a] [operator +] [variable-2 c];",- "[variable c];");-- MT("fatArrow_stringDefault",- "([def a], [def b] [operator =] [string 'x\\'y']) [operator =>] [variable-2 a] [operator +] [variable-2 b]")-- MT("spread",- "[keyword function] [def f]([def a], [meta ...][def b]) {",- " [variable something]([variable-2 a], [meta ...][variable-2 b]);",- "}");-- MT("quasi",- "[variable re][string-2 `fofdlakj${][variable x] [operator +] ([variable re][string-2 `foo`]) [operator +] [number 1][string-2 }fdsa`] [operator +] [number 2]");-- MT("quasi_no_function",- "[variable x] [operator =] [string-2 `fofdlakj${][variable x] [operator +] [string-2 `foo`] [operator +] [number 1][string-2 }fdsa`] [operator +] [number 2]");-- MT("indent_statement",- "[keyword var] [def x] [operator =] [number 10]",- "[variable x] [operator +=] [variable y] [operator +]",- " [atom Infinity]",- "[keyword debugger];");-- MT("indent_if",- "[keyword if] ([number 1])",- " [keyword break];",- "[keyword else] [keyword if] ([number 2])",- " [keyword continue];",- "[keyword else]",- " [number 10];",- "[keyword if] ([number 1]) {",- " [keyword break];",- "} [keyword else] [keyword if] ([number 2]) {",- " [keyword continue];",- "} [keyword else] {",- " [number 10];",- "}");-- MT("indent_for",- "[keyword for] ([keyword var] [def i] [operator =] [number 0];",- " [variable i] [operator <] [number 100];",- " [variable i][operator ++])",- " [variable doSomething]([variable i]);",- "[keyword debugger];");-- MT("indent_c_style",- "[keyword function] [def foo]()",- "{",- " [keyword debugger];",- "}");-- MT("indent_else",- "[keyword for] (;;)",- " [keyword if] ([variable foo])",- " [keyword if] ([variable bar])",- " [number 1];",- " [keyword else]",- " [number 2];",- " [keyword else]",- " [number 3];");-- MT("indent_funarg",- "[variable foo]([number 10000],",- " [keyword function]([def a]) {",- " [keyword debugger];",- "};");-- MT("indent_below_if",- "[keyword for] (;;)",- " [keyword if] ([variable foo])",- " [number 1];",- "[number 2];");-- MT("indent_semicolonless_if",- "[keyword function] [def foo]() {",- " [keyword if] ([variable x])",- " [variable foo]()",- "}")-- MT("indent_semicolonless_if_with_statement",- "[keyword function] [def foo]() {",- " [keyword if] ([variable x])",- " [variable foo]()",- " [variable bar]()",- "}")-- MT("multilinestring",- "[keyword var] [def x] [operator =] [string 'foo\\]",- "[string bar'];");-- MT("scary_regexp",- "[string-2 /foo[[/]]bar/];");-- MT("indent_strange_array",- "[keyword var] [def x] [operator =] [[",- " [number 1],,",- " [number 2],",- "]];",- "[number 10];");-- MT("param_default",- "[keyword function] [def foo]([def x] [operator =] [string-2 `foo${][number 10][string-2 }bar`]) {",- " [keyword return] [variable-2 x];",- "}");-- MT(- "param_destructuring",- "[keyword function] [def foo]([def x] [operator =] [string-2 `foo${][number 10][string-2 }bar`]) {",- " [keyword return] [variable-2 x];",- "}");-- MT("new_target",- "[keyword function] [def F]([def target]) {",- " [keyword if] ([variable-2 target] [operator &&] [keyword new].[keyword target].[property name]) {",- " [keyword return] [keyword new]",- " .[keyword target];",- " }",- "}");-- MT("async",- "[keyword async] [keyword function] [def foo]([def args]) { [keyword return] [atom true]; }");-- MT("async_assignment",- "[keyword const] [def foo] [operator =] [keyword async] [keyword function] ([def args]) { [keyword return] [atom true]; };");-- MT("async_object",- "[keyword let] [def obj] [operator =] { [property async]: [atom false] };");-- // async be highlighet as keyword and foo as def, but it requires potentially expensive look-ahead. See #4173- MT("async_object_function",- "[keyword let] [def obj] [operator =] { [property async] [property foo]([def args]) { [keyword return] [atom true]; } };");-- MT("async_object_properties",- "[keyword let] [def obj] [operator =] {",- " [property prop1]: [keyword async] [keyword function] ([def args]) { [keyword return] [atom true]; },",- " [property prop2]: [keyword async] [keyword function] ([def args]) { [keyword return] [atom true]; },",- " [property prop3]: [keyword async] [keyword function] [def prop3]([def args]) { [keyword return] [atom true]; },",- "};");-- MT("async_arrow",- "[keyword const] [def foo] [operator =] [keyword async] ([def args]) [operator =>] { [keyword return] [atom true]; };");-- MT("async_jquery",- "[variable $].[property ajax]({",- " [property url]: [variable url],",- " [property async]: [atom true],",- " [property method]: [string 'GET']",- "});");-- MT("async_variable",- "[keyword const] [def async] [operator =] {[property a]: [number 1]};",- "[keyword const] [def foo] [operator =] [string-2 `bar ${][variable async].[property a][string-2 }`];")-- MT("bigint", "[number 1n] [operator +] [number 0x1afn] [operator +] [number 0o064n] [operator +] [number 0b100n];")-- MT("async_comment",- "[keyword async] [comment /**/] [keyword function] [def foo]([def args]) { [keyword return] [atom true]; }");-- MT("indent_switch",- "[keyword switch] ([variable x]) {",- " [keyword default]:",- " [keyword return] [number 2]",- "}")-- MT("regexp_corner_case",- "[operator +]{} [operator /] [atom undefined];",- "[[[meta ...][string-2 /\\//] ]];",- "[keyword void] [string-2 /\\//];",- "[keyword do] [string-2 /\\//]; [keyword while] ([number 0]);",- "[keyword if] ([number 0]) {} [keyword else] [string-2 /\\//];",- "[string-2 `${][variable async][operator ++][string-2 }//`];",- "[string-2 `${]{} [operator /] [string-2 /\\//}`];")-- MT("return_eol",- "[keyword return]",- "{} [string-2 /5/]")-- MT("numeric separator",- "[number 123_456];",- "[number 0xdead_c0de];",- "[number 0o123_456];",- "[number 0b1101_1101];",- "[number .123_456e0_1];",- "[number 1E+123_456];",- "[number 12_34_56n];")-- MT("underscore property",- "[variable something].[property _property];",- "[variable something].[property _123];",- "[variable something].[property _for];",- "[variable _for];",- "[variable _123];")-- var ts_mode = CodeMirror.getMode({indentUnit: 2}, "application/typescript")- function TS(name) {- test.mode(name, ts_mode, Array.prototype.slice.call(arguments, 1))- }-- TS("typescript_extend_type",- "[keyword class] [def Foo] [keyword extends] [type Some][operator <][type Type][operator >] {}")-- TS("typescript_arrow_type",- "[keyword let] [def x]: ([variable arg]: [type Type]) [operator =>] [type ReturnType]")-- TS("typescript_class",- "[keyword class] [def Foo] {",- " [keyword public] [keyword static] [property main]() {}",- " [keyword private] [property _foo]: [type string];",- "}")-- TS("typescript_literal_types",- "[keyword import] [keyword *] [keyword as] [def Sequelize] [keyword from] [string 'sequelize'];",- "[keyword interface] [def MyAttributes] {",- " [property truthy]: [string 'true'] [operator |] [number 1] [operator |] [atom true];",- " [property falsy]: [string 'false'] [operator |] [number 0] [operator |] [atom false];",- "}",- "[keyword interface] [def MyInstance] [keyword extends] [type Sequelize].[type Instance] [operator <] [type MyAttributes] [operator >] {",- " [property rawAttributes]: [type MyAttributes];",- " [property truthy]: [string 'true'] [operator |] [number 1] [operator |] [atom true];",- " [property falsy]: [string 'false'] [operator |] [number 0] [operator |] [atom false];",- "}")-- TS("typescript_extend_operators",- "[keyword export] [keyword interface] [def UserModel] [keyword extends]",- " [type Sequelize].[type Model] [operator <] [type UserInstance], [type UserAttributes] [operator >] {",- " [property findById]: (",- " [variable userId]: [type number]",- " ) [operator =>] [type Promise] [operator <] [type Array] [operator <] { [property id], [property name] } [operator >>];",- " [property updateById]: (",- " [variable userId]: [type number],",- " [variable isActive]: [type boolean]",- " ) [operator =>] [type Promise] [operator <] [type AccountHolderNotificationPreferenceInstance] [operator >];",- " }")-- TS("typescript_interface_with_const",- "[keyword const] [def hello]: {",- " [property prop1][operator ?]: [type string];",- " [property prop2][operator ?]: [type string];",- "} [operator =] {};")-- TS("typescript_double_extend",- "[keyword export] [keyword interface] [def UserAttributes] {",- " [property id][operator ?]: [type number];",- " [property createdAt][operator ?]: [type Date];",- "}",- "[keyword export] [keyword interface] [def UserInstance] [keyword extends] [type Sequelize].[type Instance][operator <][type UserAttributes][operator >], [type UserAttributes] {",- " [property id]: [type number];",- " [property createdAt]: [type Date];",- "}");-- TS("typescript_index_signature",- "[keyword interface] [def A] {",- " [[ [variable prop]: [type string] ]]: [type any];",- " [property prop1]: [type any];",- "}");-- TS("typescript_generic_class",- "[keyword class] [def Foo][operator <][type T][operator >] {",- " [property bar]() {}",- " [property foo](): [type Foo] {}",- "}")-- TS("typescript_type_when_keyword",- "[keyword export] [keyword type] [type AB] [operator =] [type A] [operator |] [type B];",- "[keyword type] [type Flags] [operator =] {",- " [property p1]: [type string];",- " [property p2]: [type boolean];",- "};")-- TS("typescript_type_when_not_keyword",- "[keyword class] [def HasType] {",- " [property type]: [type string];",- " [property constructor]([def type]: [type string]) {",- " [keyword this].[property type] [operator =] [variable-2 type];",- " }",- " [property setType]({ [def type] }: { [property type]: [type string]; }) {",- " [keyword this].[property type] [operator =] [variable-2 type];",- " }",- "}")-- TS("typescript_function_generics",- "[keyword function] [def a]() {}",- "[keyword function] [def b][operator <][type IA] [keyword extends] [type object], [type IB] [keyword extends] [type object][operator >]() {}",- "[keyword function] [def c]() {}")-- TS("typescript_complex_return_type",- "[keyword function] [def A]() {",- " [keyword return] [keyword this].[property property];",- "}",- "[keyword function] [def B](): [type Promise][operator <]{ [[ [variable key]: [type string] ]]: [type any] } [operator |] [atom null][operator >] {",- " [keyword return] [keyword this].[property property];",- "}")-- TS("typescript_complex_type_casting",- "[keyword const] [def giftpay] [operator =] [variable config].[property get]([string 'giftpay']) [keyword as] { [[ [variable platformUuid]: [type string] ]]: { [property version]: [type number]; [property apiCode]: [type string]; } };")-- TS("typescript_keyof",- "[keyword function] [def x][operator <][type T] [keyword extends] [keyword keyof] [type X][operator >]([def a]: [type T]) {",- " [keyword return]")-- TS("typescript_new_typeargs",- "[keyword let] [def x] [operator =] [keyword new] [variable Map][operator <][type string], [type Date][operator >]([string-2 `foo${][variable bar][string-2 }`])")-- TS("modifiers",- "[keyword class] [def Foo] {",- " [keyword public] [keyword abstract] [property bar]() {}",- " [property constructor]([keyword readonly] [keyword private] [def x]) {}",- "}")-- TS("arrow prop",- "({[property a]: [def p] [operator =>] [variable-2 p]})")-- TS("generic in function call",- "[keyword this].[property a][operator <][type Type][operator >]([variable foo]);",- "[keyword this].[property a][operator <][variable Type][operator >][variable foo];")-- TS("type guard",- "[keyword class] [def Appler] {",- " [keyword static] [property assertApple]([def fruit]: [type Fruit]): [variable-2 fruit] [keyword is] [type Apple] {",- " [keyword if] ([operator !]([variable-2 fruit] [keyword instanceof] [variable Apple]))",- " [keyword throw] [keyword new] [variable Error]();",- " }",- "}")-- TS("type as variable",- "[variable type] [operator =] [variable x] [keyword as] [type Bar];");-- TS("enum body",- "[keyword export] [keyword const] [keyword enum] [def CodeInspectionResultType] {",- " [def ERROR] [operator =] [string 'problem_type_error'],",- " [def WARNING] [operator =] [string 'problem_type_warning'],",- " [def META],",- "}")-- TS("parenthesized type",- "[keyword class] [def Foo] {",- " [property x] [operator =] [keyword new] [variable A][operator <][type B], [type string][operator |](() [operator =>] [type void])[operator >]();",- " [keyword private] [property bar]();",- "}")-- TS("abstract class",- "[keyword export] [keyword abstract] [keyword class] [def Foo] {}")-- TS("interface without semicolons",- "[keyword interface] [def Foo] {",- " [property greet]([def x]: [type int]): [type blah]",- " [property bar]: [type void]",- "}")-- var jsonld_mode = CodeMirror.getMode(- {indentUnit: 2},- {name: "javascript", jsonld: true}- );- function LD(name) {- test.mode(name, jsonld_mode, Array.prototype.slice.call(arguments, 1));- }-- LD("json_ld_keywords",- '{',- ' [meta "@context"]: {',- ' [meta "@base"]: [string "http://example.com"],',- ' [meta "@vocab"]: [string "http://xmlns.com/foaf/0.1/"],',- ' [property "likesFlavor"]: {',- ' [meta "@container"]: [meta "@list"]',- ' [meta "@reverse"]: [string "@beFavoriteOf"]',- ' },',- ' [property "nick"]: { [meta "@container"]: [meta "@set"] },',- ' [property "nick"]: { [meta "@container"]: [meta "@index"] }',- ' },',- ' [meta "@graph"]: [[ {',- ' [meta "@id"]: [string "http://dbpedia.org/resource/John_Lennon"],',- ' [property "name"]: [string "John Lennon"],',- ' [property "modified"]: {',- ' [meta "@value"]: [string "2010-05-29T14:17:39+02:00"],',- ' [meta "@type"]: [string "http://www.w3.org/2001/XMLSchema#dateTime"]',- ' }',- ' } ]]',- '}');-- LD("json_ld_fake",- '{',- ' [property "@fake"]: [string "@fake"],',- ' [property "@contextual"]: [string "@identifier"],',- ' [property "[email protected]"]: [string "@graphical"],',- ' [property "@ID"]: [string "@@ID"]',- '}');-})();diff --git a/libraries/codemirror/mode/javascript/typescript.html b/libraries/codemirror/mode/javascript/typescript.htmlindex 3b217a44f9..7da84d2add 100644--- a/libraries/codemirror/mode/javascript/typescript.html+++ b/libraries/codemirror/mode/javascript/typescript.html@@ -10,7 +10,7 @@<script src="javascript.js"></script><style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style><div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>+ <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png" alt=""></a><ul><li><a href="../../index.html">Home</a>diff --git a/libraries/codemirror/mode/jinja2/index.html b/libraries/codemirror/mode/jinja2/index.htmldeleted file mode 100644index a942549dac..0000000000--- a/libraries/codemirror/mode/jinja2/index.html+++ /dev/null@@ -1,54 +0,0 @@-<!doctype html>--<title>CodeMirror: Jinja2 mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="jinja2.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Jinja2</a>- </ul>-</div>--<article>-<h2>Jinja2 mode</h2>-<form><textarea id="code" name="code">-{# this is a comment #}-{%- for item in li -%}- <li>{{ item.label }}</li>-{% endfor -%}-{{ item.sand == true and item.keyword == false ? 1 : 0 }}-{{ app.get(55, 1.2, true) }}-{% if app.get('_route') == ('_home') %}home{% endif %}-{% if app.session.flashbag.has('message') %}- {% for message in app.session.flashbag.get('message') %}- {{ message.content }}- {% endfor %}-{% endif %}-{{ path('_home', {'section': app.request.get('section')}) }}-{{ path('_home', {- 'section': app.request.get('section'),- 'boolean': true,- 'number': 55.33- })-}}-{% include ('test.incl.html.twig') %}-</textarea></form>- <script>- var editor =- CodeMirror.fromTextArea(document.getElementById("code"), {mode:- {name: "jinja2", htmlMode: true}});- </script>- </article>diff --git a/libraries/codemirror/mode/jsx/index.html b/libraries/codemirror/mode/jsx/index.htmldeleted file mode 100644index 4df632e1f7..0000000000--- a/libraries/codemirror/mode/jsx/index.html+++ /dev/null@@ -1,89 +0,0 @@-<!doctype html>--<title>CodeMirror: JSX mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../javascript/javascript.js"></script>-<script src="../xml/xml.js"></script>-<script src="jsx.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">JSX</a>- </ul>-</div>--<article>-<h2>JSX mode</h2>--<div><textarea id="code" name="code">// Code snippets from http://facebook.github.io/react/docs/jsx-in-depth.html--// Rendering HTML tags-var myDivElement = <div className="foo" />;-ReactDOM.render(myDivElement, document.getElementById('example'));--// Rendering React components-var MyComponent = React.createClass({/*...*/});-var myElement = <MyComponent someProperty={true} />;-ReactDOM.render(myElement, document.getElementById('example'));--// Namespaced components-var Form = MyFormComponent;--var App = (- <Form>- <Form.Row>- <Form.Label />- <Form.Input />- </Form.Row>- </Form>-);--// Attribute JavaScript expressions-var person = <Person name={window.isLoggedIn ? window.name : ''} />;--// Boolean attributes-<input type="button" disabled />;-<input type="button" disabled={true} />;--// Child JavaScript expressions-var content = <Container>{window.isLoggedIn ? <Nav /> : <Login />}</Container>;--// Comments-var content = (- <Nav>- {/* child comment, put {} around */}- <Person- /* multi- line- comment */- name={window.isLoggedIn ? window.name : ''} // end of line comment- />- </Nav>-);-</textarea></div>--<script>-var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- mode: "jsx"-})-</script>--<p>JSX Mode for <a href="http://facebook.github.io/react">React</a>'s-JavaScript syntax extension.</p>--<p><strong>MIME types defined:</strong> <code>text/jsx</code>, <code>text/typescript-jsx</code>.</p>--</article>diff --git a/libraries/codemirror/mode/jsx/test.js b/libraries/codemirror/mode/jsx/test.jsdeleted file mode 100644index 5ecd5a8b01..0000000000--- a/libraries/codemirror/mode/jsx/test.js+++ /dev/null@@ -1,91 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({indentUnit: 2}, "jsx")- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)) }-- MT("selfclose",- "[keyword var] [def x] [operator =] [bracket&tag <] [tag foo] [bracket&tag />] [operator +] [number 1];")-- MT("openclose",- "([bracket&tag <][tag foo][bracket&tag >]hello [atom &][bracket&tag </][tag foo][bracket&tag >][operator ++])")-- MT("openclosefragment",- "([bracket&tag <><][tag foo][bracket&tag >]hello [atom &][bracket&tag </][tag foo][bracket&tag ></>][operator ++])")-- MT("attr",- "([bracket&tag <][tag foo] [attribute abc]=[string 'value'][bracket&tag >]hello [atom &][bracket&tag </][tag foo][bracket&tag >][operator ++])")-- MT("braced_attr",- "([bracket&tag <][tag foo] [attribute abc]={[number 10]}[bracket&tag >]hello [atom &][bracket&tag </][tag foo][bracket&tag >][operator ++])")-- MT("braced_text",- "([bracket&tag <][tag foo][bracket&tag >]hello {[number 10]} [atom &][bracket&tag </][tag foo][bracket&tag >][operator ++])")-- MT("nested_tag",- "([bracket&tag <][tag foo][bracket&tag ><][tag bar][bracket&tag ></][tag bar][bracket&tag ></][tag foo][bracket&tag >][operator ++])")-- MT("nested_jsx",- "[keyword return] (",- " [bracket&tag <][tag foo][bracket&tag >]",- " say {[number 1] [operator +] [bracket&tag <][tag bar] [attribute attr]={[number 10]}[bracket&tag />]}!",- " [bracket&tag </][tag foo][bracket&tag >][operator ++]",- ")")-- MT("preserve_js_context",- "[variable x] [operator =] [string-2 `quasi${][bracket&tag <][tag foo][bracket&tag />][string-2 }quoted`]")-- MT("string_interpolation",- "[variable x] [operator =] [string-2 `quasi<code>${] [number 10] [string-2 }</code>`]")-- MT("line_comment",- "([bracket&tag <][tag foo] [comment // hello]",- " [bracket&tag ></][tag foo][bracket&tag >][operator ++])")-- MT("line_comment_not_in_tag",- "([bracket&tag <][tag foo][bracket&tag >] // hello",- " [bracket&tag </][tag foo][bracket&tag >][operator ++])")-- MT("block_comment",- "([bracket&tag <][tag foo] [comment /* hello]",- "[comment line 2]",- "[comment line 3 */] [bracket&tag ></][tag foo][bracket&tag >][operator ++])")-- MT("block_comment_not_in_tag",- "([bracket&tag <][tag foo][bracket&tag >]/* hello",- " line 2",- " line 3 */ [bracket&tag </][tag foo][bracket&tag >][operator ++])")-- MT("missing_attr",- "([bracket&tag <][tag foo] [attribute selected][bracket&tag />][operator ++])")-- MT("indent_js",- "([bracket&tag <][tag foo][bracket&tag >]",- " [bracket&tag <][tag bar] [attribute baz]={[keyword function]() {",- " [keyword return] [number 10]",- " }}[bracket&tag />]",- " [bracket&tag </][tag foo][bracket&tag >])")-- MT("spread",- "([bracket&tag <][tag foo] [attribute bar]={[meta ...][variable baz] [operator /][number 2]}[bracket&tag />])")-- MT("tag_attribute",- "([bracket&tag <][tag foo] [attribute bar]=[bracket&tag <][tag foo][bracket&tag />/>][operator ++])")-- var ts_mode = CodeMirror.getMode({indentUnit: 2}, "text/typescript-jsx")- function TS(name) { test.mode(name, ts_mode, Array.prototype.slice.call(arguments, 1)) }-- TS("tsx_react_integration",- "[keyword interface] [def Props] {",- " [property foo]: [type string];",- "}",- "[keyword class] [def MyComponent] [keyword extends] [type React].[type Component] [operator <] [type Props], [type any] [operator >] {",- " [property render]() {",- " [keyword return] [bracket&tag <][tag span][bracket&tag >]{[keyword this].[property props].[property foo]}[bracket&tag </][tag span][bracket&tag >]",- " }",- "}",- "[bracket&tag <][tag MyComponent] [attribute foo]=[string \"bar\"] [bracket&tag />]; [comment //ok]",- "[bracket&tag <][tag MyComponent] [attribute foo]={[number 0]} [bracket&tag />]; [comment //error]")--})()diff --git a/libraries/codemirror/mode/julia/index.html b/libraries/codemirror/mode/julia/index.htmldeleted file mode 100644index 0261c921f8..0000000000--- a/libraries/codemirror/mode/julia/index.html+++ /dev/null@@ -1,196 +0,0 @@-<!doctype html>--<title>CodeMirror: Julia mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="julia.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Julia</a>- </ul>-</div>--<article>-<h2>Julia mode</h2>-- <div><textarea id="code" name="code">-#numbers-1234-1234im-.234-.234im-2.23im-2.3f3-23e2-0x234--#strings-'a'-"asdf"-r"regex"-b"bytestring"--"""-multiline string-"""--#identifiers-a-as123-function_name!--#unicode identifiers-# a = x\ddot-a⃗ = ẍ-# a = v\dot-a⃗ = v̇-#F\vec = m \cdotp a\vec-F⃗ = m·a⃗--#literal identifier multiples-3x-4[1, 2, 3]--#dicts and indexing-x=[1, 2, 3]-x[end-1]-x={"julia"=>"language of technical computing"}---#exception handling-try- f()-catch- @printf "Error"-finally- g()-end--#types-immutable Color{T<:Number}- r::T- g::T- b::T-end--#functions-function change!(x::Vector{Float64})- for i = 1:length(x)- x[i] *= 2- end-end--#function invocation-f('b', (2, 3)...)--#operators-|=-&=-^=-\--%=-*=-+=--=-<=->=-!=-==-%-*-+---<->-!-=-|-&-^-\-?-~-:-$-<:-.<-.>-<<-<<=->>->>>>->>=->>>=-<<=-<<<=-.<=-.>=-.==-->-//-in-...-//-:=-.//=-.*=-./=-.^=-.%=-.+=-.-=-\=-\\=-||-===-&&-|=-.|=-<:->:-|>-<|-::-x ? y : z--#macros-@spawnat 2 1+1-@eval(:x)--#keywords and operators-if else elseif while for- begin let end do-try catch finally return break continue-global local const-export import importall using-function macro module baremodule-type immutable quote-true false enumerate--- </textarea></div>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: {name: "julia",- },- lineNumbers: true,- indentUnit: 4,- matchBrackets: true- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-julia</code>.</p>-</article>diff --git a/libraries/codemirror/mode/livescript/index.html b/libraries/codemirror/mode/livescript/index.htmldeleted file mode 100644index 297b1c7bc2..0000000000--- a/libraries/codemirror/mode/livescript/index.html+++ /dev/null@@ -1,459 +0,0 @@-<!doctype html>--<title>CodeMirror: LiveScript mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<link rel="stylesheet" href="../../theme/solarized.css">-<script src="../../lib/codemirror.js"></script>-<script src="livescript.js"></script>-<style>.CodeMirror {font-size: 80%;border-top: 1px solid silver; border-bottom: 1px solid silver;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">LiveScript</a>- </ul>-</div>--<article>-<h2>LiveScript mode</h2>-<form><textarea id="code" name="code">-# LiveScript mode for CodeMirror-# The following script, prelude.ls, is used to-# demonstrate LiveScript mode for CodeMirror.-# https://github.com/gkz/prelude-ls--export objToFunc = objToFunc = (obj) ->- (key) -> obj[key]--export each = (f, xs) -->- if typeof! xs is \Object- for , x of xs then f x- else- for x in xs then f x- xs--export map = (f, xs) -->- f = objToFunc f if typeof! f isnt \Function- type = typeof! xs- if type is \Object- {[key, f x] for key, x of xs}- else- result = [f x for x in xs]- if type is \String then result * '' else result--export filter = (f, xs) -->- f = objToFunc f if typeof! f isnt \Function- type = typeof! xs- if type is \Object- {[key, x] for key, x of xs when f x}- else- result = [x for x in xs when f x]- if type is \String then result * '' else result--export reject = (f, xs) -->- f = objToFunc f if typeof! f isnt \Function- type = typeof! xs- if type is \Object- {[key, x] for key, x of xs when not f x}- else- result = [x for x in xs when not f x]- if type is \String then result * '' else result--export partition = (f, xs) -->- f = objToFunc f if typeof! f isnt \Function- type = typeof! xs- if type is \Object- passed = {}- failed = {}- for key, x of xs- (if f x then passed else failed)[key] = x- else- passed = []- failed = []- for x in xs- (if f x then passed else failed)push x- if type is \String- passed *= ''- failed *= ''- [passed, failed]--export find = (f, xs) -->- f = objToFunc f if typeof! f isnt \Function- if typeof! xs is \Object- for , x of xs when f x then return x- else- for x in xs when f x then return x- void--export head = export first = (xs) ->- return void if not xs.length- xs.0--export tail = (xs) ->- return void if not xs.length- xs.slice 1--export last = (xs) ->- return void if not xs.length- xs[*-1]--export initial = (xs) ->- return void if not xs.length- xs.slice 0 xs.length - 1--export empty = (xs) ->- if typeof! xs is \Object- for x of xs then return false- return yes- not xs.length--export values = (obj) ->- [x for , x of obj]--export keys = (obj) ->- [x for x of obj]--export len = (xs) ->- xs = values xs if typeof! xs is \Object- xs.length--export cons = (x, xs) -->- if typeof! xs is \String then x + xs else [x] ++ xs--export append = (xs, ys) -->- if typeof! ys is \String then xs + ys else xs ++ ys--export join = (sep, xs) -->- xs = values xs if typeof! xs is \Object- xs.join sep--export reverse = (xs) ->- if typeof! xs is \String- then (xs / '')reverse! * ''- else xs.slice!reverse!--export fold = export foldl = (f, memo, xs) -->- if typeof! xs is \Object- for , x of xs then memo = f memo, x- else- for x in xs then memo = f memo, x- memo--export fold1 = export foldl1 = (f, xs) --> fold f, xs.0, xs.slice 1--export foldr = (f, memo, xs) --> fold f, memo, xs.slice!reverse!--export foldr1 = (f, xs) -->- xs.=slice!reverse!- fold f, xs.0, xs.slice 1--export unfoldr = export unfold = (f, b) -->- if (f b)?- [that.0] ++ unfoldr f, that.1- else- []--export andList = (xs) ->- for x in xs when not x- return false- true--export orList = (xs) ->- for x in xs when x- return true- false--export any = (f, xs) -->- f = objToFunc f if typeof! f isnt \Function- for x in xs when f x- return yes- no--export all = (f, xs) -->- f = objToFunc f if typeof! f isnt \Function- for x in xs when not f x- return no- yes--export unique = (xs) ->- result = []- if typeof! xs is \Object- for , x of xs when x not in result then result.push x- else- for x in xs when x not in result then result.push x- if typeof! xs is \String then result * '' else result--export sort = (xs) ->- xs.concat!sort (x, y) ->- | x > y => 1- | x < y => -1- | _ => 0--export sortBy = (f, xs) -->- return [] unless xs.length- xs.concat!sort f--export compare = (f, x, y) -->- | (f x) > (f y) => 1- | (f x) < (f y) => -1- | otherwise => 0--export sum = (xs) ->- result = 0- if typeof! xs is \Object- for , x of xs then result += x- else- for x in xs then result += x- result--export product = (xs) ->- result = 1- if typeof! xs is \Object- for , x of xs then result *= x- else- for x in xs then result *= x- result--export mean = export average = (xs) -> (sum xs) / len xs--export concat = (xss) -> fold append, [], xss--export concatMap = (f, xs) --> fold ((memo, x) -> append memo, f x), [], xs--export listToObj = (xs) ->- {[x.0, x.1] for x in xs}--export maximum = (xs) -> fold1 (>?), xs--export minimum = (xs) -> fold1 (<?), xs--export scan = export scanl = (f, memo, xs) -->- last = memo- if typeof! xs is \Object- then [memo] ++ [last = f last, x for , x of xs]- else [memo] ++ [last = f last, x for x in xs]--export scan1 = export scanl1 = (f, xs) --> scan f, xs.0, xs.slice 1--export scanr = (f, memo, xs) -->- xs.=slice!reverse!- scan f, memo, xs .reverse!--export scanr1 = (f, xs) -->- xs.=slice!reverse!- scan f, xs.0, xs.slice 1 .reverse!--export replicate = (n, x) -->- result = []- i = 0- while i < n, ++i then result.push x- result--export take = (n, xs) -->- | n <= 0- if typeof! xs is \String then '' else []- | not xs.length => xs- | otherwise => xs.slice 0, n--export drop = (n, xs) -->- | n <= 0 => xs- | not xs.length => xs- | otherwise => xs.slice n--export splitAt = (n, xs) --> [(take n, xs), (drop n, xs)]--export takeWhile = (p, xs) -->- return xs if not xs.length- p = objToFunc p if typeof! p isnt \Function- result = []- for x in xs- break if not p x- result.push x- if typeof! xs is \String then result * '' else result--export dropWhile = (p, xs) -->- return xs if not xs.length- p = objToFunc p if typeof! p isnt \Function- i = 0- for x in xs- break if not p x- ++i- drop i, xs--export span = (p, xs) --> [(takeWhile p, xs), (dropWhile p, xs)]--export breakIt = (p, xs) --> span (not) << p, xs--export zip = (xs, ys) -->- result = []- for zs, i in [xs, ys]- for z, j in zs- result.push [] if i is 0- result[j]?push z- result--export zipWith = (f,xs, ys) -->- f = objToFunc f if typeof! f isnt \Function- if not xs.length or not ys.length- []- else- [f.apply this, zs for zs in zip.call this, xs, ys]--export zipAll = (...xss) ->- result = []- for xs, i in xss- for x, j in xs- result.push [] if i is 0- result[j]?push x- result--export zipAllWith = (f, ...xss) ->- f = objToFunc f if typeof! f isnt \Function- if not xss.0.length or not xss.1.length- []- else- [f.apply this, xs for xs in zipAll.apply this, xss]--export compose = (...funcs) ->- ->- args = arguments- for f in funcs- args = [f.apply this, args]- args.0--export curry = (f) ->- curry$ f # using util method curry$ from livescript--export id = (x) -> x--export flip = (f, x, y) --> f y, x--export fix = (f) ->- ( (g, x) -> -> f(g g) ...arguments ) do- (g, x) -> -> f(g g) ...arguments--export lines = (str) ->- return [] if not str.length- str / \\n--export unlines = (strs) -> strs * \\n--export words = (str) ->- return [] if not str.length- str / /[ ]+/--export unwords = (strs) -> strs * ' '--export max = (>?)--export min = (<?)--export negate = (x) -> -x--export abs = Math.abs--export signum = (x) ->- | x < 0 => -1- | x > 0 => 1- | otherwise => 0--export quot = (x, y) --> ~~(x / y)--export rem = (%)--export div = (x, y) --> Math.floor x / y--export mod = (%%)--export recip = (1 /)--export pi = Math.PI--export tau = pi * 2--export exp = Math.exp--export sqrt = Math.sqrt--# changed from log as log is a-# common function for logging things-export ln = Math.log--export pow = (^)--export sin = Math.sin--export tan = Math.tan--export cos = Math.cos--export asin = Math.asin--export acos = Math.acos--export atan = Math.atan--export atan2 = (x, y) --> Math.atan2 x, y--# sinh-# tanh-# cosh-# asinh-# atanh-# acosh--export truncate = (x) -> ~~x--export round = Math.round--export ceiling = Math.ceil--export floor = Math.floor--export isItNaN = (x) -> x isnt x--export even = (x) -> x % 2 == 0--export odd = (x) -> x % 2 != 0--export gcd = (x, y) -->- x = Math.abs x- y = Math.abs y- until y is 0- z = x % y- x = y- y = z- x--export lcm = (x, y) -->- Math.abs Math.floor (x / (gcd x, y) * y)--# meta-export installPrelude = !(target) ->- unless target.prelude?isInstalled- target <<< out$ # using out$ generated by livescript- target <<< target.prelude.isInstalled = true--export prelude = out$-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- theme: "solarized light",- lineNumbers: true- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-livescript</code>.</p>-- <p>The LiveScript mode was written by Kenneth Bentley.</p>-- </article>diff --git a/libraries/codemirror/mode/lua/index.html b/libraries/codemirror/mode/lua/index.htmldeleted file mode 100644index 59f4df3e32..0000000000--- a/libraries/codemirror/mode/lua/index.html+++ /dev/null@@ -1,85 +0,0 @@-<!doctype html>--<title>CodeMirror: Lua mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<link rel="stylesheet" href="../../theme/neat.css">-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="../../lib/codemirror.js"></script>-<script src="lua.js"></script>-<style>.CodeMirror {border: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Lua</a>- </ul>-</div>--<article>-<h2>Lua mode</h2>-<form><textarea id="code" name="code">---[[-example useless code to show lua syntax highlighting-this is multiline comment-]]--function blahblahblah(x)-- local table = {- "asd" = 123,- "x" = 0.34,- }- if x ~= 3 then- print( x )- elseif x == "string"- my_custom_function( 0x34 )- else- unknown_function( "some string" )- end-- --single line comment--end--function blablabla3()-- for k,v in ipairs( table ) do- --abcde..- y=[=[- x=[[- x is a multi line string- ]]- but its definition is iside a highest level string!- ]=]- print(" \"\" ")-- s = math.sin( x )- end--end-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- matchBrackets: true,- theme: "neat"- });- </script>-- <p>Loosely based on Franciszek- Wawrzak's <a href="https://codemirror.net/1/contrib/lua">CodeMirror- 1 mode</a>. One configuration parameter is- supported, <code>specials</code>, to which you can provide an- array of strings to have those identifiers highlighted with- the <code>lua-special</code> style.</p>- <p><strong>MIME types defined:</strong> <code>text/x-lua</code>.</p>-- </article>diff --git a/libraries/codemirror/mode/markdown/index.html b/libraries/codemirror/mode/markdown/index.htmldeleted file mode 100644index 37203ef398..0000000000--- a/libraries/codemirror/mode/markdown/index.html+++ /dev/null@@ -1,411 +0,0 @@-<!doctype html>--<title>CodeMirror: Markdown mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/continuelist.js"></script>-<script src="../xml/xml.js"></script>-<script src="markdown.js"></script>-<style>- .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}- .cm-s-default .cm-trailing-space-a:before,- .cm-s-default .cm-trailing-space-b:before {position: absolute; content: "\00B7"; color: #777;}- .cm-s-default .cm-trailing-space-new-line:before {position: absolute; content: "\21B5"; color: #777;}- </style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Markdown</a>- </ul>-</div>--<article>-<h2>Markdown mode</h2>-<form><textarea id="code" name="code">-Markdown: Basics-================--<ul id="ProjectSubmenu">- <li><a href="/projects/markdown/" title="Markdown Project Page">Main</a></li>- <li><a class="selected" title="Markdown Basics">Basics</a></li>- <li><a href="/projects/markdown/syntax" title="Markdown Syntax Documentation">Syntax</a></li>- <li><a href="/projects/markdown/license" title="Pricing and License Information">License</a></li>- <li><a href="/projects/markdown/dingus" title="Online Markdown Web Form">Dingus</a></li>-</ul>---Getting the Gist of Markdown's Formatting Syntax---------------------------------------------------This page offers a brief overview of what it's like to use Markdown.-The [syntax page] [s] provides complete, detailed documentation for-every feature, but Markdown should be very easy to pick up simply by-looking at a few examples of it in action. The examples on this page-are written in a before/after style, showing example syntax and the-HTML output produced by Markdown.--It's also helpful to simply try Markdown out; the [Dingus] [d] is a-web application that allows you type your own Markdown-formatted text-and translate it to XHTML.--**Note:** This document is itself written using Markdown; you-can [see the source for it by adding '.text' to the URL] [src].-- [s]: /projects/markdown/syntax "Markdown Syntax"- [d]: /projects/markdown/dingus "Markdown Dingus"- [src]: /projects/markdown/basics.text---## Paragraphs, Headers, Blockquotes ##--A paragraph is simply one or more consecutive lines of text, separated-by one or more blank lines. (A blank line is any line that looks like-a blank line -- a line containing nothing but spaces or tabs is-considered blank.) Normal paragraphs should not be indented with-spaces or tabs.--Markdown offers two styles of headers: *Setext* and *atx*.-Setext-style headers for `<h1>` and `<h2>` are created by-"underlining" with equal signs (`=`) and hyphens (`-`), respectively.-To create an atx-style header, you put 1-6 hash marks (`#`) at the-beginning of the line -- the number of hashes equals the resulting-HTML header level.--Blockquotes are indicated using email-style '`>`' angle brackets.--Markdown:-- A First Level Header- ====================-- A Second Level Header- ----------------------- Now is the time for all good men to come to- the aid of their country. This is just a- regular paragraph.-- The quick brown fox jumped over the lazy- dog's back.-- ### Header 3-- > This is a blockquote.- >- > This is the second paragraph in the blockquote.- >- > ## This is an H2 in a blockquote---Output:-- <h1>A First Level Header</h1>-- <h2>A Second Level Header</h2>-- <p>Now is the time for all good men to come to- the aid of their country. This is just a- regular paragraph.</p>-- <p>The quick brown fox jumped over the lazy- dog's back.</p>-- <h3>Header 3</h3>-- <blockquote>- <p>This is a blockquote.</p>-- <p>This is the second paragraph in the blockquote.</p>-- <h2>This is an H2 in a blockquote</h2>- </blockquote>----### Phrase Emphasis ###--Markdown uses asterisks and underscores to indicate spans of emphasis.--Markdown:-- Some of these words *are emphasized*.- Some of these words _are emphasized also_.-- Use two asterisks for **strong emphasis**.- Or, if you prefer, __use two underscores instead__.--Output:-- <p>Some of these words <em>are emphasized</em>.- Some of these words <em>are emphasized also</em>.</p>-- <p>Use two asterisks for <strong>strong emphasis</strong>.- Or, if you prefer, <strong>use two underscores instead</strong>.</p>----## Lists ##--Unordered (bulleted) lists use asterisks, pluses, and hyphens (`*`,-`+`, and `-`) as list markers. These three markers are-interchangable; this:-- * Candy.- * Gum.- * Booze.--this:-- + Candy.- + Gum.- + Booze.--and this:-- - Candy.- - Gum.- - Booze.--all produce the same output:-- <ul>- <li>Candy.</li>- <li>Gum.</li>- <li>Booze.</li>- </ul>--Ordered (numbered) lists use regular numbers, followed by periods, as-list markers:-- 1. Red- 2. Green- 3. Blue--Output:-- <ol>- <li>Red</li>- <li>Green</li>- <li>Blue</li>- </ol>--If you put blank lines between items, you'll get `<p>` tags for the-list item text. You can create multi-paragraph list items by indenting-the paragraphs by 4 spaces or 1 tab:-- * A list item.-- With multiple paragraphs.-- * Another item in the list.--Output:-- <ul>- <li><p>A list item.</p>- <p>With multiple paragraphs.</p></li>- <li><p>Another item in the list.</p></li>- </ul>----### Links ###--Markdown supports two styles for creating links: *inline* and-*reference*. With both styles, you use square brackets to delimit the-text you want to turn into a link.--Inline-style links use parentheses immediately after the link text.-For example:-- This is an [example link](http://example.com/).--Output:-- <p>This is an <a href="http://example.com/">- example link</a>.</p>--Optionally, you may include a title attribute in the parentheses:-- This is an [example link](http://example.com/ "With a Title").--Output:-- <p>This is an <a href="http://example.com/" title="With a Title">- example link</a>.</p>--Reference-style links allow you to refer to your links by names, which-you define elsewhere in your document:-- I get 10 times more traffic from [Google][1] than from- [Yahoo][2] or [MSN][3].-- [1]: http://google.com/ "Google"- [2]: http://search.yahoo.com/ "Yahoo Search"- [3]: http://search.msn.com/ "MSN Search"--Output:-- <p>I get 10 times more traffic from <a href="http://google.com/"- title="Google">Google</a> than from <a href="http://search.yahoo.com/"- title="Yahoo Search">Yahoo</a> or <a href="http://search.msn.com/"- title="MSN Search">MSN</a>.</p>--The title attribute is optional. Link names may contain letters,-numbers and spaces, but are *not* case sensitive:-- I start my morning with a cup of coffee and- [The New York Times][NY Times].-- [ny times]: http://www.nytimes.com/--Output:-- <p>I start my morning with a cup of coffee and- <a href="http://www.nytimes.com/">The New York Times</a>.</p>---### Images ###--Image syntax is very much like link syntax.--Inline (titles are optional):-- --Reference-style:-- ![alt text][id]-- [id]: /path/to/img.jpg "Title"--Both of the above examples produce the same output:-- <img src="/path/to/img.jpg" alt="alt text" title="Title" />----### Code ###--In a regular paragraph, you can create code span by wrapping text in-backtick quotes. Any ampersands (`&`) and angle brackets (`<` or-`>`) will automatically be translated into HTML entities. This makes-it easy to use Markdown to write about HTML example code:-- I strongly recommend against using any `<blink>` tags.-- I wish SmartyPants used named entities like `&mdash;`- instead of decimal-encoded entites like `&#8212;`.--Output:-- <p>I strongly recommend against using any- <code>&lt;blink&gt;</code> tags.</p>-- <p>I wish SmartyPants used named entities like- <code>&amp;mdash;</code> instead of decimal-encoded- entites like <code>&amp;#8212;</code>.</p>---To specify an entire block of pre-formatted code, indent every line of-the block by 4 spaces or 1 tab. Just like with code spans, `&`, `<`,-and `>` characters will be escaped automatically.--Markdown:-- If you want your page to validate under XHTML 1.0 Strict,- you've got to put paragraph tags in your blockquotes:-- <blockquote>- <p>For example.</p>- </blockquote>--Output:-- <p>If you want your page to validate under XHTML 1.0 Strict,- you've got to put paragraph tags in your blockquotes:</p>-- <pre><code>&lt;blockquote&gt;- &lt;p&gt;For example.&lt;/p&gt;- &lt;/blockquote&gt;- </code></pre>--## Fenced code blocks (and syntax highlighting)--```javascript-for (var i = 0; i < items.length; i++) {- console.log(items[i], i); // log them-}-```--</textarea></form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: 'markdown',- lineNumbers: true,- theme: "default",- extraKeys: {"Enter": "newlineAndIndentContinueMarkdownList"}- });- </script>-- <p>If you also want support <code>strikethrough</code>, <code>emoji</code> and few other goodies, check out <a href="../gfm/index.html">Github-Flavored Markdown mode</a>.</p>-- <p>Optionally depends on other modes for properly highlighted code blocks,- and XML mode for properly highlighted inline XML blocks.</p>-- <p>Markdown mode supports these options:</p>- <ul>- <li>- <d1>- <dt><code>highlightFormatting: boolean</code></dt>- <dd>Whether to separately highlight markdown meta characterts (<code>*[]()</code>etc.) (default: <code>false</code>).</dd>- </d1>- </li>- <li>- <d1>- <dt><code>maxBlockquoteDepth: boolean</code></dt>- <dd>Maximum allowed blockquote nesting (default: <code>0</code> - infinite nesting).</dd>- </d1>- </li>- <li>- <d1>- <dt><code>xml: boolean</code></dt>- <dd>Whether to highlight inline XML (default: <code>true</code>).</dd>- </d1>- </li>- <li>- <d1>- <dt><code>fencedCodeBlockHighlighting: boolean</code></dt>- <dd>Whether to syntax-highlight fenced code blocks, if given mode is included (default: <code>true</code>).</dd>- </d1>- </li>- <li>- <d1>- <dt><code>tokenTypeOverrides: Object</code></dt>- <dd>When you want ot override default token type names (e.g. <code>{code: "code"}</code>).</dd>- </d1>- </li>- <li>- <d1>- <dt><code>allowAtxHeaderWithoutSpace: boolean</code></dt>- <dd>Allow lazy headers without whitespace between hashtag and text (default: <code>false</code>).</dd>- </d1>- </li>- </ul>-- <p><strong>MIME types defined:</strong> <code>text/x-markdown</code>.</p>-- <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#markdown_*">normal</a>, <a href="../../test/index.html#verbose,markdown_*">verbose</a>.</p>-- </article>diff --git a/libraries/codemirror/mode/markdown/test.js b/libraries/codemirror/mode/markdown/test.jsdeleted file mode 100644index aa1263e118..0000000000--- a/libraries/codemirror/mode/markdown/test.js+++ /dev/null@@ -1,1317 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var config = {tabSize: 4, indentUnit: 2}- var mode = CodeMirror.getMode(config, "markdown");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }- var modeHighlightFormatting = CodeMirror.getMode(config, {name: "markdown", highlightFormatting: true});- function FT(name) { test.mode(name, modeHighlightFormatting, Array.prototype.slice.call(arguments, 1)); }- var modeMT_noXml = CodeMirror.getMode(config, {name: "markdown", xml: false});- function MT_noXml(name) { test.mode(name, modeMT_noXml, Array.prototype.slice.call(arguments, 1)); }- var modeMT_noFencedHighlight = CodeMirror.getMode(config, {name: "markdown", fencedCodeBlockHighlighting: false});- function MT_noFencedHighlight(name) { test.mode(name, modeMT_noFencedHighlight, Array.prototype.slice.call(arguments, 1)); }- var modeAtxNoSpace = CodeMirror.getMode(config, {name: "markdown", allowAtxHeaderWithoutSpace: true});- function AtxNoSpaceTest(name) { test.mode(name, modeAtxNoSpace, Array.prototype.slice.call(arguments, 1)); }- var modeOverrideClasses = CodeMirror.getMode(config, {- name: "markdown",- strikethrough: true,- emoji: true,- tokenTypeOverrides: {- "header" : "override-header",- "code" : "override-code",- "quote" : "override-quote",- "list1" : "override-list1",- "list2" : "override-list2",- "list3" : "override-list3",- "hr" : "override-hr",- "image" : "override-image",- "imageAltText": "override-image-alt-text",- "imageMarker": "override-image-marker",- "linkInline" : "override-link-inline",- "linkEmail" : "override-link-email",- "linkText" : "override-link-text",- "linkHref" : "override-link-href",- "em" : "override-em",- "strong" : "override-strong",- "strikethrough" : "override-strikethrough",- "emoji" : "override-emoji"- }});- function TokenTypeOverrideTest(name) { test.mode(name, modeOverrideClasses, Array.prototype.slice.call(arguments, 1)); }- var modeFormattingOverride = CodeMirror.getMode(config, {- name: "markdown",- highlightFormatting: true,- tokenTypeOverrides: {- "formatting" : "override-formatting"- }});- function FormatTokenTypeOverrideTest(name) { test.mode(name, modeFormattingOverride, Array.prototype.slice.call(arguments, 1)); }- var modeET = CodeMirror.getMode(config, {name: "markdown", emoji: true});- function ET(name) { test.mode(name, modeET, Array.prototype.slice.call(arguments, 1)); }--- FT("formatting_emAsterisk",- "[em&formatting&formatting-em *][em foo][em&formatting&formatting-em *]");-- FT("formatting_emUnderscore",- "[em&formatting&formatting-em _][em foo][em&formatting&formatting-em _]");-- FT("formatting_strongAsterisk",- "[strong&formatting&formatting-strong **][strong foo][strong&formatting&formatting-strong **]");-- FT("formatting_strongUnderscore",- "[strong&formatting&formatting-strong __][strong foo][strong&formatting&formatting-strong __]");-- FT("formatting_codeBackticks",- "[comment&formatting&formatting-code `][comment foo][comment&formatting&formatting-code `]");-- FT("formatting_doubleBackticks",- "[comment&formatting&formatting-code ``][comment foo ` bar][comment&formatting&formatting-code ``]");-- FT("formatting_atxHeader",- "[header&header-1&formatting&formatting-header&formatting-header-1 # ][header&header-1 foo # bar ][header&header-1&formatting&formatting-header&formatting-header-1 #]");-- FT("formatting_setextHeader",- "[header&header-1 foo]",- "[header&header-1&formatting&formatting-header&formatting-header-1 =]");-- FT("formatting_blockquote",- "[quote"e-1&formatting&formatting-quote&formatting-quote-1 > ][quote"e-1 foo]");-- FT("formatting_list",- "[variable-2&formatting&formatting-list&formatting-list-ul - ][variable-2 foo]");- FT("formatting_list",- "[variable-2&formatting&formatting-list&formatting-list-ol 1. ][variable-2 foo]");-- FT("formatting_link",- "[link&formatting&formatting-link [][link foo][link&formatting&formatting-link ]]][string&formatting&formatting-link-string&url (][string&url http://example.com/][string&formatting&formatting-link-string&url )]");-- FT("formatting_linkReference",- "[link&formatting&formatting-link [][link foo][link&formatting&formatting-link ]]][string&formatting&formatting-link-string&url [][string&url bar][string&formatting&formatting-link-string&url ]]]",- "[link&formatting&formatting-link [][link bar][link&formatting&formatting-link ]]:] [string&url http://example.com/]");-- FT("formatting_linkWeb",- "[link&formatting&formatting-link <][link http://example.com/][link&formatting&formatting-link >]");-- FT("formatting_linkEmail",- "[link&formatting&formatting-link <][link [email protected]][link&formatting&formatting-link >]");-- FT("formatting_escape",- "[formatting-escape \\*]");-- FT("formatting_image",- "[formatting&formatting-image&image&image-marker !][formatting&formatting-image&image&image-alt-text&link [[][image&image-alt-text&link alt text][formatting&formatting-image&image&image-alt-text&link ]]][formatting&formatting-link-string&string&url (][url&string http://link.to/image.jpg][formatting&formatting-link-string&string&url )]");-- FT("codeBlock",- "[comment&formatting&formatting-code-block ```css]",- "[tag foo]",- "[comment&formatting&formatting-code-block ```]");-- MT("plainText",- "foo");-- // Don't style single trailing space- MT("trailingSpace1",- "foo ");-- // Two or more trailing spaces should be styled with line break character- MT("trailingSpace2",- "foo[trailing-space-a ][trailing-space-new-line ]");-- MT("trailingSpace3",- "foo[trailing-space-a ][trailing-space-b ][trailing-space-new-line ]");-- MT("trailingSpace4",- "foo[trailing-space-a ][trailing-space-b ][trailing-space-a ][trailing-space-new-line ]");-- // Code blocks using 4 spaces (regardless of CodeMirror.tabSize value)- MT("codeBlocksUsing4Spaces",- " [comment foo]");-- // Code blocks using 4 spaces with internal indentation- MT("codeBlocksUsing4SpacesIndentation",- " [comment bar]",- " [comment hello]",- " [comment world]",- " [comment foo]",- "bar");-- // Code blocks should end even after extra indented lines- MT("codeBlocksWithTrailingIndentedLine",- " [comment foo]",- " [comment bar]",- " [comment baz]",- " ",- "hello");-- // Code blocks using 1 tab (regardless of CodeMirror.indentWithTabs value)- MT("codeBlocksUsing1Tab",- "\t[comment foo]");-- // No code blocks directly after paragraph- // http://spec.commonmark.org/0.19/#example-65- MT("noCodeBlocksAfterParagraph",- "Foo",- " Bar");-- MT("codeBlocksAfterATX",- "[header&header-1 # foo]",- " [comment code]");-- MT("codeBlocksAfterSetext",- "[header&header-2 foo]",- "[header&header-2 ---]",- " [comment code]");-- MT("codeBlocksAfterFencedCode",- "[comment ```]",- "[comment foo]",- "[comment ```]",- " [comment code]");-- // Inline code using backticks- MT("inlineCodeUsingBackticks",- "foo [comment `bar`]");-- // Block code using single backtick (shouldn't work)- MT("blockCodeSingleBacktick",- "[comment `]",- "[comment foo]",- "[comment `]");-- // Unclosed backticks- // Instead of simply marking as CODE, it would be nice to have an- // incomplete flag for CODE, that is styled slightly different.- MT("unclosedBackticks",- "foo [comment `bar]");-- // Per documentation: "To include a literal backtick character within a- // code span, you can use multiple backticks as the opening and closing- // delimiters"- MT("doubleBackticks",- "[comment ``foo ` bar``]");-- // Tests based on Dingus- // http://daringfireball.net/projects/markdown/dingus- //- // Multiple backticks within an inline code block- MT("consecutiveBackticks",- "[comment `foo```bar`]");-- // Multiple backticks within an inline code block with a second code block- MT("consecutiveBackticks",- "[comment `foo```bar`] hello [comment `world`]");-- // Unclosed with several different groups of backticks- MT("unclosedBackticks",- "[comment ``foo ``` bar` hello]");-- // Closed with several different groups of backticks- MT("closedBackticks",- "[comment ``foo ``` bar` hello``] world");-- // info string cannot contain backtick, thus should result in inline code- MT("closingFencedMarksOnSameLine",- "[comment ``` code ```] foo");-- // atx headers- // http://daringfireball.net/projects/markdown/syntax#header-- MT("atxH1",- "[header&header-1 # foo]");-- MT("atxH2",- "[header&header-2 ## foo]");-- MT("atxH3",- "[header&header-3 ### foo]");-- MT("atxH4",- "[header&header-4 #### foo]");-- MT("atxH5",- "[header&header-5 ##### foo]");-- MT("atxH6",- "[header&header-6 ###### foo]");-- // http://spec.commonmark.org/0.19/#example-24- MT("noAtxH7",- "####### foo");-- // http://spec.commonmark.org/0.19/#example-25- MT("noAtxH1WithoutSpace",- "#5 bolt");-- // CommonMark requires a space after # but most parsers don't- AtxNoSpaceTest("atxNoSpaceAllowed_H1NoSpace",- "[header&header-1 #foo]");-- AtxNoSpaceTest("atxNoSpaceAllowed_H4NoSpace",- "[header&header-4 ####foo]");-- AtxNoSpaceTest("atxNoSpaceAllowed_H1Space",- "[header&header-1 # foo]");-- // Inline styles should be parsed inside headers- MT("atxH1inline",- "[header&header-1 # foo ][header&header-1&em *bar*]");-- MT("atxIndentedTooMuch",- "[header&header-1 # foo]",- " [comment # bar]");-- // disable atx inside blockquote until we implement proper blockquote inner mode- // TODO: fix to be CommonMark-compliant- MT("atxNestedInsideBlockquote",- "[quote"e-1 > # foo]");-- MT("atxAfterBlockquote",- "[quote"e-1 > foo]",- "[header&header-1 # bar]");-- // Setext headers - H1, H2- // Per documentation, "Any number of underlining =’s or -’s will work."- // http://daringfireball.net/projects/markdown/syntax#header- // Ideally, the text would be marked as `header` as well, but this is- // not really feasible at the moment. So, instead, we're testing against- // what works today, to avoid any regressions.- //- // Check if single underlining = works- MT("setextH1",- "[header&header-1 foo]",- "[header&header-1 =]");-- // Check if 3+ ='s work- MT("setextH1",- "[header&header-1 foo]",- "[header&header-1 ===]");-- // Check if single underlining - works- MT("setextH2",- "[header&header-2 foo]",- "[header&header-2 -]");-- // Check if 3+ -'s work- MT("setextH2",- "[header&header-2 foo]",- "[header&header-2 ---]");-- // http://spec.commonmark.org/0.19/#example-45- MT("setextH2AllowSpaces",- "[header&header-2 foo]",- " [header&header-2 ---- ]");-- // http://spec.commonmark.org/0.19/#example-44- MT("noSetextAfterIndentedCodeBlock",- " [comment foo]",- "[hr ---]");-- MT("setextAfterFencedCode",- "[comment ```]",- "[comment foo]",- "[comment ```]",- "[header&header-2 bar]",- "[header&header-2 ---]");-- MT("setextAferATX",- "[header&header-1 # foo]",- "[header&header-2 bar]",- "[header&header-2 ---]");-- // http://spec.commonmark.org/0.19/#example-51- MT("noSetextAfterQuote",- "[quote"e-1 > foo]",- "[hr ---]",- "",- "[quote"e-1 > foo]",- "[quote"e-1 bar]",- "[hr ---]");-- MT("noSetextAfterList",- "[variable-2 - foo]",- "[hr ---]");-- MT("noSetextAfterList_listContinuation",- "[variable-2 - foo]",- "bar",- "[hr ---]");-- MT("setextAfterList_afterIndentedCode",- "[variable-2 - foo]",- "",- " [comment bar]",- "[header&header-2 baz]",- "[header&header-2 ---]");-- MT("setextAfterList_afterFencedCodeBlocks",- "[variable-2 - foo]",- "",- " [comment ```]",- " [comment bar]",- " [comment ```]",- "[header&header-2 baz]",- "[header&header-2 ---]");-- MT("setextAfterList_afterHeader",- "[variable-2 - foo]",- " [variable-2&header&header-1 # bar]",- "[header&header-2 baz]",- "[header&header-2 ---]");-- MT("setextAfterList_afterHr",- "[variable-2 - foo]",- "",- " [hr ---]",- "[header&header-2 bar]",- "[header&header-2 ---]");-- MT("setext_nestedInlineMarkup",- "[header&header-1 foo ][em&header&header-1 *bar*]",- "[header&header-1 =]");-- MT("setext_linkDef",- "[link [[aaa]]:] [string&url http://google.com 'title']",- "[hr ---]");-- // currently, looks max one line ahead, thus won't catch valid CommonMark- // markup- MT("setext_oneLineLookahead",- "foo",- "[header&header-1 bar]",- "[header&header-1 =]");-- // ensure we don't regard space after dash as a list- MT("setext_emptyList",- "[header&header-2 foo]",- "[header&header-2 - ]",- "foo");-- // Single-line blockquote with trailing space- MT("blockquoteSpace",- "[quote"e-1 > foo]");-- // Single-line blockquote- MT("blockquoteNoSpace",- "[quote"e-1 >foo]");-- // No blank line before blockquote- MT("blockquoteNoBlankLine",- "foo",- "[quote"e-1 > bar]");-- MT("blockquoteNested",- "[quote"e-1 > foo]",- "[quote"e-1 >][quote"e-2 > foo]",- "[quote"e-1 >][quote"e-2 >][quote"e-3 > foo]");-- // ensure quote-level is inferred correctly even if indented- MT("blockquoteNestedIndented",- " [quote"e-1 > foo]",- " [quote"e-1 >][quote"e-2 > foo]",- " [quote"e-1 >][quote"e-2 >][quote"e-3 > foo]");-- // ensure quote-level is inferred correctly even if indented- MT("blockquoteIndentedTooMuch",- "foo",- " > bar");-- // Single-line blockquote followed by normal paragraph- MT("blockquoteThenParagraph",- "[quote"e-1 >foo]",- "",- "bar");-- // Multi-line blockquote (lazy mode)- MT("multiBlockquoteLazy",- "[quote"e-1 >foo]",- "[quote"e-1 bar]");-- // Multi-line blockquote followed by normal paragraph (lazy mode)- MT("multiBlockquoteLazyThenParagraph",- "[quote"e-1 >foo]",- "[quote"e-1 bar]",- "",- "hello");-- // Multi-line blockquote (non-lazy mode)- MT("multiBlockquote",- "[quote"e-1 >foo]",- "[quote"e-1 >bar]");-- // Multi-line blockquote followed by normal paragraph (non-lazy mode)- MT("multiBlockquoteThenParagraph",- "[quote"e-1 >foo]",- "[quote"e-1 >bar]",- "",- "hello");-- // disallow lists inside blockquote for now because it causes problems outside blockquote- // TODO: fix to be CommonMark-compliant- MT("listNestedInBlockquote",- "[quote"e-1 > - foo]");-- // disallow fenced blocks inside blockquote because it causes problems outside blockquote- // TODO: fix to be CommonMark-compliant- MT("fencedBlockNestedInBlockquote",- "[quote"e-1 > ```]",- "[quote"e-1 > code]",- "[quote"e-1 > ```]",- // ensure we still allow inline code- "[quote"e-1 > ][quote"e-1&comment `code`]");-- // Header with leading space after continued blockquote (#3287, negative indentation)- MT("headerAfterContinuedBlockquote",- "[quote"e-1 > foo]",- "[quote"e-1 bar]",- "",- " [header&header-1 # hello]");-- // Check list types-- MT("listAsterisk",- "foo",- "bar",- "",- "[variable-2 * foo]",- "[variable-2 * bar]");-- MT("listPlus",- "foo",- "bar",- "",- "[variable-2 + foo]",- "[variable-2 + bar]");-- MT("listDash",- "foo",- "bar",- "",- "[variable-2 - foo]",- "[variable-2 - bar]");-- MT("listNumber",- "foo",- "bar",- "",- "[variable-2 1. foo]",- "[variable-2 2. bar]");-- MT("listFromParagraph",- "foo",- "[variable-2 1. bar]",- "[variable-2 2. hello]");-- // List after hr- MT("listAfterHr",- "[hr ---]",- "[variable-2 - bar]");-- // List after header- MT("listAfterHeader",- "[header&header-1 # foo]",- "[variable-2 - bar]");-- // hr after list- MT("hrAfterList",- "[variable-2 - foo]",- "[hr -----]");-- MT("hrAfterFencedCode",- "[comment ```]",- "[comment code]",- "[comment ```]",- "[hr ---]");-- // allow hr inside lists- // (require prev line to be empty or hr, TODO: non-CommonMark-compliant)- MT("hrInsideList",- "[variable-2 - foo]",- "",- " [hr ---]",- " [hr ---]",- "",- " [comment ---]");-- MT("consecutiveHr",- "[hr ---]",- "[hr ---]",- "[hr ---]");-- // Formatting in lists (*)- MT("listAsteriskFormatting",- "[variable-2 * ][variable-2&em *foo*][variable-2 bar]",- "[variable-2 * ][variable-2&strong **foo**][variable-2 bar]",- "[variable-2 * ][variable-2&em&strong ***foo***][variable-2 bar]",- "[variable-2 * ][variable-2&comment `foo`][variable-2 bar]");-- // Formatting in lists (+)- MT("listPlusFormatting",- "[variable-2 + ][variable-2&em *foo*][variable-2 bar]",- "[variable-2 + ][variable-2&strong **foo**][variable-2 bar]",- "[variable-2 + ][variable-2&em&strong ***foo***][variable-2 bar]",- "[variable-2 + ][variable-2&comment `foo`][variable-2 bar]");-- // Formatting in lists (-)- MT("listDashFormatting",- "[variable-2 - ][variable-2&em *foo*][variable-2 bar]",- "[variable-2 - ][variable-2&strong **foo**][variable-2 bar]",- "[variable-2 - ][variable-2&em&strong ***foo***][variable-2 bar]",- "[variable-2 - ][variable-2&comment `foo`][variable-2 bar]");-- // Formatting in lists (1.)- MT("listNumberFormatting",- "[variable-2 1. ][variable-2&em *foo*][variable-2 bar]",- "[variable-2 2. ][variable-2&strong **foo**][variable-2 bar]",- "[variable-2 3. ][variable-2&em&strong ***foo***][variable-2 bar]",- "[variable-2 4. ][variable-2&comment `foo`][variable-2 bar]");-- // Paragraph lists- MT("listParagraph",- "[variable-2 * foo]",- "",- "[variable-2 * bar]");-- // Multi-paragraph lists- //- // 4 spaces- MT("listMultiParagraph",- "[variable-2 * foo]",- "",- "[variable-2 * bar]",- "",- " [variable-2 hello]");-- // 4 spaces, extra blank lines (should still be list, per Dingus)- MT("listMultiParagraphExtra",- "[variable-2 * foo]",- "",- "[variable-2 * bar]",- "",- "",- " [variable-2 hello]");-- // 4 spaces, plus 1 space (should still be list, per Dingus)- MT("listMultiParagraphExtraSpace",- "[variable-2 * foo]",- "",- "[variable-2 * bar]",- "",- " [variable-2 hello]",- "",- " [variable-2 world]");-- // 1 tab- MT("listTab",- "[variable-2 * foo]",- "",- "[variable-2 * bar]",- "",- "\t[variable-2 hello]");-- // No indent- MT("listNoIndent",- "[variable-2 * foo]",- "",- "[variable-2 * bar]",- "",- "hello");-- MT("listCommonMarkIndentationCode",- "[variable-2 * Code blocks also affect]",- " [variable-3 * The next level starts where the contents start.]",- " [variable-3 * Anything less than that will keep the item on the same level.]",- " [variable-3 * Each list item can indent the first level further and further.]",- " [variable-3 * For the most part, this makes sense while writing a list.]",- " [keyword * This means two items with same indentation can be different levels.]",- " [keyword * Each level has an indent requirement that can change between items.]",- " [keyword * A list item that meets this will be part of the next level.]",- " [variable-3 * Otherwise, it will be part of the level where it does meet this.]",- " [variable-2 * World]");-- // should handle nested and un-nested lists- MT("listCommonMark_MixedIndents",- "[variable-2 * list1]",- " [variable-2 list1]",- " [variable-2&header&header-1 # heading still part of list1]",- " [variable-2 text after heading still part of list1]",- "",- " [comment indented codeblock]",- " [variable-2 list1 after code block]",- " [variable-3 * list2]",- // amount of spaces on empty lines between lists doesn't matter- " ",- // extra empty lines irrelevant- "",- "",- " [variable-3 indented text part of list2]",- " [keyword * list3]",- "",- " [variable-3 text at level of list2]",- "",- " [variable-2 de-indented text part of list1 again]",- "",- " [variable-2&comment ```]",- " [comment code]",- " [variable-2&comment ```]",- "",- " [variable-2 text after fenced code]");-- // should correctly parse numbered list content indentation- MT("listCommonMark_NumeberedListIndent",- "[variable-2 1000. list with base indent of 6]",- "",- " [variable-2 text must be indented 6 spaces at minimum]",- "",- " [variable-2 9-spaces indented text still part of list]",- "",- " [comment indented codeblock starts at 10 spaces]",- "",- " [comment text indented by 5 spaces no longer belong to list]");-- // should consider tab as 4 spaces- MT("listCommonMark_TabIndented",- "[variable-2 * list]",- "\t[variable-3 * list2]",- "",- "\t\t[variable-3 part of list2]");-- MT("listAfterBlockquote",- "[quote"e-1 > foo]",- "[variable-2 - bar]");-- // shouldn't create sublist if it's indented more than allowed- MT("nestedListIndentedTooMuch",- "[variable-2 - foo]",- " [variable-2 - bar]");-- MT("listIndentedTooMuchAfterParagraph",- "foo",- " - bar");-- // Blockquote- MT("blockquote",- "[variable-2 * foo]",- "",- "[variable-2 * bar]",- "",- " [variable-2"e"e-1 > hello]");-- // Code block- MT("blockquoteCode",- "[variable-2 * foo]",- "",- "[variable-2 * bar]",- "",- " [comment > hello]",- "",- " [variable-2 world]");-- // Code block followed by text- MT("blockquoteCodeText",- "[variable-2 * foo]",- "",- " [variable-2 bar]",- "",- " [comment hello]",- "",- " [variable-2 world]");-- // Nested list-- MT("listAsteriskNested",- "[variable-2 * foo]",- "",- " [variable-3 * bar]");-- MT("listPlusNested",- "[variable-2 + foo]",- "",- " [variable-3 + bar]");-- MT("listDashNested",- "[variable-2 - foo]",- "",- " [variable-3 - bar]");-- MT("listNumberNested",- "[variable-2 1. foo]",- "",- " [variable-3 2. bar]");-- MT("listMixed",- "[variable-2 * foo]",- "",- " [variable-3 + bar]",- "",- " [keyword - hello]",- "",- " [variable-2 1. world]");-- MT("listBlockquote",- "[variable-2 * foo]",- "",- " [variable-3 + bar]",- "",- " [quote"e-1&variable-3 > hello]");-- MT("listCode",- "[variable-2 * foo]",- "",- " [variable-3 + bar]",- "",- " [comment hello]");-- // Code with internal indentation- MT("listCodeIndentation",- "[variable-2 * foo]",- "",- " [comment bar]",- " [comment hello]",- " [comment world]",- " [comment foo]",- " [variable-2 bar]");-- // List nesting edge cases- MT("listNested",- "[variable-2 * foo]",- "",- " [variable-3 * bar]",- "",- " [variable-3 hello]"- );- MT("listNested",- "[variable-2 * foo]",- "",- " [variable-3 * bar]",- "",- " [keyword * foo]"- );-- // Code followed by text- MT("listCodeText",- "[variable-2 * foo]",- "",- " [comment bar]",- "",- "hello");-- // Following tests directly from official Markdown documentation- // http://daringfireball.net/projects/markdown/syntax#hr-- MT("hrSpace",- "[hr * * *]");-- MT("hr",- "[hr ***]");-- MT("hrLong",- "[hr *****]");-- MT("hrSpaceDash",- "[hr - - -]");-- MT("hrDashLong",- "[hr ---------------------------------------]");-- //Images- MT("Images",- "[image&image-marker !][image&image-alt-text&link [[alt text]]][string&url (http://link.to/image.jpg)]")-- //Images with highlight alt text- MT("imageEm",- "[image&image-marker !][image&image-alt-text&link [[][image-alt-text&em&image&link *alt text*][image&image-alt-text&link ]]][string&url (http://link.to/image.jpg)]");-- MT("imageStrong",- "[image&image-marker !][image&image-alt-text&link [[][image-alt-text&strong&image&link **alt text**][image&image-alt-text&link ]]][string&url (http://link.to/image.jpg)]");-- MT("imageEmStrong",- "[image&image-marker !][image&image-alt-text&link [[][image&image-alt-text&em&strong&link ***alt text***][image&image-alt-text&link ]]][string&url (http://link.to/image.jpg)]");-- // Inline link with title- MT("linkTitle",- "[link [[foo]]][string&url (http://example.com/ \"bar\")] hello");-- // Inline link without title- MT("linkNoTitle",- "[link [[foo]]][string&url (http://example.com/)] bar");-- // Inline link with image- MT("linkImage",- "[link [[][link&image&image-marker !][link&image&image-alt-text&link [[alt text]]][string&url (http://link.to/image.jpg)][link ]]][string&url (http://example.com/)] bar");-- // Inline link with Em- MT("linkEm",- "[link [[][link&em *foo*][link ]]][string&url (http://example.com/)] bar");-- // Inline link with Strong- MT("linkStrong",- "[link [[][link&strong **foo**][link ]]][string&url (http://example.com/)] bar");-- // Inline link with EmStrong- MT("linkEmStrong",- "[link [[][link&em&strong ***foo***][link ]]][string&url (http://example.com/)] bar");-- MT("multilineLink",- "[link [[foo]",- "[link bar]]][string&url (https://foo#_a)]",- "should not be italics")-- // Image with title- MT("imageTitle",- "[image&image-marker !][image&image-alt-text&link [[alt text]]][string&url (http://example.com/ \"bar\")] hello");-- // Image without title- MT("imageNoTitle",- "[image&image-marker !][image&image-alt-text&link [[alt text]]][string&url (http://example.com/)] bar");-- // Image with asterisks- MT("imageAsterisks",- "[image&image-marker !][image&image-alt-text&link [[ ][image&image-alt-text&em&link *alt text*][image&image-alt-text&link ]]][string&url (http://link.to/image.jpg)] bar");-- // Not a link. Should be normal text due to square brackets being used- // regularly in text, especially in quoted material, and no space is allowed- // between square brackets and parentheses (per Dingus).- MT("notALink",- "[link [[foo]]] (bar)");-- // Reference-style links- MT("linkReference",- "[link [[foo]]][string&url [[bar]]] hello");-- // Reference-style links with Em- MT("linkReferenceEm",- "[link [[][link&em *foo*][link ]]][string&url [[bar]]] hello");-- // Reference-style links with Strong- MT("linkReferenceStrong",- "[link [[][link&strong **foo**][link ]]][string&url [[bar]]] hello");-- // Reference-style links with EmStrong- MT("linkReferenceEmStrong",- "[link [[][link&em&strong ***foo***][link ]]][string&url [[bar]]] hello");-- // Reference-style links with optional space separator (per documentation)- // "You can optionally use a space to separate the sets of brackets"- MT("linkReferenceSpace",- "[link [[foo]]] [string&url [[bar]]] hello");-- // Should only allow a single space ("...use *a* space...")- MT("linkReferenceDoubleSpace",- "[link [[foo]]] [link [[bar]]] hello");-- // Reference-style links with implicit link name- MT("linkImplicit",- "[link [[foo]]][string&url [[]]] hello");-- // @todo It would be nice if, at some point, the document was actually- // checked to see if the referenced link exists-- // Link label, for reference-style links (taken from documentation)-- MT("labelNoTitle",- "[link [[foo]]:] [string&url http://example.com/]");-- MT("labelIndented",- " [link [[foo]]:] [string&url http://example.com/]");-- MT("labelSpaceTitle",- "[link [[foo bar]]:] [string&url http://example.com/ \"hello\"]");-- MT("labelDoubleTitle",- "[link [[foo bar]]:] [string&url http://example.com/ \"hello\"] \"world\"");-- MT("labelTitleDoubleQuotes",- "[link [[foo]]:] [string&url http://example.com/ \"bar\"]");-- MT("labelTitleSingleQuotes",- "[link [[foo]]:] [string&url http://example.com/ 'bar']");-- MT("labelTitleParentheses",- "[link [[foo]]:] [string&url http://example.com/ (bar)]");-- MT("labelTitleInvalid",- "[link [[foo]]:] [string&url http://example.com/] bar");-- MT("labelLinkAngleBrackets",- "[link [[foo]]:] [string&url <http://example.com/> \"bar\"]");-- MT("labelTitleNextDoubleQuotes",- "[link [[foo]]:] [string&url http://example.com/]",- "[string \"bar\"] hello");-- MT("labelTitleNextSingleQuotes",- "[link [[foo]]:] [string&url http://example.com/]",- "[string 'bar'] hello");-- MT("labelTitleNextParentheses",- "[link [[foo]]:] [string&url http://example.com/]",- "[string (bar)] hello");-- MT("labelTitleNextMixed",- "[link [[foo]]:] [string&url http://example.com/]",- "(bar\" hello");-- MT("labelEscape",- "[link [[foo \\]] ]]:] [string&url http://example.com/]");-- MT("labelEscapeColon",- "[link [[foo \\]]: bar]]:] [string&url http://example.com/]");-- MT("labelEscapeEnd",- "\\[[foo\\]]: http://example.com/");-- MT("linkWeb",- "[link <http://example.com/>] foo");-- MT("linkWebDouble",- "[link <http://example.com/>] foo [link <http://example.com/>]");-- MT("linkEmail",- "[link <[email protected]>] foo");-- MT("linkEmailDouble",- "[link <[email protected]>] foo [link <[email protected]>]");-- MT("emAsterisk",- "[em *foo*] bar");-- MT("emUnderscore",- "[em _foo_] bar");-- MT("emInWordAsterisk",- "foo[em *bar*]hello");-- MT("emInWordUnderscore",- "foo_bar_hello");-- // Per documentation: "...surround an * or _ with spaces, it’ll be- // treated as a literal asterisk or underscore."-- MT("emEscapedBySpaceIn",- "foo [em _bar _ hello_] world");-- MT("emEscapedBySpaceOut",- "foo _ bar [em _hello_] world");-- MT("emEscapedByNewline",- "foo",- "_ bar [em _hello_] world");-- // Unclosed emphasis characters- // Instead of simply marking as EM / STRONG, it would be nice to have an- // incomplete flag for EM and STRONG, that is styled slightly different.- MT("emIncompleteAsterisk",- "foo [em *bar]");-- MT("emIncompleteUnderscore",- "foo [em _bar]");-- MT("strongAsterisk",- "[strong **foo**] bar");-- MT("strongUnderscore",- "[strong __foo__] bar");-- MT("emStrongAsterisk",- "[em *foo][em&strong **bar*][strong hello**] world");-- MT("emStrongUnderscore",- "[em _foo ][em&strong __bar_][strong hello__] world");-- // "...same character must be used to open and close an emphasis span.""- MT("emStrongMixed",- "[em _foo][em&strong **bar*hello__ world]");-- MT("emStrongMixed",- "[em *foo ][em&strong __bar_hello** world]");-- MT("linkWithNestedParens",- "[link [[foo]]][string&url (bar(baz))]")-- // These characters should be escaped:- // \ backslash- // ` backtick- // * asterisk- // _ underscore- // {} curly braces- // [] square brackets- // () parentheses- // # hash mark- // + plus sign- // - minus sign (hyphen)- // . dot- // ! exclamation mark-- MT("escapeBacktick",- "foo \\`bar\\`");-- MT("doubleEscapeBacktick",- "foo \\\\[comment `bar\\\\`]");-- MT("escapeAsterisk",- "foo \\*bar\\*");-- MT("doubleEscapeAsterisk",- "foo \\\\[em *bar\\\\*]");-- MT("escapeUnderscore",- "foo \\_bar\\_");-- MT("doubleEscapeUnderscore",- "foo \\\\[em _bar\\\\_]");-- MT("escapeHash",- "\\# foo");-- MT("doubleEscapeHash",- "\\\\# foo");-- MT("escapeNewline",- "\\",- "[em *foo*]");-- // Class override tests- TokenTypeOverrideTest("overrideHeader1",- "[override-header&override-header-1 # Foo]");-- TokenTypeOverrideTest("overrideHeader2",- "[override-header&override-header-2 ## Foo]");-- TokenTypeOverrideTest("overrideHeader3",- "[override-header&override-header-3 ### Foo]");-- TokenTypeOverrideTest("overrideHeader4",- "[override-header&override-header-4 #### Foo]");-- TokenTypeOverrideTest("overrideHeader5",- "[override-header&override-header-5 ##### Foo]");-- TokenTypeOverrideTest("overrideHeader6",- "[override-header&override-header-6 ###### Foo]");-- TokenTypeOverrideTest("overrideCode",- "[override-code `foo`]");-- TokenTypeOverrideTest("overrideCodeBlock",- "[override-code ```]",- "[override-code foo]",- "[override-code ```]");-- TokenTypeOverrideTest("overrideQuote",- "[override-quote&override-quote-1 > foo]",- "[override-quote&override-quote-1 > bar]");-- TokenTypeOverrideTest("overrideQuoteNested",- "[override-quote&override-quote-1 > foo]",- "[override-quote&override-quote-1 >][override-quote&override-quote-2 > bar]",- "[override-quote&override-quote-1 >][override-quote&override-quote-2 >][override-quote&override-quote-3 > baz]");-- TokenTypeOverrideTest("overrideLists",- "[override-list1 - foo]",- "",- " [override-list2 + bar]",- "",- " [override-list3 * baz]",- "",- " [override-list1 1. qux]",- "",- " [override-list2 - quux]");-- TokenTypeOverrideTest("overrideHr",- "[override-hr * * *]");-- TokenTypeOverrideTest("overrideImage",- "[override-image&override-image-marker !][override-image&override-image-alt-text&link [[alt text]]][override-link-href&url (http://link.to/image.jpg)]");-- TokenTypeOverrideTest("overrideLinkText",- "[override-link-text [[foo]]][override-link-href&url (http://example.com)]");-- TokenTypeOverrideTest("overrideLinkEmailAndInline",- "[override-link-email <][override-link-inline [email protected]>]");-- TokenTypeOverrideTest("overrideEm",- "[override-em *foo*]");-- TokenTypeOverrideTest("overrideStrong",- "[override-strong **foo**]");-- TokenTypeOverrideTest("overrideStrikethrough",- "[override-strikethrough ~~foo~~]");-- TokenTypeOverrideTest("overrideEmoji",- "[override-emoji :foo:]");-- FormatTokenTypeOverrideTest("overrideFormatting",- "[override-formatting-escape \\*]");-- // Tests to make sure GFM-specific things aren't getting through-- MT("taskList",- "[variable-2 * ][link&variable-2 [[ ]]][variable-2 bar]");-- MT("fencedCodeBlocks",- "[comment ```]",- "[comment foo]",- "",- "[comment bar]",- "[comment ```]",- "baz");-- MT("fencedCodeBlocks_invalidClosingFence_trailingText",- "[comment ```]",- "[comment foo]",- "[comment ``` must not have trailing text]",- "[comment baz]");-- MT("fencedCodeBlocks_invalidClosingFence_trailingTabs",- "[comment ```]",- "[comment foo]",- "[comment ```\t]",- "[comment baz]");-- MT("fencedCodeBlocks_validClosingFence",- "[comment ```]",- "[comment foo]",- // may have trailing spaces- "[comment ``` ]",- "baz");-- MT("fencedCodeBlocksInList_closingFenceIndented",- "[variable-2 - list]",- " [variable-2&comment ```]",- " [comment foo]",- " [variable-2&comment ```]",- " [variable-2 baz]");-- MT("fencedCodeBlocksInList_closingFenceIndentedTooMuch",- "[variable-2 - list]",- " [variable-2&comment ```]",- " [comment foo]",- " [comment ```]",- " [comment baz]");-- MT("fencedCodeBlockModeSwitching",- "[comment ```javascript]",- "[variable foo]",- "",- "[comment ```]",- "bar");-- MT_noFencedHighlight("fencedCodeBlock_noHighlight",- "[comment ```javascript]",- "[comment foo]",- "[comment ```]");-- MT("fencedCodeBlockModeSwitchingObjc",- "[comment ```objective-c]",- "[keyword @property] [variable NSString] [operator *] [variable foo];",- "[comment ```]",- "bar");-- MT("fencedCodeBlocksMultipleChars",- "[comment `````]",- "[comment foo]",- "[comment ```]",- "[comment foo]",- "[comment `````]",- "bar");-- MT("fencedCodeBlocksTildes",- "[comment ~~~]",- "[comment foo]",- "[comment ~~~]",- "bar");-- MT("fencedCodeBlocksTildesMultipleChars",- "[comment ~~~~~]",- "[comment ~~~]",- "[comment foo]",- "[comment ~~~~~]",- "bar");-- MT("fencedCodeBlocksMultipleChars",- "[comment `````]",- "[comment foo]",- "[comment ```]",- "[comment foo]",- "[comment `````]",- "bar");-- MT("fencedCodeBlocksMixed",- "[comment ~~~]",- "[comment ```]",- "[comment foo]",- "[comment ~~~]",- "bar");-- MT("fencedCodeBlocksAfterBlockquote",- "[quote"e-1 > foo]",- "[comment ```]",- "[comment bar]",- "[comment ```]");-- // fencedCode indented too much should act as simple indentedCode- // (hence has no highlight formatting)- FT("tooMuchIndentedFencedCode",- " [comment ```]",- " [comment code]",- " [comment ```]");-- MT("autoTerminateFencedCodeWhenLeavingList",- "[variable-2 - list1]",- " [variable-3 - list2]",- " [variable-3&comment ```]",- " [comment code]",- " [variable-3 - list2]",- " [variable-2&comment ```]",- " [comment code]",- "[quote"e-1 > foo]");-- // Tests that require XML mode-- MT("xmlMode",- "[tag&bracket <][tag div][tag&bracket >]",- " *foo*",- " [tag&bracket <][tag http://github.com][tag&bracket />]",- "[tag&bracket </][tag div][tag&bracket >]",- "[link <http://github.com/>]");-- MT("xmlModeWithMarkdownInside",- "[tag&bracket <][tag div] [attribute markdown]=[string 1][tag&bracket >]",- "[em *foo*]",- "[link <http://github.com/>]",- "[tag </div>]",- "[link <http://github.com/>]",- "[tag&bracket <][tag div][tag&bracket >]",- "[tag&bracket </][tag div][tag&bracket >]");-- MT("xmlModeLineBreakInTags",- "[tag&bracket <][tag div] [attribute id]=[string \"1\"]",- " [attribute class]=[string \"sth\"][tag&bracket >]xxx",- "[tag&bracket </][tag div][tag&bracket >]");-- MT("xmlModeCommentWithBlankLine",- "[comment <!-- Hello]",- "",- "[comment World -->]");-- MT("xmlModeCDATA",- "[atom <![CDATA[ Hello]",- "",- "[atom FooBar]",- "[atom Test ]]]]>]");-- MT("xmlModePreprocessor",- "[meta <?php] [meta echo '1234'; ?>]");-- MT_noXml("xmlHighlightDisabled",- "<div>foo</div>");-- // Tests Emojis-- ET("emojiDefault",- "[builtin :foobar:]");-- ET("emojiTable",- " :--:");-})();diff --git a/libraries/codemirror/mode/mathematica/index.html b/libraries/codemirror/mode/mathematica/index.htmldeleted file mode 100644index 2e5a5748fc..0000000000--- a/libraries/codemirror/mode/mathematica/index.html+++ /dev/null@@ -1,72 +0,0 @@-<!doctype html>--<title>CodeMirror: Mathematica mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel=stylesheet href=../../lib/codemirror.css>-<script src=../../lib/codemirror.js></script>-<script src=../../addon/edit/matchbrackets.js></script>-<script src=mathematica.js></script>-<style type=text/css>- .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}-</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Mathematica</a>- </ul>-</div>--<article>-<h2>Mathematica mode</h2>---<textarea id="mathematicaCode">-(* example Mathematica code *)-(* Dualisiert wird anhand einer Polarität an einer- Quadrik $x^t Q x = 0$ mit regulärer Matrix $Q$ (also- mit $det(Q) \neq 0$), z.B. die Identitätsmatrix.- $p$ ist eine Liste von Polynomen - ein Ideal. *)-dualize::"singular" = "Q must be regular: found Det[Q]==0.";-dualize[ Q_, p_ ] := Block[- { m, n, xv, lv, uv, vars, polys, dual },- If[Det[Q] == 0,- Message[dualize::"singular"],- m = Length[p];- n = Length[Q] - 1;- xv = Table[Subscript[x, i], {i, 0, n}];- lv = Table[Subscript[l, i], {i, 1, m}];- uv = Table[Subscript[u, i], {i, 0, n}];- (* Konstruiere Ideal polys. *)- If[m == 0,- polys = Q.uv,- polys = Join[p, Q.uv - Transpose[Outer[D, p, xv]].lv]- ];- (* Eliminiere die ersten n + 1 + m Variablen xv und lv- aus dem Ideal polys. *)- vars = Join[xv, lv];- dual = GroebnerBasis[polys, uv, vars];- (* Ersetze u mit x im Ergebnis. *)- ReplaceAll[dual, Rule[u, x]]- ]- ]-</textarea>--<script>- var mathematicaEditor = CodeMirror.fromTextArea(document.getElementById('mathematicaCode'), {- mode: 'text/x-mathematica',- lineNumbers: true,- matchBrackets: true- });-</script>--<p><strong>MIME types defined:</strong> <code>text/x-mathematica</code> (Mathematica).</p>-</article>diff --git a/libraries/codemirror/mode/mbox/index.html b/libraries/codemirror/mode/mbox/index.htmldeleted file mode 100644index c70cf36074..0000000000--- a/libraries/codemirror/mode/mbox/index.html+++ /dev/null@@ -1,44 +0,0 @@-<!doctype html>--<title>CodeMirror: mbox mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="mbox.js"></script>-<style>.CodeMirror { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">mbox</a>- </ul>-</div>--<article>-<h2>mbox mode</h2>-<form><textarea id="code" name="code">-From [email protected] Sun Apr 17 01:40:43 2016-From: Timothy Gu <[email protected]>-Date: Sat, 16 Apr 2016 18:40:43 -0700-Subject: mbox mode-Message-ID: <Z8d+bTT50U/[email protected]>--mbox mode is working!--Timothy-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});- </script>-- <p><strong>MIME types defined:</strong> <code>application/mbox</code>.</p>-- </article>diff --git a/libraries/codemirror/mode/mirc/index.html b/libraries/codemirror/mode/mirc/index.htmldeleted file mode 100644index 98f81750fa..0000000000--- a/libraries/codemirror/mode/mirc/index.html+++ /dev/null@@ -1,161 +0,0 @@-<!doctype html>--<title>CodeMirror: mIRC mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<link rel="stylesheet" href="../../theme/twilight.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="mirc.js"></script>-<style>.CodeMirror {border: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">mIRC</a>- </ul>-</div>--<article>-<h2>mIRC mode</h2>-<form><textarea id="code" name="code">-;AKA Nick Tracker by Ford_Lawnmower irc.GeekShed.net #Script-Help-;*****************************************************************************;-;**Start Setup-;Change JoinDisplay, below, for On Join AKA Display. On = 1 - Off = 0-alias -l JoinDisplay { return 1 }-;Change MaxNicks, below, to the number of nicknames you want to store for each hostmask. I wouldn't go over 400 with this ;/-alias -l MaxNicks { return 20 }-;Change AKALogo, below, To the text you want displayed before each AKA result.-alias -l AKALogo { return 06 05A06K07A 06 }-;**End Setup-;*****************************************************************************;-On *:Join:#: {- if ($nick == $me) { .timer 1 1 ialupdateCheck $chan }- NickNamesAdd $nick $+($network,$wildsite)- if ($JoinDisplay) { .timerNickNames $+ $nick 1 2 NickNames.display $nick $chan $network $wildsite }-}-on *:Nick: { NickNamesAdd $newnick $+($network,$wildsite) $nick }-alias -l NickNames.display {- if ($gettok($hget(NickNames,$+($3,$4)),0,126) > 1) {- echo -g $2 $AKALogo $+(09,$1) $AKALogo 07 $mid($replace($hget(NickNames,$+($3,$4)),$chr(126),$chr(44)),2,-1)- }-}-alias -l NickNamesAdd {- if ($hget(NickNames,$2)) {- if (!$regex($hget(NickNames,$2),/~\Q $+ $replacecs($1,\E,\E\\E\Q) $+ \E~/i)) {- if ($gettok($hget(NickNames,$2),0,126) <= $MaxNicks) {- hadd NickNames $2 $+($hget(NickNames,$2),$1,~)- }- else {- hadd NickNames $2 $+($mid($hget(NickNames,$2),$pos($hget(NickNames,$2),~,2)),$1,~)- }- }- }- else {- hadd -m NickNames $2 $+(~,$1,~,$iif($3,$+($3,~)))- }-}-alias -l Fix.All.MindUser {- var %Fix.Count = $hfind(NickNames,/[^~]+[0-9]{4}~/,0,r).data- while (%Fix.Count) {- if ($Fix.MindUser($hget(NickNames,$hfind(NickNames,/[^~]+[0-9]{4}~/,%Fix.Count,r).data))) {- echo -ag Record %Fix.Count - $v1 - Was Cleaned- hadd NickNames $hfind(NickNames,/[^~]+[0-9]{4}~/,%Fix.Count,r).data $v1- }- dec %Fix.Count- }-}-alias -l Fix.MindUser { return $regsubex($1,/[^~]+[0-9]{4}~/g,$null) }-menu nicklist,query {- -- .AKA- ..Check $$1: {- if ($gettok($hget(NickNames,$+($network,$address($1,2))),0,126) > 1) {- NickNames.display $1 $active $network $address($1,2)- }- else { echo -ag $AKALogo $+(09,$1) 07has not been known by any other nicknames while I have been watching. }- }- ..Cleanup $$1:hadd NickNames $+($network,$address($1,2)) $fix.minduser($hget(NickNames,$+($network,$address($1,2))))- ..Clear $$1:hadd NickNames $+($network,$address($1,2)) $+(~,$1,~)- ..AKA Search Dialog:dialog $iif($dialog(AKA_Search),-v,-m) AKA_Search AKA_Search- --}-menu status,channel {- -- .AKA- ..AKA Search Dialog:dialog $iif($dialog(AKA_Search),-v,-m) AKA_Search AKA_Search- ..Clean All Records:Fix.All.Minduser- --}-dialog AKA_Search {- title "AKA Search Engine"- size -1 -1 206 221- option dbu- edit "", 1, 8 5 149 10, autohs- button "Search", 2, 163 4 32 12- radio "Search HostMask", 4, 61 22 55 10- radio "Search Nicknames", 5, 123 22 56 10- list 6, 8 38 190 169, sort extsel vsbar- button "Check Selected", 7, 67 206 40 12- button "Close", 8, 160 206 38 12, cancel- box "Search Type", 3, 11 17 183 18- button "Copy to Clipboard", 9, 111 206 46 12-}-On *:Dialog:Aka_Search:init:*: { did -c $dname 5 }-On *:Dialog:Aka_Search:Sclick:2,7,9: {- if ($did == 2) && ($did($dname,1)) {- did -r $dname 6- var %search $+(*,$v1,*), %type $iif($did($dname,5).state,data,item), %matches = $hfind(NickNames,%search,0,w). [ $+ [ %type ] ]- while (%matches) {- did -a $dname 6 $hfind(NickNames,%search,%matches,w). [ $+ [ %type ] ]- dec %matches- }- did -c $dname 6 1- }- elseif ($did == 7) && ($did($dname,6).seltext) { echo -ga $AKALogo 07 $mid($replace($hget(NickNames,$v1),$chr(126),$chr(44)),2,-1) }- elseif ($did == 9) && ($did($dname,6).seltext) { clipboard $mid($v1,$pos($v1,*,1)) }-}-On *:Start:{- if (!$hget(NickNames)) { hmake NickNames 10 }- if ($isfile(NickNames.hsh)) { hload NickNames NickNames.hsh }-}-On *:Exit: { if ($hget(NickNames)) { hsave NickNames NickNames.hsh } }-On *:Disconnect: { if ($hget(NickNames)) { hsave NickNames NickNames.hsh } }-On *:Unload: { hfree NickNames }-alias -l ialupdateCheck {- inc -z $+(%,ialupdateCheck,$network) $calc($nick($1,0) / 4)- ;If your ial is already being updated on join .who $1 out.- ;If you are using /names to update ial you will still need this line.- .who $1-}-Raw 352:*: {- if ($($+(%,ialupdateCheck,$network),2)) haltdef- NickNamesAdd $6 $+($network,$address($6,2))-}-Raw 315:*: {- if ($($+(%,ialupdateCheck,$network),2)) haltdef-}--</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- theme: "twilight",- lineNumbers: true,- matchBrackets: true,- indentUnit: 4,- mode: "text/mirc"- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/mirc</code>.</p>-- </article>diff --git a/libraries/codemirror/mode/mllike/index.html b/libraries/codemirror/mode/mllike/index.htmldeleted file mode 100644index 491373171f..0000000000--- a/libraries/codemirror/mode/mllike/index.html+++ /dev/null@@ -1,198 +0,0 @@-<!doctype html>--<title>CodeMirror: ML-like mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel=stylesheet href=../../lib/codemirror.css>-<script src=../../lib/codemirror.js></script>-<script src=../../addon/edit/matchbrackets.js></script>-<script src=mllike.js></script>-<style type=text/css>- .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}-</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">ML-like</a>- </ul>-</div>--<article>-<h2>OCaml mode</h2>---<textarea id="ocamlCode">-(* Summing a list of integers *)-let rec sum xs =- match xs with- | [] -> 0- | x :: xs' -> x + sum xs'--(* Quicksort *)-let rec qsort = function- | [] -> []- | pivot :: rest ->- let is_less x = x < pivot in- let left, right = List.partition is_less rest in- qsort left @ [pivot] @ qsort right--(* Fibonacci Sequence *)-let rec fib_aux n a b =- match n with- | 0 -> a- | _ -> fib_aux (n - 1) (a + b) a-let fib n = fib_aux n 0 1--(* Birthday paradox *)-let year_size = 365.--let rec birthday_paradox prob people =- let prob' = (year_size -. float people) /. year_size *. prob in- if prob' < 0.5 then- Printf.printf "answer = %d\n" (people+1)- else- birthday_paradox prob' (people+1) ;;--birthday_paradox 1.0 1--(* Church numerals *)-let zero f x = x-let succ n f x = f (n f x)-let one = succ zero-let two = succ (succ zero)-let add n1 n2 f x = n1 f (n2 f x)-let to_string n = n (fun k -> "S" ^ k) "0"-let _ = to_string (add (succ two) two)--(* Elementary functions *)-let square x = x * x;;-let rec fact x =- if x <= 1 then 1 else x * fact (x - 1);;--(* Automatic memory management *)-let l = 1 :: 2 :: 3 :: [];;-[1; 2; 3];;-5 :: l;;--(* Polymorphism: sorting lists *)-let rec sort = function- | [] -> []- | x :: l -> insert x (sort l)--and insert elem = function- | [] -> [elem]- | x :: l ->- if elem < x then elem :: x :: l else x :: insert elem l;;--(* Imperative features *)-let add_polynom p1 p2 =- let n1 = Array.length p1- and n2 = Array.length p2 in- let result = Array.create (max n1 n2) 0 in- for i = 0 to n1 - 1 do result.(i) <- p1.(i) done;- for i = 0 to n2 - 1 do result.(i) <- result.(i) + p2.(i) done;- result;;-add_polynom [| 1; 2 |] [| 1; 2; 3 |];;--(* We may redefine fact using a reference cell and a for loop *)-let fact n =- let result = ref 1 in- for i = 2 to n do- result := i * !result- done;- !result;;-fact 5;;--(* Triangle (graphics) *)-let () =- ignore( Glut.init Sys.argv );- Glut.initDisplayMode ~double_buffer:true ();- ignore (Glut.createWindow ~title:"OpenGL Demo");- let angle t = 10. *. t *. t in- let render () =- GlClear.clear [ `color ];- GlMat.load_identity ();- GlMat.rotate ~angle: (angle (Sys.time ())) ~z:1. ();- GlDraw.begins `triangles;- List.iter GlDraw.vertex2 [-1., -1.; 0., 1.; 1., -1.];- GlDraw.ends ();- Glut.swapBuffers () in- GlMat.mode `modelview;- Glut.displayFunc ~cb:render;- Glut.idleFunc ~cb:(Some Glut.postRedisplay);- Glut.mainLoop ()--(* A Hundred Lines of Caml - http://caml.inria.fr/about/taste.en.html *)-(* OCaml page on Wikipedia - http://en.wikipedia.org/wiki/OCaml *)--module type S = sig type t end--let x = {|- this is a long string- with many lines and stuff- |}--let b = 0b00110-let h = 0x123abcd-let e = 1e-10-let i = 1.-let x = 30_000-let o = 0o1234--[1; 2; 3] (* lists *)--1 @ 2-1. +. 2.-</textarea>--<h2>F# mode</h2>-<textarea id="fsharpCode">-module CodeMirror.FSharp--let rec fib = function- | 0 -> 0- | 1 -> 1- | n -> fib (n - 1) + fib (n - 2)--type Point =- {- x : int- y : int- }--type Color =- | Red- | Green- | Blue--[0 .. 10]-|> List.map ((+) 2)-|> List.fold (fun x y -> x + y) 0-|> printf "%i"-</textarea>---<script>- var ocamlEditor = CodeMirror.fromTextArea(document.getElementById('ocamlCode'), {- mode: 'text/x-ocaml',- lineNumbers: true,- matchBrackets: true- });-- var fsharpEditor = CodeMirror.fromTextArea(document.getElementById('fsharpCode'), {- mode: 'text/x-fsharp',- lineNumbers: true,- matchBrackets: true- });-</script>--<p><strong>MIME types defined:</strong> <code>text/x-ocaml</code> (OCaml) and <code>text/x-fsharp</code> (F#).</p>-</article>diff --git a/libraries/codemirror/mode/modelica/index.html b/libraries/codemirror/mode/modelica/index.htmldeleted file mode 100644index ed344e712f..0000000000--- a/libraries/codemirror/mode/modelica/index.html+++ /dev/null@@ -1,67 +0,0 @@-<!doctype html>--<title>CodeMirror: Modelica mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<link rel="stylesheet" href="../../addon/hint/show-hint.css">-<script src="../../addon/hint/show-hint.js"></script>-<script src="modelica.js"></script>-<style>.CodeMirror {border: 2px inset #dee;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Modelica</a>- </ul>-</div>--<article>-<h2>Modelica mode</h2>--<div><textarea id="modelica">-model BouncingBall- parameter Real e = 0.7;- parameter Real g = 9.81;- Real h(start=1);- Real v;- Boolean flying(start=true);- Boolean impact;- Real v_new;-equation- impact = h <= 0.0;- der(v) = if flying then -g else 0;- der(h) = v;- when {h <= 0.0 and v <= 0.0, impact} then- v_new = if edge(impact) then -e*pre(v) else 0;- flying = v_new > 0;- reinit(v, v_new);- end when;- annotation (uses(Modelica(version="3.2")));-end BouncingBall;-</textarea></div>-- <script>- var modelicaEditor = CodeMirror.fromTextArea(document.getElementById("modelica"), {- lineNumbers: true,- matchBrackets: true,- mode: "text/x-modelica"- });- var mac = CodeMirror.keyMap.default == CodeMirror.keyMap.macDefault;- CodeMirror.keyMap.default[(mac ? "Cmd" : "Ctrl") + "-Space"] = "autocomplete";- </script>-- <p>Simple mode that tries to handle Modelica as well as it can.</p>-- <p><strong>MIME types defined:</strong> <code>text/x-modelica</code>- (Modlica code).</p>-</article>diff --git a/libraries/codemirror/mode/mscgen/index.html b/libraries/codemirror/mode/mscgen/index.htmldeleted file mode 100644index a35ffd4320..0000000000--- a/libraries/codemirror/mode/mscgen/index.html+++ /dev/null@@ -1,151 +0,0 @@-<!doctype html>--<title>CodeMirror: MscGen mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="mscgen.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">MscGen</a>- </ul>-</div>--<article>-<h2>MscGen mode</h2>--<div><textarea id="mscgen-code">-# Sample mscgen program-# See http://www.mcternan.me.uk/mscgen or-# https://sverweij.github.io/mscgen_js for more samples-msc {- # options- hscale="1.2";-- # entities/ lifelines- a [label="Entity A"],- b [label="Entity B", linecolor="red", arclinecolor="red", textbgcolor="pink"],- c [label="Entity C"];-- # arcs/ messages- a => c [label="doSomething(args)"];- b => c [label="doSomething(args)"];- c >> * [label="everyone asked me", arcskip="1"];- c =>> c [label="doing something"];- c -x * [label="report back", arcskip="1"];- |||;- --- [label="shows's over, however ..."];- b => a [label="did you see c doing something?"];- a -> b [label="nope"];- b :> a [label="shall we ask again?"];- a => b [label="naah"];- ...;-}-</textarea></div>--<h2>Xù mode</h2>--<div><textarea id="xu-code">-# Xù - expansions to MscGen to support inline expressions-# https://github.com/sverweij/mscgen_js/blob/master/wikum/xu.md-# More samples: https://sverweij.github.io/mscgen_js-xu {- hscale="0.8",- width="700";-- a,- b [label="change store"],- c,- d [label="necro queue"],- e [label="natalis queue"],- f;-- a =>> b [label="get change list()"];- a alt f [label="changes found"] { /* alt is a xu specific keyword*/- b >> a [label="list of changes"];- a =>> c [label="cull old stuff (list of changes)"];- b loop e [label="for each change"] { // loop is xu specific as well...- /*- * Interesting stuff happens.- */- c =>> b [label="get change()"];- b >> c [label="change"];- c alt e [label="change too old"] {- c =>> d [label="queue(change)"];- --- [label="change newer than latest run"];- c =>> e [label="queue(change)"];- --- [label="all other cases"];- ||| [label="leave well alone"];- };- };-- c >> a [label="done- processing"];-- /* shucks! nothing found ...*/- --- [label="nothing found"];- b >> a [label="nothing"];- a note a [label="silent exit"];- };-}-</textarea></div>--<h2>MsGenny mode</h2>-<div><textarea id="msgenny-code">-# MsGenny - simplified version of MscGen / Xù-# https://github.com/sverweij/mscgen_js/blob/master/wikum/msgenny.md-# More samples: https://sverweij.github.io/mscgen_js-a -> b : a -> b (signal);-a => b : a => b (method);-b >> a : b >> a (return value);-a =>> b : a =>> b (callback);-a -x b : a -x b (lost);-a :> b : a :> b (emphasis);-a .. b : a .. b (dotted);-a -- b : "a -- b straight line";-a note a : a note a\n(note),-b box b : b box b\n(action);-a rbox a : a rbox a\n(reference),-b abox b : b abox b\n(state/ condition);-||| : ||| (empty row);-... : ... (omitted row);---- : --- (comment);-</textarea></div>-- <p>- Simple mode for highlighting MscGen and two derived sequence- chart languages.- </p>-- <script>- var mscgenEditor = CodeMirror.fromTextArea(document.getElementById("mscgen-code"), {- lineNumbers: true,- mode: "text/x-mscgen",- });- var xuEditor = CodeMirror.fromTextArea(document.getElementById("xu-code"), {- lineNumbers: true,- mode: "text/x-xu",- });- var msgennyEditor = CodeMirror.fromTextArea(document.getElementById("msgenny-code"), {- lineNumbers: true,- mode: "text/x-msgenny",- });- </script>-- <p><strong>MIME types defined:</strong>- <code>text/x-mscgen</code>- <code>text/x-xu</code>- <code>text/x-msgenny</code>- </p>--</article>diff --git a/libraries/codemirror/mode/mscgen/mscgen_test.js b/libraries/codemirror/mode/mscgen/mscgen_test.jsdeleted file mode 100644index ff3816d853..0000000000--- a/libraries/codemirror/mode/mscgen/mscgen_test.js+++ /dev/null@@ -1,84 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({indentUnit: 2}, "mscgen");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }-- MT("empty chart",- "[keyword msc][bracket {]",- "[base ]",- "[bracket }]"- );-- MT("comments",- "[comment // a single line comment]",- "[comment # another single line comment /* and */ ignored here]",- "[comment /* A multi-line comment even though it contains]",- "[comment msc keywords and \"quoted text\"*/]");-- MT("strings",- "[string \"// a string\"]",- "[string \"a string running over]",- "[string two lines\"]",- "[string \"with \\\"escaped quote\"]"- );-- MT("xù/ msgenny keywords classify as 'base'",- "[base watermark]",- "[base wordwrapentities]",- "[base alt loop opt ref else break par seq assert]"- );-- MT("xù/ msgenny constants classify as 'base'",- "[base auto]"- );-- MT("mscgen constants classify as 'variable'",- "[variable true]", "[variable false]", "[variable on]", "[variable off]"- );-- MT("mscgen options classify as keyword",- "[keyword hscale]", "[keyword width]", "[keyword arcgradient]", "[keyword wordwraparcs]"- );-- MT("mscgen arcs classify as keyword",- "[keyword note]","[keyword abox]","[keyword rbox]","[keyword box]",- "[keyword |||...---]", "[keyword ..--==::]",- "[keyword ->]", "[keyword <-]", "[keyword <->]",- "[keyword =>]", "[keyword <=]", "[keyword <=>]",- "[keyword =>>]", "[keyword <<=]", "[keyword <<=>>]",- "[keyword >>]", "[keyword <<]", "[keyword <<>>]",- "[keyword -x]", "[keyword x-]", "[keyword -X]", "[keyword X-]",- "[keyword :>]", "[keyword <:]", "[keyword <:>]"- );-- MT("within an attribute list, attributes classify as attribute",- "[bracket [[][attribute label]",- "[attribute id]","[attribute url]","[attribute idurl]",- "[attribute linecolor]","[attribute linecolour]","[attribute textcolor]","[attribute textcolour]","[attribute textbgcolor]","[attribute textbgcolour]",- "[attribute arclinecolor]","[attribute arclinecolour]","[attribute arctextcolor]","[attribute arctextcolour]","[attribute arctextbgcolor]","[attribute arctextbgcolour]",- "[attribute arcskip][bracket ]]]"- );-- MT("outside an attribute list, attributes classify as base",- "[base label]",- "[base id]","[base url]","[base idurl]",- "[base linecolor]","[base linecolour]","[base textcolor]","[base textcolour]","[base textbgcolor]","[base textbgcolour]",- "[base arclinecolor]","[base arclinecolour]","[base arctextcolor]","[base arctextcolour]","[base arctextbgcolor]","[base arctextbgcolour]",- "[base arcskip]"- );-- MT("a typical program",- "[comment # typical mscgen program]",- "[keyword msc][base ][bracket {]",- "[keyword wordwraparcs][operator =][variable true][base , ][keyword hscale][operator =][string \"0.8\"][base , ][keyword arcgradient][operator =][base 30;]",- "[base a][bracket [[][attribute label][operator =][string \"Entity A\"][bracket ]]][base ,]",- "[base b][bracket [[][attribute label][operator =][string \"Entity B\"][bracket ]]][base ,]",- "[base c][bracket [[][attribute label][operator =][string \"Entity C\"][bracket ]]][base ;]",- "[base a ][keyword =>>][base b][bracket [[][attribute label][operator =][string \"Hello entity B\"][bracket ]]][base ;]",- "[base a ][keyword <<][base b][bracket [[][attribute label][operator =][string \"Here's an answer dude!\"][bracket ]]][base ;]",- "[base c ][keyword :>][base *][bracket [[][attribute label][operator =][string \"What about me?\"][base , ][attribute textcolor][operator =][base red][bracket ]]][base ;]",- "[bracket }]"- );-})();diff --git a/libraries/codemirror/mode/mscgen/msgenny_test.js b/libraries/codemirror/mode/mscgen/msgenny_test.jsdeleted file mode 100644index a3ed577dd2..0000000000--- a/libraries/codemirror/mode/mscgen/msgenny_test.js+++ /dev/null@@ -1,77 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({indentUnit: 2}, "text/x-msgenny");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), "msgenny"); }-- MT("comments",- "[comment // a single line comment]",- "[comment # another single line comment /* and */ ignored here]",- "[comment /* A multi-line comment even though it contains]",- "[comment msc keywords and \"quoted text\"*/]");-- MT("strings",- "[string \"// a string\"]",- "[string \"a string running over]",- "[string two lines\"]",- "[string \"with \\\"escaped quote\"]"- );-- MT("xù/ msgenny keywords classify as 'keyword'",- "[keyword watermark]",- "[keyword wordwrapentities]",- "[keyword alt]","[keyword loop]","[keyword opt]","[keyword ref]","[keyword else]","[keyword break]","[keyword par]","[keyword seq]","[keyword assert]"- );-- MT("xù/ msgenny constants classify as 'variable'",- "[variable auto]",- "[variable true]", "[variable false]", "[variable on]", "[variable off]"- );-- MT("mscgen options classify as keyword",- "[keyword hscale]", "[keyword width]", "[keyword arcgradient]", "[keyword wordwraparcs]"- );-- MT("mscgen arcs classify as keyword",- "[keyword note]","[keyword abox]","[keyword rbox]","[keyword box]",- "[keyword |||...---]", "[keyword ..--==::]",- "[keyword ->]", "[keyword <-]", "[keyword <->]",- "[keyword =>]", "[keyword <=]", "[keyword <=>]",- "[keyword =>>]", "[keyword <<=]", "[keyword <<=>>]",- "[keyword >>]", "[keyword <<]", "[keyword <<>>]",- "[keyword -x]", "[keyword x-]", "[keyword -X]", "[keyword X-]",- "[keyword :>]", "[keyword <:]", "[keyword <:>]"- );-- MT("within an attribute list, mscgen/ xù attributes classify as base",- "[base [[label]",- "[base idurl id url]",- "[base linecolor linecolour textcolor textcolour textbgcolor textbgcolour]",- "[base arclinecolor arclinecolour arctextcolor arctextcolour arctextbgcolor arctextbgcolour]",- "[base arcskip]]]"- );-- MT("outside an attribute list, mscgen/ xù attributes classify as base",- "[base label]",- "[base idurl id url]",- "[base linecolor linecolour textcolor textcolour textbgcolor textbgcolour]",- "[base arclinecolor arclinecolour arctextcolor arctextcolour arctextbgcolor arctextbgcolour]",- "[base arcskip]"- );-- MT("a typical program",- "[comment # typical msgenny program]",- "[keyword wordwraparcs][operator =][variable true][base , ][keyword hscale][operator =][string \"0.8\"][base , ][keyword arcgradient][operator =][base 30;]",- "[base a : ][string \"Entity A\"][base ,]",- "[base b : Entity B,]",- "[base c : Entity C;]",- "[base a ][keyword =>>][base b: ][string \"Hello entity B\"][base ;]",- "[base a ][keyword alt][base c][bracket {]",- "[base a ][keyword <<][base b: ][string \"Here's an answer dude!\"][base ;]",- "[keyword ---][base : ][string \"sorry, won't march - comm glitch\"]",- "[base a ][keyword x-][base b: ][string \"Here's an answer dude! (won't arrive...)\"][base ;]",- "[bracket }]",- "[base c ][keyword :>][base *: What about me?;]"- );-})();diff --git a/libraries/codemirror/mode/mscgen/xu_test.js b/libraries/codemirror/mode/mscgen/xu_test.jsdeleted file mode 100644index d65a058712..0000000000--- a/libraries/codemirror/mode/mscgen/xu_test.js+++ /dev/null@@ -1,87 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({indentUnit: 2}, "text/x-xu");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), "xu"); }-- MT("empty chart",- "[keyword msc][bracket {]",- "[base ]",- "[bracket }]"- );-- MT("empty chart",- "[keyword xu][bracket {]",- "[base ]",- "[bracket }]"- );-- MT("comments",- "[comment // a single line comment]",- "[comment # another single line comment /* and */ ignored here]",- "[comment /* A multi-line comment even though it contains]",- "[comment msc keywords and \"quoted text\"*/]");-- MT("strings",- "[string \"// a string\"]",- "[string \"a string running over]",- "[string two lines\"]",- "[string \"with \\\"escaped quote\"]"- );-- MT("xù/ msgenny keywords classify as 'keyword'",- "[keyword watermark]",- "[keyword alt]","[keyword loop]","[keyword opt]","[keyword ref]","[keyword else]","[keyword break]","[keyword par]","[keyword seq]","[keyword assert]"- );-- MT("xù/ msgenny constants classify as 'variable'",- "[variable auto]",- "[variable true]", "[variable false]", "[variable on]", "[variable off]"- );-- MT("mscgen options classify as keyword",- "[keyword hscale]", "[keyword width]", "[keyword arcgradient]", "[keyword wordwraparcs]"- );-- MT("mscgen arcs classify as keyword",- "[keyword note]","[keyword abox]","[keyword rbox]","[keyword box]",- "[keyword |||...---]", "[keyword ..--==::]",- "[keyword ->]", "[keyword <-]", "[keyword <->]",- "[keyword =>]", "[keyword <=]", "[keyword <=>]",- "[keyword =>>]", "[keyword <<=]", "[keyword <<=>>]",- "[keyword >>]", "[keyword <<]", "[keyword <<>>]",- "[keyword -x]", "[keyword x-]", "[keyword -X]", "[keyword X-]",- "[keyword :>]", "[keyword <:]", "[keyword <:>]"- );-- MT("within an attribute list, attributes classify as attribute",- "[bracket [[][attribute label]",- "[attribute id]","[attribute url]","[attribute idurl]",- "[attribute linecolor]","[attribute linecolour]","[attribute textcolor]","[attribute textcolour]","[attribute textbgcolor]","[attribute textbgcolour]",- "[attribute arclinecolor]","[attribute arclinecolour]","[attribute arctextcolor]","[attribute arctextcolour]","[attribute arctextbgcolor]","[attribute arctextbgcolour]",- "[attribute arcskip]","[attribute title]",- "[attribute activate]","[attribute deactivate]","[attribute activation][bracket ]]]"- );-- MT("outside an attribute list, attributes classify as base",- "[base label]",- "[base id]","[base url]","[base idurl]",- "[base linecolor]","[base linecolour]","[base textcolor]","[base textcolour]","[base textbgcolor]","[base textbgcolour]",- "[base arclinecolor]","[base arclinecolour]","[base arctextcolor]","[base arctextcolour]","[base arctextbgcolor]","[base arctextbgcolour]",- "[base arcskip]", "[base title]"- );-- MT("a typical program",- "[comment # typical xu program]",- "[keyword xu][base ][bracket {]",- "[keyword wordwraparcs][operator =][string \"true\"][base , ][keyword hscale][operator =][string \"0.8\"][base , ][keyword arcgradient][operator =][base 30, ][keyword width][operator =][variable auto][base ;]",- "[base a][bracket [[][attribute label][operator =][string \"Entity A\"][bracket ]]][base ,]",- "[base b][bracket [[][attribute label][operator =][string \"Entity B\"][bracket ]]][base ,]",- "[base c][bracket [[][attribute label][operator =][string \"Entity C\"][bracket ]]][base ;]",- "[base a ][keyword =>>][base b][bracket [[][attribute label][operator =][string \"Hello entity B\"][bracket ]]][base ;]",- "[base a ][keyword <<][base b][bracket [[][attribute label][operator =][string \"Here's an answer dude!\"][base , ][attribute title][operator =][string \"This is a title for this message\"][bracket ]]][base ;]",- "[base c ][keyword :>][base *][bracket [[][attribute label][operator =][string \"What about me?\"][base , ][attribute textcolor][operator =][base red][bracket ]]][base ;]",- "[bracket }]"- );-})();diff --git a/libraries/codemirror/mode/mumps/index.html b/libraries/codemirror/mode/mumps/index.htmldeleted file mode 100644index 9340867eef..0000000000--- a/libraries/codemirror/mode/mumps/index.html+++ /dev/null@@ -1,85 +0,0 @@-<!doctype html>--<title>CodeMirror: MUMPS mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="mumps.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">MUMPS</a>- </ul>-</div>--<article>-<h2>MUMPS mode</h2>---<div><textarea id="code" name="code">- ; Lloyd Milligan- ; 03-30-2015- ;- ; MUMPS support for Code Mirror - Excerpts below from routine ^XUS- ;-CHECKAV(X1) ;Check A/V code return DUZ or Zero. (Called from XUSRB)- N %,%1,X,Y,IEN,DA,DIK- S IEN=0- ;Start CCOW- I $E(X1,1,7)="~~TOK~~" D Q:IEN>0 IEN- . I $E(X1,8,9)="~1" S IEN=$$CHKASH^XUSRB4($E(X1,8,255))- . I $E(X1,8,9)="~2" S IEN=$$CHKCCOW^XUSRB4($E(X1,8,255))- . Q- ;End CCOW- S X1=$$UP(X1) S:X1[":" XUTT=1,X1=$TR(X1,":")- S X=$P(X1,";") Q:X="^" -1 S:XUF %1="Access: "_X- Q:X'?1.20ANP 0- S X=$$EN^XUSHSH(X) I '$D(^VA(200,"A",X)) D LBAV Q 0- S %1="",IEN=$O(^VA(200,"A",X,0)),XUF(.3)=IEN D USER(IEN)- S X=$P(X1,";",2) S:XUF %1="Verify: "_X S X=$$EN^XUSHSH(X)- I $P(XUSER(1),"^",2)'=X D LBAV Q 0- I $G(XUFAC(1)) S DIK="^XUSEC(4,",DA=XUFAC(1) D ^DIK- Q IEN- ;- ; Spell out commands- ;-SET2() ;EF. Return error code (also called from XUSRB)- NEW %,X- SET XUNOW=$$HTFM^XLFDT($H),DT=$P(XUNOW,".")- KILL DUZ,XUSER- SET (DUZ,DUZ(2))=0,(DUZ(0),DUZ("AG"),XUSER(0),XUSER(1),XUTT,%UCI)=""- SET %=$$INHIBIT^XUSRB() IF %>0 QUIT %- SET X=$G(^%ZIS(1,XUDEV,"XUS")),XU1=$G(^(1))- IF $L(X) FOR I=1:1:15 IF $L($P(X,U,I)) SET $P(XOPT,U,I)=$P(X,U,I)- SET DTIME=600- IF '$P(XOPT,U,11),$D(^%ZIS(1,XUDEV,90)),^(90)>2800000,^(90)'>DT QUIT 8- QUIT 0- ;- ; Spell out commands and functions- ;- IF $PIECE(XUSER(0),U,11),$PIECE(XUSER(0),U,11)'>DT QUIT 11 ;Terminated- IF $DATA(DUZ("ASH")) QUIT 0 ;If auto handle, Allow to sign-on p434- IF $PIECE(XUSER(0),U,7) QUIT 5 ;Disuser flag set- IF '$LENGTH($PIECE(XUSER(1),U,2)) QUIT 21 ;p419, p434- Q 0- ;- </textarea></div>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: "mumps",- lineNumbers: true,- lineWrapping: true- });- </script>-- </article>diff --git a/libraries/codemirror/mode/nginx/index.html b/libraries/codemirror/mode/nginx/index.htmldeleted file mode 100644index 7d4ad7e630..0000000000--- a/libraries/codemirror/mode/nginx/index.html+++ /dev/null@@ -1,181 +0,0 @@-<!doctype html>-<head>-<title>CodeMirror: NGINX mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="nginx.js"></script>-<style>.CodeMirror {background: #f8f8f8;}</style>- <link rel="stylesheet" href="../../doc/docs.css">- </head>-- <style>- body {- margin: 0em auto;- }-- .CodeMirror, .CodeMirror-scroll {- height: 600px;- }- </style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">NGINX</a>- </ul>-</div>--<article>-<h2>NGINX mode</h2>-<form><textarea id="code" name="code" style="height: 800px;">-server {- listen 173.255.219.235:80;- server_name website.com.au;- rewrite / $scheme://www.$host$request_uri permanent; ## Forcibly prepend a www-}--server {- listen 173.255.219.235:443;- server_name website.com.au;- rewrite / $scheme://www.$host$request_uri permanent; ## Forcibly prepend a www-}--server {-- listen 173.255.219.235:80;- server_name www.website.com.au;---- root /data/www;- index index.html index.php;-- location / {- index index.html index.php; ## Allow a static html file to be shown first- try_files $uri $uri/ @handler; ## If missing pass the URI to Magento's front handler- expires 30d; ## Assume all files are cachable- }-- ## These locations would be hidden by .htaccess normally- location /app/ { deny all; }- location /includes/ { deny all; }- location /lib/ { deny all; }- location /media/downloadable/ { deny all; }- location /pkginfo/ { deny all; }- location /report/config.xml { deny all; }- location /var/ { deny all; }-- location /var/export/ { ## Allow admins only to view export folder- auth_basic "Restricted"; ## Message shown in login window- auth_basic_user_file /rs/passwords/testfile; ## See /etc/nginx/htpassword- autoindex on;- }-- location /. { ## Disable .htaccess and other hidden files- return 404;- }-- location @handler { ## Magento uses a common front handler- rewrite / /index.php;- }-- location ~ .php/ { ## Forward paths like /js/index.php/x.js to relevant handler- rewrite ^/(.*.php)/ /$1 last;- }-- location ~ \.php$ {- if (!-e $request_filename) { rewrite / /index.php last; } ## Catch 404s that try_files miss-- fastcgi_pass 127.0.0.1:9000;- fastcgi_index index.php;- fastcgi_param PATH_INFO $fastcgi_script_name;- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;- include /rs/confs/nginx/fastcgi_params;- }--}---server {-- listen 173.255.219.235:443;- server_name website.com.au www.website.com.au;-- root /data/www;- index index.html index.php;-- ssl on;- ssl_certificate /rs/ssl/ssl.crt;- ssl_certificate_key /rs/ssl/ssl.key;-- ssl_session_timeout 5m;-- ssl_protocols SSLv2 SSLv3 TLSv1;- ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;- ssl_prefer_server_ciphers on;---- location / {- index index.html index.php; ## Allow a static html file to be shown first- try_files $uri $uri/ @handler; ## If missing pass the URI to Magento's front handler- expires 30d; ## Assume all files are cachable- }-- ## These locations would be hidden by .htaccess normally- location /app/ { deny all; }- location /includes/ { deny all; }- location /lib/ { deny all; }- location /media/downloadable/ { deny all; }- location /pkginfo/ { deny all; }- location /report/config.xml { deny all; }- location /var/ { deny all; }-- location /var/export/ { ## Allow admins only to view export folder- auth_basic "Restricted"; ## Message shown in login window- auth_basic_user_file htpasswd; ## See /etc/nginx/htpassword- autoindex on;- }-- location /. { ## Disable .htaccess and other hidden files- return 404;- }-- location @handler { ## Magento uses a common front handler- rewrite / /index.php;- }-- location ~ .php/ { ## Forward paths like /js/index.php/x.js to relevant handler- rewrite ^/(.*.php)/ /$1 last;- }-- location ~ .php$ { ## Execute PHP scripts- if (!-e $request_filename) { rewrite /index.php last; } ## Catch 404s that try_files miss-- fastcgi_pass 127.0.0.1:9000;- fastcgi_index index.php;- fastcgi_param PATH_INFO $fastcgi_script_name;- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;- include /rs/confs/nginx/fastcgi_params;-- fastcgi_param HTTPS on;- }--}-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-nginx-conf</code>.</p>-- </article>diff --git a/libraries/codemirror/mode/nsis/index.html b/libraries/codemirror/mode/nsis/index.htmldeleted file mode 100644index 4bd73650af..0000000000--- a/libraries/codemirror/mode/nsis/index.html+++ /dev/null@@ -1,80 +0,0 @@-<!doctype html>--<title>CodeMirror: NSIS mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel=stylesheet href=../../lib/codemirror.css>-<script src=../../lib/codemirror.js></script>-<script src="../../addon/mode/simple.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src=nsis.js></script>-<style type=text/css>- .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}-</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">NSIS</a>- </ul>-</div>--<article>-<h2>NSIS mode</h2>---<textarea id=code>-; This is a comment-!ifdef ERROR- !error "Something went wrong"-!endif--OutFile "demo.exe"-RequestExecutionLevel user-SetDetailsPrint listonly--!include "LogicLib.nsh"-!include "WinVer.nsh"--Section -mandatory-- Call logWinVer-- ${If} 1 > 0- MessageBox MB_OK "Hello world"- ${EndIf}--SectionEnd--Function logWinVer-- ${If} ${IsWin10}- DetailPrint "Windows 10!"- ${ElseIf} ${AtLeastWinVista}- DetailPrint "We're post-XP"- ${Else}- DetailPrint "Legacy system"- ${EndIf}--FunctionEnd-</textarea>--<script>- var editor = CodeMirror.fromTextArea(document.getElementById('code'), {- mode: 'nsis',- indentWithTabs: true,- smartIndent: true,- lineNumbers: true,- matchBrackets: true- });-</script>--<p><strong>MIME types defined:</strong> <code>text/x-nsis</code>.</p>-</article>\ No newline at end of filediff --git a/libraries/codemirror/mode/ntriples/index.html b/libraries/codemirror/mode/ntriples/index.htmldeleted file mode 100644index 63a695d527..0000000000--- a/libraries/codemirror/mode/ntriples/index.html+++ /dev/null@@ -1,70 +0,0 @@-<!doctype html>--<title>CodeMirror: N-Triples mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="ntriples.js"></script>-<style>- .CodeMirror {- border: 1px solid #eee;- height: auto;- }- </style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">N-Triples/N-Quads</a>- </ul>-</div>--<article>- <h2><a href="https://www.w3.org/TR/n-triples/">N-Triples</a> mode</h2>- <p>The N-Triples mode also works well with on- <a href="https://www.w3.org/TR/n-quads/">N-Quad</a> documents.- </p>-<form>-<textarea id="ntriples" name="ntriples">-<http://Sub1> <http://pred1> <http://obj> .-<http://Sub2> <http://pred2#an2> "literal 1" .-<http://Sub3#an3> <http://pred3> _:bnode3 .-_:bnode4 <http://pred4> "literal 2"@lang .-_:bnode5 <http://pred5> "literal 3"^^<http://type> .-</textarea>-</form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("ntriples"), {});- </script>- <p><strong>MIME types defined:</strong> <code>application/n-triples</code>.</p>-- <hr />- <p><a href="https://www.w3.org/TR/n-quads/">N-Quads</a> add a fourth- element to the statement to track which graph the statement is from.- Otherwise, it's identical to N-Triples.</p>- <form>- <textarea id="nquads" name="nquads">-- <http://Sub1> <http://pred1> <http://obj> <http://graph3> .- <http://Sub2> <http://pred2#an2> "literal 1" <http://graph2> .- <http://Sub3#an3> <http://pred3> _:bnode3 <http://graph2> .- _:bnode4 <http://pred4> "literal 2"@lang <http://graph2> .- # if a graph labe- _:bnode5 <http://pred5> "literal 3"^^<http://type> .- </textarea>- </form>-- <script>- var nquads_editor = CodeMirror.fromTextArea(document.getElementById("nquads"), {});- </script>- <p><strong>MIME types defined:</strong> <code>application/n-quads</code>.</p>- </article>diff --git a/libraries/codemirror/mode/octave/index.html b/libraries/codemirror/mode/octave/index.htmldeleted file mode 100644index 698ae7df92..0000000000--- a/libraries/codemirror/mode/octave/index.html+++ /dev/null@@ -1,84 +0,0 @@-<!doctype html>--<title>CodeMirror: Octave mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="octave.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Octave</a>- </ul>-</div>--<article>-<h2>Octave mode</h2>-- <div><textarea id="code" name="code">-%numbers-[1234 1234i 1234j]-[.234 .234j 2.23i]-[23e2 12E1j 123D-4 0x234]--%strings-'asda''a'-"asda""a"--%identifiers-a + as123 - __asd__--%operators---+-=-==->-<->=-<=-&-~-...-break zeros default margin round ones rand-ceil floor size clear zeros eye mean std cov-error eval function-abs acos atan asin cos cosh exp log prod sum-log10 max min sign sin sinh sqrt tan reshape-return-case switch-else elseif end if otherwise-do for while-try catch-classdef properties events methods-global persistent--%one line comment-%{ multi-line comment %}-- </textarea></div>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: {name: "octave",- version: 2,- singleLineStringErrors: false},- lineNumbers: true,- indentUnit: 4,- matchBrackets: true- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-octave</code>.</p>-</article>diff --git a/libraries/codemirror/mode/oz/index.html b/libraries/codemirror/mode/oz/index.htmldeleted file mode 100644index fb9df83e1a..0000000000--- a/libraries/codemirror/mode/oz/index.html+++ /dev/null@@ -1,59 +0,0 @@-<!doctype html>--<title>CodeMirror: Oz mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="oz.js"></script>-<script src="../../addon/runmode/runmode.js"></script>-<style>- .CodeMirror {border: 1px solid #aaa;}-</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Oz</a>- </ul>-</div>--<article>-<h2>Oz mode</h2>-<textarea id="code" name="code">-declare-fun {Ints N Max}- if N == Max then nil- else- {Delay 1000}- N|{Ints N+1 Max}- end-end--fun {Sum S Stream}- case Stream of nil then S- [] H|T then S|{Sum H+S T} end-end--local X Y in- thread X = {Ints 0 1000} end- thread Y = {Sum 0 X} end- {Browse Y}-end-</textarea>-<p>MIME type defined: <code>text/x-oz</code>.</p>--<script>-var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- mode: "text/x-oz",- readOnly: false-});-</script>-</article>diff --git a/libraries/codemirror/mode/pascal/index.html b/libraries/codemirror/mode/pascal/index.htmldeleted file mode 100644index f0c49f4708..0000000000--- a/libraries/codemirror/mode/pascal/index.html+++ /dev/null@@ -1,61 +0,0 @@-<!doctype html>--<title>CodeMirror: Pascal mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="pascal.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Pascal</a>- </ul>-</div>--<article>-<h2>Pascal mode</h2>---<div><textarea id="code" name="code">-(* Example Pascal code *)--while a <> b do writeln('Waiting');--if a > b then- writeln('Condition met')-else- writeln('Condition not met');--for i := 1 to 10 do- writeln('Iteration: ', i:1);--repeat- a := a + 1-until a = 10;--case i of- 0: write('zero');- 1: write('one');- 2: write('two')-end;-</textarea></div>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- mode: "text/x-pascal"- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-pascal</code>.</p>- </article>diff --git a/libraries/codemirror/mode/pegjs/index.html b/libraries/codemirror/mode/pegjs/index.htmldeleted file mode 100644index 9d452aa9cc..0000000000--- a/libraries/codemirror/mode/pegjs/index.html+++ /dev/null@@ -1,66 +0,0 @@-<!doctype html>-<html>- <head>- <title>CodeMirror: PEG.js Mode</title>- <meta charset="utf-8"/>- <link rel=stylesheet href="../../doc/docs.css">-- <link rel="stylesheet" href="../../lib/codemirror.css">- <script src="../../lib/codemirror.js"></script>- <script src="../javascript/javascript.js"></script>- <script src="pegjs.js"></script>- <style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>- </head>- <body>- <div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">PEG.js Mode</a>- </ul>- </div>-- <article>- <h2>PEG.js Mode</h2>- <form><textarea id="code" name="code">-/*- * Classic example grammar, which recognizes simple arithmetic expressions like- * "2*(3+4)". The parser generated from this grammar then computes their value.- */--start- = additive--additive- = left:multiplicative "+" right:additive { return left + right; }- / multiplicative--multiplicative- = left:primary "*" right:multiplicative { return left * right; }- / primary--primary- = integer- / "(" additive:additive ")" { return additive; }--integer "integer"- = digits:[0-9]+ { return parseInt(digits.join(""), 10); }--letter = [a-z]+</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: {name: "pegjs"},- lineNumbers: true- });- </script>- <h3>The PEG.js Mode</h3>- <p> Created by Forbes Lindesay.</p>- </article>- </body>-</html>diff --git a/libraries/codemirror/mode/perl/index.html b/libraries/codemirror/mode/perl/index.htmldeleted file mode 100644index 901718a4c5..0000000000--- a/libraries/codemirror/mode/perl/index.html+++ /dev/null@@ -1,75 +0,0 @@-<!doctype html>--<title>CodeMirror: Perl mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="perl.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Perl</a>- </ul>-</div>--<article>-<h2>Perl mode</h2>---<div><textarea id="code" name="code">-#!/usr/bin/perl--use Something qw(func1 func2);--# strings-my $s1 = qq'single line';-our $s2 = q(multi-- line);--=item Something- Example.-=cut--my $html=<<'HTML'-<html>-<title>hi!</title>-</html>-HTML--print "first,".join(',', 'second', qq~third~);--if($s1 =~ m[(?<!\s)(l.ne)\z]o) {- $h->{$1}=$$.' predefined variables';- $s2 =~ s/\-line//ox;- $s1 =~ s[- line ]- [- block- ]ox;-}--1; # numbers and comments--__END__-something...--</textarea></div>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-perl</code>.</p>- </article>diff --git a/libraries/codemirror/mode/php/index.html b/libraries/codemirror/mode/php/index.htmldeleted file mode 100644index 689764146a..0000000000--- a/libraries/codemirror/mode/php/index.html+++ /dev/null@@ -1,64 +0,0 @@-<!doctype html>--<title>CodeMirror: PHP mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="../htmlmixed/htmlmixed.js"></script>-<script src="../xml/xml.js"></script>-<script src="../javascript/javascript.js"></script>-<script src="../css/css.js"></script>-<script src="../clike/clike.js"></script>-<script src="php.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">PHP</a>- </ul>-</div>--<article>-<h2>PHP mode</h2>-<form><textarea id="code" name="code">-<?php-$a = array('a' => 1, 'b' => 2, 3 => 'c');--echo "$a[a] ${a[3] /* } comment */} {$a[b]} \$a[a]";--function hello($who) {- return "Hello $who!";-}-?>-<p>The program says <?= hello("World") ?>.</p>-<script>- alert("And here is some JS code"); // also colored-</script>-</textarea></form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- matchBrackets: true,- mode: "application/x-httpd-php",- indentUnit: 4,- indentWithTabs: true- });- </script>-- <p>Simple HTML/PHP mode based on- the <a href="../clike/">C-like</a> mode. Depends on XML,- JavaScript, CSS, HTMLMixed, and C-like modes.</p>-- <p><strong>MIME types defined:</strong> <code>application/x-httpd-php</code> (HTML with PHP code), <code>text/x-php</code> (plain, non-wrapped PHP code).</p>- </article>diff --git a/libraries/codemirror/mode/php/test.js b/libraries/codemirror/mode/php/test.jsdeleted file mode 100644index ec158145ce..0000000000--- a/libraries/codemirror/mode/php/test.js+++ /dev/null@@ -1,154 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({indentUnit: 2}, "php");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }-- MT('simple_test',- '[meta <?php] ' +- '[keyword echo] [string "aaa"]; ' +- '[meta ?>]');-- MT('variable_interpolation_non_alphanumeric',- '[meta <?php]',- '[keyword echo] [string "aaa$~$!$@$#$$$%$^$&$*$($)$.$<$>$/$\\$}$\\\"$:$;$?$|$[[$]]$+$=aaa"]',- '[meta ?>]');-- MT('variable_interpolation_digits',- '[meta <?php]',- '[keyword echo] [string "aaa$1$2$3$4$5$6$7$8$9$0aaa"]',- '[meta ?>]');-- MT('variable_interpolation_simple_syntax_1',- '[meta <?php]',- '[keyword echo] [string "aaa][variable-2 $aaa][string .aaa"];',- '[meta ?>]');-- MT('variable_interpolation_simple_syntax_2',- '[meta <?php]',- '[keyword echo] [string "][variable-2 $aaaa][[','[number 2]', ']][string aa"];',- '[keyword echo] [string "][variable-2 $aaaa][[','[number 2345]', ']][string aa"];',- '[keyword echo] [string "][variable-2 $aaaa][[','[number 2.3]', ']][string aa"];',- '[keyword echo] [string "][variable-2 $aaaa][[','[variable aaaaa]', ']][string aa"];',- '[keyword echo] [string "][variable-2 $aaaa][[','[variable-2 $aaaaa]',']][string aa"];',-- '[keyword echo] [string "1aaa][variable-2 $aaaa][[','[number 2]', ']][string aa"];',- '[keyword echo] [string "aaa][variable-2 $aaaa][[','[number 2345]', ']][string aa"];',- '[keyword echo] [string "aaa][variable-2 $aaaa][[','[number 2.3]', ']][string aa"];',- '[keyword echo] [string "aaa][variable-2 $aaaa][[','[variable aaaaa]', ']][string aa"];',- '[keyword echo] [string "aaa][variable-2 $aaaa][[','[variable-2 $aaaaa]',']][string aa"];',- '[meta ?>]');-- MT('variable_interpolation_simple_syntax_3',- '[meta <?php]',- '[keyword echo] [string "aaa][variable-2 $aaaa]->[variable aaaaa][string .aaaaaa"];',- '[keyword echo] [string "aaa][variable-2 $aaaa][string ->][variable-2 $aaaaa][string .aaaaaa"];',- '[keyword echo] [string "aaa][variable-2 $aaaa]->[variable aaaaa][string [[2]].aaaaaa"];',- '[keyword echo] [string "aaa][variable-2 $aaaa]->[variable aaaaa][string ->aaaa2.aaaaaa"];',- '[meta ?>]');-- MT('variable_interpolation_escaping',- '[meta <?php] [comment /* Escaping */]',- '[keyword echo] [string "aaa\\$aaaa->aaa.aaa"];',- '[keyword echo] [string "aaa\\$aaaa[[2]]aaa.aaa"];',- '[keyword echo] [string "aaa\\$aaaa[[asd]]aaa.aaa"];',- '[keyword echo] [string "aaa{\\$aaaa->aaa.aaa"];',- '[keyword echo] [string "aaa{\\$aaaa[[2]]aaa.aaa"];',- '[keyword echo] [string "aaa{\\aaaaa[[asd]]aaa.aaa"];',- '[keyword echo] [string "aaa\\${aaaa->aaa.aaa"];',- '[keyword echo] [string "aaa\\${aaaa[[2]]aaa.aaa"];',- '[keyword echo] [string "aaa\\${aaaa[[asd]]aaa.aaa"];',- '[meta ?>]');-- MT('variable_interpolation_complex_syntax_1',- '[meta <?php]',- '[keyword echo] [string "aaa][variable-2 $]{[variable aaaa]}[string ->aaa.aaa"];',- '[keyword echo] [string "aaa][variable-2 $]{[variable-2 $aaaa]}[string ->aaa.aaa"];',- '[keyword echo] [string "aaa][variable-2 $]{[variable-2 $aaaa][[',' [number 42]',']]}[string ->aaa.aaa"];',- '[keyword echo] [string "aaa][variable-2 $]{[variable aaaa][meta ?>]aaaaaa');-- MT('variable_interpolation_complex_syntax_2',- '[meta <?php] [comment /* Monsters */]',- '[keyword echo] [string "][variable-2 $]{[variable aaa][comment /*}?>} $aaa<?php } */]}[string ->aaa.aaa"];',- '[keyword echo] [string "][variable-2 $]{[variable aaa][comment /*}?>*/][[',' [string "aaa][variable-2 $aaa][string {}][variable-2 $]{[variable aaa]}[string "]',']]}[string ->aaa.aaa"];',- '[keyword echo] [string "][variable-2 $]{[variable aaa][comment /*} } $aaa } */]}[string ->aaa.aaa"];');--- function build_recursive_monsters(nt, t, n){- var monsters = [t];- for (var i = 1; i <= n; ++i)- monsters[i] = nt.join(monsters[i - 1]);- return monsters;- }-- var m1 = build_recursive_monsters(- ['[string "][variable-2 $]{[variable aaa] [operator +] ', '}[string "]'],- '[comment /* }?>} */] [string "aaa][variable-2 $aaa][string .aaa"]',- 10- );-- MT('variable_interpolation_complex_syntax_3_1',- '[meta <?php] [comment /* Recursive monsters */]',- '[keyword echo] ' + m1[4] + ';',- '[keyword echo] ' + m1[7] + ';',- '[keyword echo] ' + m1[8] + ';',- '[keyword echo] ' + m1[5] + ';',- '[keyword echo] ' + m1[1] + ';',- '[keyword echo] ' + m1[6] + ';',- '[keyword echo] ' + m1[9] + ';',- '[keyword echo] ' + m1[0] + ';',- '[keyword echo] ' + m1[10] + ';',- '[keyword echo] ' + m1[2] + ';',- '[keyword echo] ' + m1[3] + ';',- '[keyword echo] [string "end"];',- '[meta ?>]');-- var m2 = build_recursive_monsters(- ['[string "a][variable-2 $]{[variable aaa] [operator +] ', ' [operator +] ', '}[string .a"]'],- '[comment /* }?>{{ */] [string "a?>}{{aa][variable-2 $aaa][string .a}a?>a"]',- 5- );-- MT('variable_interpolation_complex_syntax_3_2',- '[meta <?php] [comment /* Recursive monsters 2 */]',- '[keyword echo] ' + m2[0] + ';',- '[keyword echo] ' + m2[1] + ';',- '[keyword echo] ' + m2[5] + ';',- '[keyword echo] ' + m2[4] + ';',- '[keyword echo] ' + m2[2] + ';',- '[keyword echo] ' + m2[3] + ';',- '[keyword echo] [string "end"];',- '[meta ?>]');-- function build_recursive_monsters_2(mf1, mf2, nt, t, n){- var monsters = [t];- for (var i = 1; i <= n; ++i)- monsters[i] = nt[0] + mf1[i - 1] + nt[1] + mf2[i - 1] + nt[2] + monsters[i - 1] + nt[3];- return monsters;- }-- var m3 = build_recursive_monsters_2(- m1,- m2,- ['[string "a][variable-2 $]{[variable aaa] [operator +] ', ' [operator +] ', ' [operator +] ', '}[string .a"]'],- '[comment /* }?>{{ */] [string "a?>}{{aa][variable-2 $aaa][string .a}a?>a"]',- 4- );-- MT('variable_interpolation_complex_syntax_3_3',- '[meta <?php] [comment /* Recursive monsters 2 */]',- '[keyword echo] ' + m3[4] + ';',- '[keyword echo] ' + m3[0] + ';',- '[keyword echo] ' + m3[3] + ';',- '[keyword echo] ' + m3[1] + ';',- '[keyword echo] ' + m3[2] + ';',- '[keyword echo] [string "end"];',- '[meta ?>]');-- MT("variable_interpolation_heredoc",- "[meta <?php]",- "[string <<<here]",- "[string doc ][variable-2 $]{[variable yay]}[string more]",- "[string here]; [comment // normal]");-})();diff --git a/libraries/codemirror/mode/pig/index.html b/libraries/codemirror/mode/pig/index.htmldeleted file mode 100644index 80fed6e1c0..0000000000--- a/libraries/codemirror/mode/pig/index.html+++ /dev/null@@ -1,53 +0,0 @@-<!doctype html>-<title>CodeMirror: Pig Latin mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="pig.js"></script>-<style>.CodeMirror {border: 2px inset #dee;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Pig Latin</a>- </ul>-</div>--<article>-<h2>Pig Latin mode</h2>-<form><textarea id="code" name="code">--- Apache Pig (Pig Latin Language) Demo-/*-This is a multiline comment.-*/-a = LOAD "\path\to\input" USING PigStorage('\t') AS (x:long, y:chararray, z:bytearray);-b = GROUP a BY (x,y,3+4);-c = FOREACH b GENERATE flatten(group) as (x,y), SUM(group.$2) as z;-STORE c INTO "\path\to\output";-----</textarea></form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- indentUnit: 4,- mode: "text/x-pig"- });- </script>-- <p>- Simple mode that handles Pig Latin language.- </p>-- <p><strong>MIME type defined:</strong> <code>text/x-pig</code>- (PIG code)-</article>diff --git a/libraries/codemirror/mode/powershell/index.html b/libraries/codemirror/mode/powershell/index.htmldeleted file mode 100644index 81c050a815..0000000000--- a/libraries/codemirror/mode/powershell/index.html+++ /dev/null@@ -1,205 +0,0 @@-<!doctype html>-<html>- <head>- <meta charset="utf-8">- <title>CodeMirror: Powershell mode</title>- <link rel="stylesheet" href="../../doc/docs.css">- <link rel="stylesheet" href="../../lib/codemirror.css">- <script src="../../lib/codemirror.js"></script>- <script src="../../addon/edit/matchbrackets.js"></script>- <script src="powershell.js"></script>- <style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>- </head>- <body>- <div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">JavaScript</a>- </ul>- </div>- <article>- <h2>PowerShell mode</h2>-- <div><textarea id="code" name="code">-# Number Literals-0 12345-12kb 12mb 12gB 12Tb 12PB 12L 12D 12lkb 12dtb-1.234 1.234e56 1. 1.e2 .2 .2e34-1.2MB 1.kb .1dTb 1.e1gb-0x1 0xabcdef 0x3tb 0xelmb--# String Literals-'Literal escaping'''-'Literal $variable'-"Escaping 1`""-"Escaping 2"""-"Escaped `$variable"-"Text, $variable and more text"-"Text, ${variable with spaces} and more text."-"Text, $($expression + 3) and more text."-"Text, $("interpolation $("inception")") and more text."--@"-Multiline-string-"@-# ---@"-Multiline-string with quotes "'-"@-# ---@'-Multiline literal-string with quotes "'-'@--# Array and Hash literals-@( 'a','b','c' )-@{ 'key': 'value' }--# Variables-$Variable = 5-$global:variable = 5-${Variable with spaces} = 5--# Operators-= += -= *= /= %=-++ -- .. -f * / % + ---not ! -bnot--split -isplit -csplit--join--is -isnot -as--eq -ieq -ceq -ne -ine -cne--gt -igt -cgt -ge -ige -cge--lt -ilt -clt -le -ile -cle--like -ilike -clike -notlike -inotlike -cnotlike--match -imatch -cmatch -notmatch -inotmatch -cnotmatch--contains -icontains -ccontains -notcontains -inotcontains -cnotcontains--replace -ireplace -creplace--band -bor -bxor--and -or -xor--# Punctuation-() [] {} , : ` = ; .--# Keywords-elseif begin function for foreach return else trap while do data dynamicparam-until end break if throw param continue finally in switch exit filter from try-process catch--# Built-in variables-$$ $? $^ $_-$args $ConfirmPreference $ConsoleFileName $DebugPreference $Error-$ErrorActionPreference $ErrorView $ExecutionContext $false $FormatEnumerationLimit-$HOME $Host $input $MaximumAliasCount $MaximumDriveCount $MaximumErrorCount-$MaximumFunctionCount $MaximumHistoryCount $MaximumVariableCount $MyInvocation-$NestedPromptLevel $null $OutputEncoding $PID $PROFILE $ProgressPreference-$PSBoundParameters $PSCommandPath $PSCulture $PSDefaultParameterValues-$PSEmailServer $PSHOME $PSScriptRoot $PSSessionApplicationName-$PSSessionConfigurationName $PSSessionOption $PSUICulture $PSVersionTable $PWD-$ShellId $StackTrace $true $VerbosePreference $WarningPreference $WhatIfPreference-$true $false $null--# Built-in functions-A:-Add-Computer Add-Content Add-History Add-Member Add-PSSnapin Add-Type-B:-C:-Checkpoint-Computer Clear-Content Clear-EventLog Clear-History Clear-Host Clear-Item-Clear-ItemProperty Clear-Variable Compare-Object Complete-Transaction Connect-PSSession-ConvertFrom-Csv ConvertFrom-Json ConvertFrom-SecureString ConvertFrom-StringData-Convert-Path ConvertTo-Csv ConvertTo-Html ConvertTo-Json ConvertTo-SecureString-ConvertTo-Xml Copy-Item Copy-ItemProperty-D:-Debug-Process Disable-ComputerRestore Disable-PSBreakpoint Disable-PSRemoting-Disable-PSSessionConfiguration Disconnect-PSSession-E:-Enable-ComputerRestore Enable-PSBreakpoint Enable-PSRemoting Enable-PSSessionConfiguration-Enter-PSSession Exit-PSSession Export-Alias Export-Clixml Export-Console Export-Counter-Export-Csv Export-FormatData Export-ModuleMember Export-PSSession-F:-ForEach-Object Format-Custom Format-List Format-Table Format-Wide-G:-Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command Get-ComputerRestorePoint-Get-Content Get-ControlPanelItem Get-Counter Get-Credential Get-Culture Get-Date-Get-Event Get-EventLog Get-EventSubscriber Get-ExecutionPolicy Get-FormatData Get-Help-Get-History Get-Host Get-HotFix Get-Item Get-ItemProperty Get-Job Get-Location Get-Member-Get-Module Get-PfxCertificate Get-Process Get-PSBreakpoint Get-PSCallStack Get-PSDrive-Get-PSProvider Get-PSSession Get-PSSessionConfiguration Get-PSSnapin Get-Random Get-Service-Get-TraceSource Get-Transaction Get-TypeData Get-UICulture Get-Unique Get-Variable Get-Verb-Get-WinEvent Get-WmiObject Group-Object-H:-help-I:-Import-Alias Import-Clixml Import-Counter Import-Csv Import-LocalizedData Import-Module-Import-PSSession ImportSystemModules Invoke-Command Invoke-Expression Invoke-History-Invoke-Item Invoke-RestMethod Invoke-WebRequest Invoke-WmiMethod-J:-Join-Path-K:-L:-Limit-EventLog-M:-Measure-Command Measure-Object mkdir more Move-Item Move-ItemProperty-N:-New-Alias New-Event New-EventLog New-Item New-ItemProperty New-Module New-ModuleManifest-New-Object New-PSDrive New-PSSession New-PSSessionConfigurationFile New-PSSessionOption-New-PSTransportOption New-Service New-TimeSpan New-Variable New-WebServiceProxy-New-WinEvent-O:-oss Out-Default Out-File Out-GridView Out-Host Out-Null Out-Printer Out-String-P:-Pause Pop-Location prompt Push-Location-Q:-R:-Read-Host Receive-Job Receive-PSSession Register-EngineEvent Register-ObjectEvent-Register-PSSessionConfiguration Register-WmiEvent Remove-Computer Remove-Event-Remove-EventLog Remove-Item Remove-ItemProperty Remove-Job Remove-Module-Remove-PSBreakpoint Remove-PSDrive Remove-PSSession Remove-PSSnapin Remove-TypeData-Remove-Variable Remove-WmiObject Rename-Computer Rename-Item Rename-ItemProperty-Reset-ComputerMachinePassword Resolve-Path Restart-Computer Restart-Service-Restore-Computer Resume-Job Resume-Service-S:-Save-Help Select-Object Select-String Select-Xml Send-MailMessage Set-Acl Set-Alias-Set-AuthenticodeSignature Set-Content Set-Date Set-ExecutionPolicy Set-Item-Set-ItemProperty Set-Location Set-PSBreakpoint Set-PSDebug-Set-PSSessionConfiguration Set-Service Set-StrictMode Set-TraceSource Set-Variable-Set-WmiInstance Show-Command Show-ControlPanelItem Show-EventLog Sort-Object-Split-Path Start-Job Start-Process Start-Service Start-Sleep Start-Transaction-Start-Transcript Stop-Computer Stop-Job Stop-Process Stop-Service Stop-Transcript-Suspend-Job Suspend-Service-T:-TabExpansion2 Tee-Object Test-ComputerSecureChannel Test-Connection-Test-ModuleManifest Test-Path Test-PSSessionConfigurationFile Trace-Command-U:-Unblock-File Undo-Transaction Unregister-Event Unregister-PSSessionConfiguration-Update-FormatData Update-Help Update-List Update-TypeData Use-Transaction-V:-W:-Wait-Event Wait-Job Wait-Process Where-Object Write-Debug Write-Error Write-EventLog-Write-Host Write-Output Write-Progress Write-Verbose Write-Warning-X:-Y:-Z:</textarea></div>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: "powershell",- lineNumbers: true,- indentUnit: 4,- tabMode: "shift",- matchBrackets: true- });- </script>-- <p><strong>MIME types defined:</strong> <code>application/x-powershell</code>.</p>- </article>- </body>-</html>diff --git a/libraries/codemirror/mode/powershell/test.js b/libraries/codemirror/mode/powershell/test.jsdeleted file mode 100644index ba1ecf194d..0000000000--- a/libraries/codemirror/mode/powershell/test.js+++ /dev/null@@ -1,74 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({indentUnit: 2}, "powershell");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }-- function forEach(arr, f) { for (var i = 0; i < arr.length; i++) f(arr[i], i) }-- MT('comment', '[number 1][comment # A]');- MT('comment_multiline', '[number 1][comment <#]',- '[comment ABC]',- '[comment #>][number 2]');-- forEach([- '0', '1234',- '12kb', '12mb', '12Gb', '12Tb', '12PB', '12L', '12D', '12lkb', '12dtb',- '1.234', '1.234e56', '1.', '1.e2', '.2', '.2e34',- '1.2MB', '1.kb', '.1dTB', '1.e1gb', '.2', '.2e34',- '0x1', '0xabcdef', '0x3tb', '0xelmb'- ], function(number) {- MT("number_" + number, "[number " + number + "]");- });-- MT('string_literal_escaping', "[string 'a''']");- MT('string_literal_variable', "[string 'a $x']");- MT('string_escaping_1', '[string "a `""]');- MT('string_escaping_2', '[string "a """]');- MT('string_variable_escaping', '[string "a `$x"]');- MT('string_variable', '[string "a ][variable-2 $x][string b"]');- MT('string_variable_spaces', '[string "a ][variable-2 ${x y}][string b"]');- MT('string_expression', '[string "a ][punctuation $(][variable-2 $x][operator +][number 3][punctuation )][string b"]');- MT('string_expression_nested', '[string "A][punctuation $(][string "a][punctuation $(][string "w"][punctuation )][string b"][punctuation )][string B"]');-- MT('string_heredoc', '[string @"]',- '[string abc]',- '[string "@]');- MT('string_heredoc_quotes', '[string @"]',- '[string abc "\']',- '[string "@]');- MT('string_heredoc_variable', '[string @"]',- '[string a ][variable-2 $x][string b]',- '[string "@]');- MT('string_heredoc_nested_string', '[string @"]',- '[string a][punctuation $(][string "w"][punctuation )][string b]',- '[string "@]');- MT('string_heredoc_literal_quotes', "[string @']",- '[string abc "\']',- "[string '@]");-- MT('array', "[punctuation @(][string 'a'][punctuation ,][string 'b'][punctuation )]");- MT('hash', "[punctuation @{][string 'key'][operator :][string 'value'][punctuation }]");-- MT('variable', "[variable-2 $test]");- MT('variable_global', "[variable-2 $global:test]");- MT('variable_spaces', "[variable-2 ${test test}]");- MT('operator_splat', "[variable-2 @x]");- MT('variable_builtin', "[builtin $ErrorActionPreference]");- MT('variable_builtin_symbols', "[builtin $$]");-- MT('operator', "[operator +]");- MT('operator_unary', "[operator +][number 3]");- MT('operator_long', "[operator -match]");-- forEach([- '(', ')', '[[', ']]', '{', '}', ',', '`', ';', '.'- ], function(punctuation) {- MT("punctuation_" + punctuation.replace(/^[\[\]]/,''), "[punctuation " + punctuation + "]");- });-- MT('keyword', "[keyword if]");-- MT('call_builtin', "[builtin Get-ChildItem]");-})();diff --git a/libraries/codemirror/mode/properties/index.html b/libraries/codemirror/mode/properties/index.htmldeleted file mode 100644index eb49f92914..0000000000--- a/libraries/codemirror/mode/properties/index.html+++ /dev/null@@ -1,53 +0,0 @@-<!doctype html>--<title>CodeMirror: Properties files mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="properties.js"></script>-<style>.CodeMirror {border-top: 1px solid #ddd; border-bottom: 1px solid #ddd;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Properties files</a>- </ul>-</div>--<article>-<h2>Properties files mode</h2>-<form><textarea id="code" name="code">-# This is a properties file-a.key = A value-another.key = http://example.com-! Exclamation mark as comment-but.not=Within ! A value # indeed- # Spaces at the beginning of a line- spaces.before.key=value-backslash=Used for multi\- line entries,\- that's convenient.-# Unicode sequences-unicode.key=This is \u0020 Unicode-no.multiline=here-# Colons-colons : can be used too-# Spaces-spaces\ in\ keys=Not very common...-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-properties</code>,- <code>text/x-ini</code>.</p>-- </article>diff --git a/libraries/codemirror/mode/protobuf/index.html b/libraries/codemirror/mode/protobuf/index.htmldeleted file mode 100644index ee58cd9a46..0000000000--- a/libraries/codemirror/mode/protobuf/index.html+++ /dev/null@@ -1,104 +0,0 @@-<!doctype html>--<title>CodeMirror: ProtoBuf mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="protobuf.js"></script>-<style>.CodeMirror { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">ProtoBuf</a>- </ul>-</div>--<article>-<h2>ProtoBuf mode</h2>-<form><textarea id="code" name="code">-package addressbook;--message Address {- required string street = 1;- required string postCode = 2;-}--message PhoneNumber {- required string number = 1;-}--message Person {- optional int32 id = 1;- required string name = 2;- required string surname = 3;- optional Address address = 4;- repeated PhoneNumber phoneNumbers = 5;- optional uint32 age = 6;- repeated uint32 favouriteNumbers = 7;- optional string license = 8;- enum Gender {- MALE = 0;- FEMALE = 1;- }- optional Gender gender = 9;- optional fixed64 lastUpdate = 10;- required bool deleted = 11 [default = false];-}--</textarea>- <textarea id="code2" name="code2">-syntax = "proto3";-package tutorial;--import "google/protobuf/timestamp.proto";-option java_package = "com.example.tutorial";-option java_outer_classname = "AddressBookProtos";-option csharp_namespace = "Google.Protobuf.Examples.AddressBook";--message Person {- string name = 1;- int32 id = 2; // Unique ID number for this person.- string email = 3;-- enum PhoneType {- MOBILE = 0;- HOME = 1;- WORK = 2;- }-- message PhoneNumber {- string number = 1;- PhoneType type = 2;- }-- repeated PhoneNumber phones = 4;-- google.protobuf.Timestamp last_updated = 5;-}--// Our address book file is just one of these.-message AddressBook {- repeated Person people = 1;-}-service Test {- rpc SayHello (HelloRequest) returns (HelloReply) {}- rpc SayHelloAgain (HelloRequest) returns (HelloReply) {}-}</textarea>-</form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});- var editor = CodeMirror.fromTextArea(document.getElementById("code2"), {});- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-protobuf</code>.</p>-- </article>diff --git a/libraries/codemirror/mode/pug/index.html b/libraries/codemirror/mode/pug/index.htmldeleted file mode 100644index dfc8968dbc..0000000000--- a/libraries/codemirror/mode/pug/index.html+++ /dev/null@@ -1,70 +0,0 @@-<!doctype html>--<title>CodeMirror: Pug Templating Mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../javascript/javascript.js"></script>-<script src="../css/css.js"></script>-<script src="../xml/xml.js"></script>-<script src="../htmlmixed/htmlmixed.js"></script>-<script src="pug.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Pug Templating Mode</a>- </ul>-</div>--<article>-<h2>Pug Templating Mode</h2>-<form><textarea id="code" name="code">-doctype html- html- head- title= "Pug Templating CodeMirror Mode Example"- link(rel='stylesheet', href='/css/bootstrap.min.css')- link(rel='stylesheet', href='/css/index.css')- script(type='text/javascript', src='/js/jquery-1.9.1.min.js')- script(type='text/javascript', src='/js/bootstrap.min.js')- body- div.header- h1 Welcome to this Example- div.spots- if locals.spots- each spot in spots- div.spot.well- div- if spot.logo- img.img-rounded.logo(src=spot.logo)- else- img.img-rounded.logo(src="img/placeholder.png")- h3- a(href=spot.hash) ##{spot.hash}- if spot.title- span.title #{spot.title}- if spot.desc- div #{spot.desc}- else- h3 There are no spots currently available.-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: {name: "pug", alignCDATA: true},- lineNumbers: true- });- </script>- <h3>The Pug Templating Mode</h3>- <p> Created by Forbes Lindesay. Managed as part of a Brackets extension at <a href="https://github.com/ForbesLindesay/jade-brackets">https://github.com/ForbesLindesay/jade-brackets</a>.</p>- <p><strong>MIME type defined:</strong> <code>text/x-pug</code>, <code>text/x-jade</code>.</p>- </article>diff --git a/libraries/codemirror/mode/puppet/index.html b/libraries/codemirror/mode/puppet/index.htmldeleted file mode 100644index 757377b1d2..0000000000--- a/libraries/codemirror/mode/puppet/index.html+++ /dev/null@@ -1,121 +0,0 @@-<!doctype html>--<title>CodeMirror: Puppet mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="puppet.js"></script>-<style>- .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}- .cm-s-default span.cm-arrow { color: red; }- </style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Puppet</a>- </ul>-</div>--<article>-<h2>Puppet mode</h2>-<form><textarea id="code" name="code">-# == Class: automysqlbackup-#-# Puppet module to install AutoMySQLBackup for periodic MySQL backups.-#-# class { 'automysqlbackup':-# backup_dir => '/mnt/backups',-# }-#--class automysqlbackup (- $bin_dir = $automysqlbackup::params::bin_dir,- $etc_dir = $automysqlbackup::params::etc_dir,- $backup_dir = $automysqlbackup::params::backup_dir,- $install_multicore = undef,- $config = {},- $config_defaults = {},-) inherits automysqlbackup::params {--# Ensure valid paths are assigned- validate_absolute_path($bin_dir)- validate_absolute_path($etc_dir)- validate_absolute_path($backup_dir)--# Create a subdirectory in /etc for config files- file { $etc_dir:- ensure => directory,- owner => 'root',- group => 'root',- mode => '0750',- }--# Create an example backup file, useful for reference- file { "${etc_dir}/automysqlbackup.conf.example":- ensure => file,- owner => 'root',- group => 'root',- mode => '0660',- source => 'puppet:///modules/automysqlbackup/automysqlbackup.conf',- }--# Add files from the developer- file { "${etc_dir}/AMB_README":- ensure => file,- source => 'puppet:///modules/automysqlbackup/AMB_README',- }- file { "${etc_dir}/AMB_LICENSE":- ensure => file,- source => 'puppet:///modules/automysqlbackup/AMB_LICENSE',- }--# Install the actual binary file- file { "${bin_dir}/automysqlbackup":- ensure => file,- owner => 'root',- group => 'root',- mode => '0755',- source => 'puppet:///modules/automysqlbackup/automysqlbackup',- }--# Create the base backup directory- file { $backup_dir:- ensure => directory,- owner => 'root',- group => 'root',- mode => '0755',- }--# If you'd like to keep your config in hiera and pass it to this class- if !empty($config) {- create_resources('automysqlbackup::backup', $config, $config_defaults)- }--# If using RedHat family, must have the RPMforge repo's enabled- if $install_multicore {- package { ['pigz', 'pbzip2']: ensure => installed }- }--}-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: "text/x-puppet",- matchBrackets: true,- indentUnit: 4- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-puppet</code>.</p>-- </article>diff --git a/libraries/codemirror/mode/python/index.html b/libraries/codemirror/mode/python/index.htmldeleted file mode 100644index 90ee324a21..0000000000--- a/libraries/codemirror/mode/python/index.html+++ /dev/null@@ -1,207 +0,0 @@-<!doctype html>--<title>CodeMirror: Python mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="python.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Python</a>- </ul>-</div>--<article>-<h2>Python mode</h2>-- <div><textarea id="code" name="code">-# Literals-1234-0.0e101-.123-0b01010011100-0o01234567-0x0987654321abcdef-7-2147483647-3L-79228162514264337593543950336L-0x100000000L-79228162514264337593543950336-0xdeadbeef-3.14j-10.j-10j-.001j-1e100j-3.14e-10j---# String Literals-'For\''-"God\""-"""so loved-the world"""-'''that he gave-his only begotten\' '''-'that whosoever believeth \-in him'-''--# Identifiers-__a__-a.b-a.b.c--#Unicode identifiers on Python3-# a = x\ddot-a⃗ = ẍ-# a = v\dot-a⃗ = v̇--#F\vec = m \cdot a\vec-F⃗ = m•a⃗--# Operators-+ - * / % & | ^ ~ < >-== != <= >= <> << >> // **-and or not in is--#infix matrix multiplication operator (PEP 465)-A @ B--# Delimiters-() [] {} , : ` = ; @ . # Note that @ and . require the proper context on Python 2.-+= -= *= /= %= &= |= ^=-//= >>= <<= **=--# Keywords-as assert break class continue def del elif else except-finally for from global if import lambda pass raise-return try while with yield--# Python 2 Keywords (otherwise Identifiers)-exec print--# Python 3 Keywords (otherwise Identifiers)-nonlocal--# Types-bool classmethod complex dict enumerate float frozenset int list object-property reversed set slice staticmethod str super tuple type--# Python 2 Types (otherwise Identifiers)-basestring buffer file long unicode xrange--# Python 3 Types (otherwise Identifiers)-bytearray bytes filter map memoryview open range zip--# Some Example code-import os-from package import ParentClass--@nonsenseDecorator-def doesNothing():- pass--class ExampleClass(ParentClass):- @staticmethod- def example(inputStr):- a = list(inputStr)- a.reverse()- return ''.join(a)-- def __init__(self, mixin = 'Hello'):- self.mixin = mixin--# Python 3.6 f-strings (https://www.python.org/dev/peps/pep-0498/)-f'My name is {name}, my age next year is {age+1}, my anniversary is {anniversary:%A, %B %d, %Y}.'-f'He said his name is {name!r}.'-f"""He said his name is {name!r}."""-f'{"quoted string"}'-f'{{ {4*10} }}'-f'This is an error }'-f'This is ok }}'-fr'x={4*10}\n'-</textarea></div>---<h2>Cython mode</h2>--<div><textarea id="code-cython" name="code-cython">--import numpy as np-cimport cython-from libc.math cimport sqrt-[email protected](False)[email protected](False)-def pairwise_cython(double[:, ::1] X):- cdef int M = X.shape[0]- cdef int N = X.shape[1]- cdef double tmp, d- cdef double[:, ::1] D = np.empty((M, M), dtype=np.float64)- for i in range(M):- for j in range(M):- d = 0.0- for k in range(N):- tmp = X[i, k] - X[j, k]- d += tmp * tmp- D[i, j] = sqrt(d)- return np.asarray(D)--</textarea></div>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: {name: "python",- version: 3,- singleLineStringErrors: false},- lineNumbers: true,- indentUnit: 4,- matchBrackets: true- });-- CodeMirror.fromTextArea(document.getElementById("code-cython"), {- mode: {name: "text/x-cython",- version: 2,- singleLineStringErrors: false},- lineNumbers: true,- indentUnit: 4,- matchBrackets: true- });- </script>- <h2>Configuration Options for Python mode:</h2>- <ul>- <li>version - 2/3 - The version of Python to recognize. Default is 3.</li>- <li>singleLineStringErrors - true/false - If you have a single-line string that is not terminated at the end of the line, this will show subsequent lines as errors if true, otherwise it will consider the newline as the end of the string. Default is false.</li>- <li>hangingIndent - int - If you want to write long arguments to a function starting on a new line, how much that line should be indented. Defaults to one normal indentation unit.</li>- </ul>- <h2>Advanced Configuration Options:</h2>- <p>Usefull for superset of python syntax like Enthought enaml, IPython magics and questionmark help</p>- <ul>- <li>singleOperators - RegEx - Regular Expression for single operator matching, default : <pre>^[\\+\\-\\*/%&|\\^~<>!]</pre> including <pre>@</pre> on Python 3</li>- <li>singleDelimiters - RegEx - Regular Expression for single delimiter matching, default : <pre>^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]</pre></li>- <li>doubleOperators - RegEx - Regular Expression for double operators matching, default : <pre>^((==)|(!=)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))</pre></li>- <li>doubleDelimiters - RegEx - Regular Expression for double delimiters matching, default : <pre>^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))</pre></li>- <li>tripleDelimiters - RegEx - Regular Expression for triple delimiters matching, default : <pre>^((//=)|(>>=)|(<<=)|(\\*\\*=))</pre></li>- <li>identifiers - RegEx - Regular Expression for identifier, default : <pre>^[_A-Za-z][_A-Za-z0-9]*</pre> on Python 2 and <pre>^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*</pre> on Python 3.</li>- <li>extra_keywords - list of string - List of extra words ton consider as keywords</li>- <li>extra_builtins - list of string - List of extra words ton consider as builtins</li>- </ul>--- <p><strong>MIME types defined:</strong> <code>text/x-python</code> and <code>text/x-cython</code>.</p>- </article>diff --git a/libraries/codemirror/mode/python/test.js b/libraries/codemirror/mode/python/test.jsdeleted file mode 100644index 2b605b8e62..0000000000--- a/libraries/codemirror/mode/python/test.js+++ /dev/null@@ -1,44 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({indentUnit: 4},- {name: "python",- version: 3,- singleLineStringErrors: false});- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }-- // Error, because "foobarhello" is neither a known type or property, but- // property was expected (after "and"), and it should be in parentheses.- MT("decoratorStartOfLine",- "[meta @dec]",- "[keyword def] [def function]():",- " [keyword pass]");-- MT("decoratorIndented",- "[keyword class] [def Foo]:",- " [meta @dec]",- " [keyword def] [def function]():",- " [keyword pass]");-- MT("matmulWithSpace:", "[variable a] [operator @] [variable b]");- MT("matmulWithoutSpace:", "[variable a][operator @][variable b]");- MT("matmulSpaceBefore:", "[variable a] [operator @][variable b]");- var before_equal_sign = ["+", "-", "*", "/", "=", "!", ">", "<"];- for (var i = 0; i < before_equal_sign.length; ++i) {- var c = before_equal_sign[i]- MT("before_equal_sign_" + c, "[variable a] [operator " + c + "=] [variable b]");- }-- MT("fValidStringPrefix", "[string f'this is a]{[variable formatted]}[string string']");- MT("fValidExpressioninFString", "[string f'expression ]{[number 100][operator *][number 5]}[string string']");- MT("fInvalidFString", "[error f'this is wrong}]");- MT("fNestedFString", "[string f'expression ]{[number 100] [operator +] [string f'inner]{[number 5]}[string ']}[string string']");- MT("uValidStringPrefix", "[string u'this is an unicode string']");-- MT("nestedString", "[string f']{[variable b][[ [string \"c\"] ]]}[string f'] [comment # oops]")-- MT("bracesInFString", "[string f']{[variable x] [operator +] {}}[string !']")-- MT("nestedFString", "[string f']{[variable b][[ [string f\"c\"] ]]}[string f'] [comment # oops]")-})();diff --git a/libraries/codemirror/mode/q/index.html b/libraries/codemirror/mode/q/index.htmldeleted file mode 100644index 930e133d49..0000000000--- a/libraries/codemirror/mode/q/index.html+++ /dev/null@@ -1,144 +0,0 @@-<!doctype html>--<title>CodeMirror: Q mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="q.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Q</a>- </ul>-</div>--<article>-<h2>Q mode</h2>---<div><textarea id="code" name="code">-/ utilities to quickly load a csv file - for more exhaustive analysis of the csv contents see csvguess.q-/ 2009.09.20 - updated to match latest csvguess.q--/ .csv.colhdrs[file] - return a list of colhdrs from file-/ info:.csv.info[file] - return a table of information about the file-/ columns are:-/ c - column name; ci - column index; t - load type; mw - max width;-/ dchar - distinct characters in values; rule - rule that caught the type-/ maybe - needs checking, _could_ be say a date, but perhaps just a float?-/ .csv.info0[file;onlycols] - like .csv.info except that it only analyses <onlycols>-/ example:-/ info:.csv.info0[file;(.csv.colhdrs file)like"*price"]-/ info:.csv.infolike[file;"*price"]-/ show delete from info where t=" "-/ .csv.data[file;info] - use the info from .csv.info to read the data-/ .csv.data10[file;info] - like .csv.data but only returns the first 10 rows-/ bulkload[file;info] - bulk loads file into table DATA (which must be already defined :: DATA:() )-/ .csv.read[file]/read10[file] - for when you don't care about checking/tweaking the <info> before reading--\d .csv-DELIM:","-ZAPHDRS:0b / lowercase and remove _ from colhdrs (junk characters are always removed)-WIDTHHDR:25000 / number of characters read to get the header-READLINES:222 / number of lines read and used to guess the types-SYMMAXWIDTH:11 / character columns narrower than this are stored as symbols-SYMMAXGR:10 / max symbol granularity% before we give up and keep as a * string-FORCECHARWIDTH:30 / every field (of any type) with values this wide or more is forced to character "*"-DISCARDEMPTY:0b / completely ignore empty columns if true else set them to "C"-CHUNKSIZE:50000000 / used in fs2 (modified .Q.fs)--k)nameltrim:{$[~@x;.z.s'x;~(*x)in aA:.Q.a,.Q.A;(+/&\~x in aA)_x;x]}-k)fs2:{[f;s]((-7!s)>){[f;s;x]i:1+last@&0xa=r:1:(s;x;CHUNKSIZE);f@`\:i#r;x+i}[f;s]/0j}-cleanhdrs:{{$[ZAPHDRS;lower x except"_";x]}x where x in DELIM,.Q.an}-cancast:{nw:x$"";if[not x in"BXCS";nw:(min 0#;max 0#;::)@\:nw];$[not any nw in x$(11&count y)#y;$[11<count y;not any nw in x$y;1b];0b]}--read:{[file]data[file;info[file]]}-read10:{[file]data10[file;info[file]]}--colhdrs:{[file]- `$nameltrim DELIM vs cleanhdrs first read0(file;0;1+first where 0xa=read1(file;0;WIDTHHDR))}-data:{[file;info]- (exec c from info where not t=" ")xcol(exec t from info;enlist DELIM)0:file}-data10:{[file;info]- data[;info](file;0;1+last 11#where 0xa=read1(file;0;15*WIDTHHDR))}-info0:{[file;onlycols]- colhdrs:`$nameltrim DELIM vs cleanhdrs first head:read0(file;0;1+last where 0xa=read1(file;0;WIDTHHDR));- loadfmts:(count colhdrs)#"S";if[count onlycols;loadfmts[where not colhdrs in onlycols]:"C"];- breaks:where 0xa=read1(file;0;floor(10+READLINES)*WIDTHHDR%count head);- nas:count as:colhdrs xcol(loadfmts;enlist DELIM)0:(file;0;1+last((1+READLINES)&count breaks)#breaks);- info:([]c:key flip as;v:value flip as);as:();- reserved:key`.q;reserved,:.Q.res;reserved,:`i;- info:update res:c in reserved from info;- info:update ci:i,t:"?",ipa:0b,mdot:0,mw:0,rule:0,gr:0,ndv:0,maybe:0b,empty:0b,j10:0b,j12:0b from info;- info:update ci:`s#ci from info;- if[count onlycols;info:update t:" ",rule:10 from info where not c in onlycols];- info:update sdv:{string(distinct x)except`}peach v from info;- info:update ndv:count each sdv from info;- info:update gr:floor 0.5+100*ndv%nas,mw:{max count each x}peach sdv from info where 0<ndv;- info:update t:"*",rule:20 from info where mw>.csv.FORCECHARWIDTH; / long values- info:update t:"C "[.csv.DISCARDEMPTY],rule:30,empty:1b from info where t="?",mw=0; / empty columns- info:update dchar:{asc distinct raze x}peach sdv from info where t="?";- info:update mdot:{max sum each"."=x}peach sdv from info where t="?",{"."in x}each dchar;- info:update t:"n",rule:40 from info where t="?",{any x in"0123456789"}each dchar; / vaguely numeric..- info:update t:"I",rule:50,ipa:1b from info where t="n",mw within 7 15,mdot=3,{all x in".0123456789"}each dchar,.csv.cancast["I"]peach sdv; / ip-address- info:update t:"J",rule:60 from info where t="n",mdot=0,{all x in"+-0123456789"}each dchar,.csv.cancast["J"]peach sdv;- info:update t:"I",rule:70 from info where t="J",mw<12,.csv.cancast["I"]peach sdv;- info:update t:"H",rule:80 from info where t="I",mw<7,.csv.cancast["H"]peach sdv;- info:update t:"F",rule:90 from info where t="n",mdot<2,mw>1,.csv.cancast["F"]peach sdv;- info:update t:"E",rule:100,maybe:1b from info where t="F",mw<9;- info:update t:"M",rule:110,maybe:1b from info where t in"nIHEF",mdot<2,mw within 4 7,.csv.cancast["M"]peach sdv;- info:update t:"D",rule:120,maybe:1b from info where t in"nI",mdot in 0 2,mw within 6 11,.csv.cancast["D"]peach sdv;- info:update t:"V",rule:130,maybe:1b from info where t="I",mw in 5 6,7<count each dchar,{all x like"*[0-9][0-5][0-9][0-5][0-9]"}peach sdv,.csv.cancast["V"]peach sdv; / 235959 12345- info:update t:"U",rule:140,maybe:1b from info where t="H",mw in 3 4,7<count each dchar,{all x like"*[0-9][0-5][0-9]"}peach sdv,.csv.cancast["U"]peach sdv; /2359- info:update t:"U",rule:150,maybe:0b from info where t="n",mw in 4 5,mdot=0,{all x like"*[0-9]:[0-5][0-9]"}peach sdv,.csv.cancast["U"]peach sdv;- info:update t:"T",rule:160,maybe:0b from info where t="n",mw within 7 12,mdot<2,{all x like"*[0-9]:[0-5][0-9]:[0-5][0-9]*"}peach sdv,.csv.cancast["T"]peach sdv;- info:update t:"V",rule:170,maybe:0b from info where t="T",mw in 7 8,mdot=0,.csv.cancast["V"]peach sdv;- info:update t:"T",rule:180,maybe:1b from info where t in"EF",mw within 7 10,mdot=1,{all x like"*[0-9][0-5][0-9][0-5][0-9].*"}peach sdv,.csv.cancast["T"]peach sdv;- info:update t:"Z",rule:190,maybe:0b from info where t="n",mw within 11 24,mdot<4,.csv.cancast["Z"]peach sdv;- info:update t:"P",rule:200,maybe:1b from info where t="n",mw within 12 29,mdot<4,{all x like"[12]*"}peach sdv,.csv.cancast["P"]peach sdv;- info:update t:"N",rule:210,maybe:1b from info where t="n",mw within 3 28,mdot=1,.csv.cancast["N"]peach sdv;- info:update t:"?",rule:220,maybe:0b from info where t="n"; / reset remaining maybe numeric- info:update t:"C",rule:230,maybe:0b from info where t="?",mw=1; / char- info:update t:"B",rule:240,maybe:0b from info where t in"HC",mw=1,mdot=0,{$[all x in"01tTfFyYnN";(any"0fFnN"in x)and any"1tTyY"in x;0b]}each dchar; / boolean- info:update t:"B",rule:250,maybe:1b from info where t in"HC",mw=1,mdot=0,{all x in"01tTfFyYnN"}each dchar; / boolean- info:update t:"X",rule:260,maybe:0b from info where t="?",mw=2,{$[all x in"0123456789abcdefABCDEF";(any .Q.n in x)and any"abcdefABCDEF"in x;0b]}each dchar; /hex- info:update t:"S",rule:270,maybe:1b from info where t="?",mw<.csv.SYMMAXWIDTH,mw>1,gr<.csv.SYMMAXGR; / symbols (max width permitting)- info:update t:"*",rule:280,maybe:0b from info where t="?"; / the rest as strings- / flag those S/* columns which could be encoded to integers (.Q.j10/x10/j12/x12) to avoid symbols- info:update j12:1b from info where t in"S*",mw<13,{all x in .Q.nA}each dchar;- info:update j10:1b from info where t in"S*",mw<11,{all x in .Q.b6}each dchar;- select c,ci,t,maybe,empty,res,j10,j12,ipa,mw,mdot,rule,gr,ndv,dchar from info}-info:info0[;()] / by default don't restrict columns-infolike:{[file;pattern] info0[file;{x where x like y}[lower colhdrs[file];pattern]]} / .csv.infolike[file;"*time"]--\d .-/ DATA:()-bulkload:{[file;info]- if[not`DATA in system"v";'`DATA.not.defined];- if[count DATA;'`DATA.not.empty];- loadhdrs:exec c from info where not t=" ";loadfmts:exec t from info;- .csv.fs2[{[file;loadhdrs;loadfmts] `DATA insert $[count DATA;flip loadhdrs!(loadfmts;.csv.DELIM)0:file;loadhdrs xcol(loadfmts;enlist .csv.DELIM)0:file]}[file;loadhdrs;loadfmts]];- count DATA}-@[.:;"\\l csvutil.custom.q";::]; / save your custom settings in csvutil.custom.q to override those set at the beginning of the file-</textarea></div>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- matchBrackets: true- });- </script>-- <p><strong>MIME type defined:</strong> <code>text/x-q</code>.</p>- </article>diff --git a/libraries/codemirror/mode/r/index.html b/libraries/codemirror/mode/r/index.htmldeleted file mode 100644index 28192dabc5..0000000000--- a/libraries/codemirror/mode/r/index.html+++ /dev/null@@ -1,88 +0,0 @@-<!doctype html>--<title>CodeMirror: R mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="r.js"></script>-<style>- .CodeMirror { border-top: 1px solid silver; border-bottom: 1px solid silver; }- .cm-s-default span.cm-semi { color: blue; font-weight: bold; }- .cm-s-default span.cm-dollar { color: orange; font-weight: bold; }- .cm-s-default span.cm-arrow { color: brown; }- .cm-s-default span.cm-arg-is { color: brown; }- </style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">R</a>- </ul>-</div>--<article>-<h2>R mode</h2>-<form><textarea id="code" name="code">-X <- list(height = 5.4, weight = 54)-cat("Printing objects: "); print(X)-print("Accessing individual elements:")-cat(sprintf("Your height is %s and your weight is %s\n", X$height, X$weight))--# Functions:-square <- function(x) {- return(x * x)-}-cat(sprintf("The square of 3 is %s\n", square(3)))--# In R, the last expression in a function is, by default, what is-# returned. The idiomatic way to write the function is:-square <- function(x) {- x * x-}-# or, for functions with short content:-square <- function(x) x * x--# Function arguments with default values:-cube <- function(x = 5) x * x * x-cat(sprintf("Calling cube with 2 : %s\n", cube(2)) # will give 2^3-cat(sprintf("Calling cube : %s\n", cube()) # will default to 5^3.--powers <- function(x) list(x2 = x*x, x3 = x*x*x, x4 = x*x*x*x)--cat("Powers of 3: "); print(powers(3))--# Data frames-df <- data.frame(letters = letters[1:5], '#letter' = 1:5)-print(df$letters)-print(df$`#letter`)--# Operators:-m1 <- matrix(1:6, 2, 3)-m2 <- m1 %*% t(m1)-cat("Matrix product: "); print(m2)--# Assignments:-a <- 1-b <<- 2-c = 3-4 -> d-5 ->> e-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-rsrc</code>.</p>-- <p>Development of the CodeMirror R mode was kindly sponsored- by <a href="https://twitter.com/ubalo">Ubalo</a>.</p>-- </article>diff --git a/libraries/codemirror/mode/rpm/changes/index.html b/libraries/codemirror/mode/rpm/changes/index.htmldeleted file mode 100644index 9d244ecc85..0000000000--- a/libraries/codemirror/mode/rpm/changes/index.html+++ /dev/null@@ -1,66 +0,0 @@-<!doctype html>--<title>CodeMirror: RPM changes mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">-- <link rel="stylesheet" href="../../../lib/codemirror.css">- <script src="../../../lib/codemirror.js"></script>- <script src="changes.js"></script>- <link rel="stylesheet" href="../../../doc/docs.css">- <style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>--<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../../doc/logo.png"></a>-- <ul>- <li><a href="../../../index.html">Home</a>- <li><a href="../../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../../index.html">Language modes</a>- <li><a class=active href="#">RPM changes</a>- </ul>-</div>--<article>-<h2>RPM changes mode</h2>-- <div><textarea id="code" name="code">---------------------------------------------------------------------Tue Oct 18 13:58:40 UTC 2011 - [email protected]--- Update to r60.3-- Fixes bug in the reflect package- * disallow Interface method on Value obtained via unexported name----------------------------------------------------------------------Thu Oct 6 08:14:24 UTC 2011 - [email protected]--- Update to r60.2-- Fixes memory leak in certain map types----------------------------------------------------------------------Wed Oct 5 14:34:10 UTC 2011 - [email protected]--- Tweaks for gdb debugging-- go.spec changes:- - move %go_arch definition to %prep section- - pass correct location of go specific gdb pretty printer and- functions to cpp as HOST_EXTRA_CFLAGS macro- - install go gdb functions & printer-- gdb-printer.patch- - patch linker (src/cmd/ld/dwarf.c) to emit correct location of go- gdb functions and pretty printer-</textarea></div>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: {name: "changes"},- lineNumbers: true,- indentUnit: 4- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-rpm-changes</code>.</p>-</article>diff --git a/libraries/codemirror/mode/rpm/index.html b/libraries/codemirror/mode/rpm/index.htmldeleted file mode 100644index e20e53debc..0000000000--- a/libraries/codemirror/mode/rpm/index.html+++ /dev/null@@ -1,149 +0,0 @@-<!doctype html>--<title>CodeMirror: RPM changes mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">-- <link rel="stylesheet" href="../../lib/codemirror.css">- <script src="../../lib/codemirror.js"></script>- <script src="rpm.js"></script>- <link rel="stylesheet" href="../../doc/docs.css">- <style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>--<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">RPM</a>- </ul>-</div>--<article>-<h2>RPM changes mode</h2>-- <div><textarea id="code" name="code">---------------------------------------------------------------------Tue Oct 18 13:58:40 UTC 2011 - [email protected]--- Update to r60.3-- Fixes bug in the reflect package- * disallow Interface method on Value obtained via unexported name----------------------------------------------------------------------Thu Oct 6 08:14:24 UTC 2011 - [email protected]--- Update to r60.2-- Fixes memory leak in certain map types----------------------------------------------------------------------Wed Oct 5 14:34:10 UTC 2011 - [email protected]--- Tweaks for gdb debugging-- go.spec changes:- - move %go_arch definition to %prep section- - pass correct location of go specific gdb pretty printer and- functions to cpp as HOST_EXTRA_CFLAGS macro- - install go gdb functions & printer-- gdb-printer.patch- - patch linker (src/cmd/ld/dwarf.c) to emit correct location of go- gdb functions and pretty printer-</textarea></div>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: {name: "rpm-changes"},- lineNumbers: true,- indentUnit: 4- });- </script>--<h2>RPM spec mode</h2>-- <div><textarea id="code2" name="code2">-#-# spec file for package minidlna-#-# Copyright (c) 2011, Sascha Peilicke <[email protected]>-#-# All modifications and additions to the file contributed by third parties-# remain the property of their copyright owners, unless otherwise agreed-# upon. The license for this file, and modifications and additions to the-# file, is the same license as for the pristine package itself (unless the-# license for the pristine package is not an Open Source License, in which-# case the license is the MIT License). An "Open Source License" is a-# license that conforms to the Open Source Definition (Version 1.9)-# published by the Open Source Initiative.---Name: libupnp6-Version: 1.6.13-Release: 0-Summary: Portable Universal Plug and Play (UPnP) SDK-Group: System/Libraries-License: BSD-3-Clause-Url: http://sourceforge.net/projects/pupnp/-Source0: http://downloads.sourceforge.net/pupnp/libupnp-%{version}.tar.bz2-BuildRoot: %{_tmppath}/%{name}-%{version}-build--%description-The portable Universal Plug and Play (UPnP) SDK provides support for building-UPnP-compliant control points, devices, and bridges on several operating-systems.--%package -n libupnp-devel-Summary: Portable Universal Plug and Play (UPnP) SDK-Group: Development/Libraries/C and C++-Provides: pkgconfig(libupnp)-Requires: %{name} = %{version}--%description -n libupnp-devel-The portable Universal Plug and Play (UPnP) SDK provides support for building-UPnP-compliant control points, devices, and bridges on several operating-systems.--%prep-%setup -n libupnp-%{version}--%build-%configure --disable-static-make %{?_smp_mflags}--%install-%makeinstall-find %{buildroot} -type f -name '*.la' -exec rm -f {} ';'--%post -p /sbin/ldconfig--%postun -p /sbin/ldconfig--%files-%defattr(-,root,root,-)-%doc ChangeLog NEWS README TODO-%{_libdir}/libixml.so.*-%{_libdir}/libthreadutil.so.*-%{_libdir}/libupnp.so.*--%files -n libupnp-devel-%defattr(-,root,root,-)-%{_libdir}/pkgconfig/libupnp.pc-%{_libdir}/libixml.so-%{_libdir}/libthreadutil.so-%{_libdir}/libupnp.so-%{_includedir}/upnp/--%changelog</textarea></div>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code2"), {- mode: {name: "rpm-spec"},- lineNumbers: true,- indentUnit: 4- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-rpm-spec</code>, <code>text/x-rpm-changes</code>.</p>-</article>diff --git a/libraries/codemirror/mode/rst/index.html b/libraries/codemirror/mode/rst/index.htmldeleted file mode 100644index 1ced39ca96..0000000000--- a/libraries/codemirror/mode/rst/index.html+++ /dev/null@@ -1,535 +0,0 @@-<!doctype html>--<title>CodeMirror: reStructuredText mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/mode/overlay.js"></script>-<script src="rst.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">reStructuredText</a>- </ul>-</div>--<article>-<h2>reStructuredText mode</h2>-<form><textarea id="code" name="code">-.. This is an excerpt from Sphinx documentation: http://sphinx.pocoo.org/_sources/rest.txt--.. highlightlang:: rest--.. _rst-primer:--reStructuredText Primer-=======================--This section is a brief introduction to reStructuredText (reST) concepts and-syntax, intended to provide authors with enough information to author documents-productively. Since reST was designed to be a simple, unobtrusive markup-language, this will not take too long.--.. seealso::-- The authoritative `reStructuredText User Documentation- <http://docutils.sourceforge.net/rst.html>`_. The "ref" links in this- document link to the description of the individual constructs in the reST- reference.---Paragraphs-------------The paragraph (:duref:`ref <paragraphs>`) is the most basic block in a reST-document. Paragraphs are simply chunks of text separated by one or more blank-lines. As in Python, indentation is significant in reST, so all lines of the-same paragraph must be left-aligned to the same level of indentation.---.. _inlinemarkup:--Inline markup----------------The standard reST inline markup is quite simple: use--* one asterisk: ``*text*`` for emphasis (italics),-* two asterisks: ``**text**`` for strong emphasis (boldface), and-* backquotes: ````text```` for code samples.--If asterisks or backquotes appear in running text and could be confused with-inline markup delimiters, they have to be escaped with a backslash.--Be aware of some restrictions of this markup:--* it may not be nested,-* content may not start or end with whitespace: ``* text*`` is wrong,-* it must be separated from surrounding text by non-word characters. Use a- backslash escaped space to work around that: ``thisis\ *one*\ word``.--These restrictions may be lifted in future versions of the docutils.--reST also allows for custom "interpreted text roles"', which signify that the-enclosed text should be interpreted in a specific way. Sphinx uses this to-provide semantic markup and cross-referencing of identifiers, as described in-the appropriate section. The general syntax is ``:rolename:`content```.--Standard reST provides the following roles:--* :durole:`emphasis` -- alternate spelling for ``*emphasis*``-* :durole:`strong` -- alternate spelling for ``**strong**``-* :durole:`literal` -- alternate spelling for ````literal````-* :durole:`subscript` -- subscript text-* :durole:`superscript` -- superscript text-* :durole:`title-reference` -- for titles of books, periodicals, and other- materials--See :ref:`inline-markup` for roles added by Sphinx.---Lists and Quote-like blocks------------------------------List markup (:duref:`ref <bullet-lists>`) is natural: just place an asterisk at-the start of a paragraph and indent properly. The same goes for numbered lists;-they can also be autonumbered using a ``#`` sign::-- * This is a bulleted list.- * It has two items, the second- item uses two lines.-- 1. This is a numbered list.- 2. It has two items too.-- #. This is a numbered list.- #. It has two items too.---Nested lists are possible, but be aware that they must be separated from the-parent list items by blank lines::-- * this is- * a list-- * with a nested list- * and some subitems-- * and here the parent list continues--Definition lists (:duref:`ref <definition-lists>`) are created as follows::-- term (up to a line of text)- Definition of the term, which must be indented-- and can even consist of multiple paragraphs-- next term- Description.--Note that the term cannot have more than one line of text.--Quoted paragraphs (:duref:`ref <block-quotes>`) are created by just indenting-them more than the surrounding paragraphs.--Line blocks (:duref:`ref <line-blocks>`) are a way of preserving line breaks::-- | These lines are- | broken exactly like in- | the source file.--There are also several more special blocks available:--* field lists (:duref:`ref <field-lists>`)-* option lists (:duref:`ref <option-lists>`)-* quoted literal blocks (:duref:`ref <quoted-literal-blocks>`)-* doctest blocks (:duref:`ref <doctest-blocks>`)---Source Code--------------Literal code blocks (:duref:`ref <literal-blocks>`) are introduced by ending a-paragraph with the special marker ``::``. The literal block must be indented-(and, like all paragraphs, separated from the surrounding ones by blank lines)::-- This is a normal text paragraph. The next paragraph is a code sample::-- It is not processed in any way, except- that the indentation is removed.-- It can span multiple lines.-- This is a normal text paragraph again.--The handling of the ``::`` marker is smart:--* If it occurs as a paragraph of its own, that paragraph is completely left- out of the document.-* If it is preceded by whitespace, the marker is removed.-* If it is preceded by non-whitespace, the marker is replaced by a single- colon.--That way, the second sentence in the above example's first paragraph would be-rendered as "The next paragraph is a code sample:".---.. _rst-tables:--Tables---------Two forms of tables are supported. For *grid tables* (:duref:`ref-<grid-tables>`), you have to "paint" the cell grid yourself. They look like-this::-- +------------------------+------------+----------+----------+- | Header row, column 1 | Header 2 | Header 3 | Header 4 |- | (header rows optional) | | | |- +========================+============+==========+==========+- | body row 1, column 1 | column 2 | column 3 | column 4 |- +------------------------+------------+----------+----------+- | body row 2 | ... | ... | |- +------------------------+------------+----------+----------+--*Simple tables* (:duref:`ref <simple-tables>`) are easier to write, but-limited: they must contain more than one row, and the first column cannot-contain multiple lines. They look like this::-- ===== ===== =======- A B A and B- ===== ===== =======- False False False- True False False- False True False- True True True- ===== ===== =======---Hyperlinks-------------External links-^^^^^^^^^^^^^^--Use ```Link text <http://example.com/>`_`` for inline web links. If the link-text should be the web address, you don't need special markup at all, the parser-finds links and mail addresses in ordinary text.--You can also separate the link and the target definition (:duref:`ref-<hyperlink-targets>`), like this::-- This is a paragraph that contains `a link`_.-- .. _a link: http://example.com/---Internal links-^^^^^^^^^^^^^^--Internal linking is done via a special reST role provided by Sphinx, see the-section on specific markup, :ref:`ref-role`.---Sections-----------Section headers (:duref:`ref <sections>`) are created by underlining (and-optionally overlining) the section title with a punctuation character, at least-as long as the text::-- =================- This is a heading- =================--Normally, there are no heading levels assigned to certain characters as the-structure is determined from the succession of headings. However, for the-Python documentation, this convention is used which you may follow:--* ``#`` with overline, for parts-* ``*`` with overline, for chapters-* ``=``, for sections-* ``-``, for subsections-* ``^``, for subsubsections-* ``"``, for paragraphs--Of course, you are free to use your own marker characters (see the reST-documentation), and use a deeper nesting level, but keep in mind that most-target formats (HTML, LaTeX) have a limited supported nesting depth.---Explicit Markup------------------"Explicit markup" (:duref:`ref <explicit-markup-blocks>`) is used in reST for-most constructs that need special handling, such as footnotes,-specially-highlighted paragraphs, comments, and generic directives.--An explicit markup block begins with a line starting with ``..`` followed by-whitespace and is terminated by the next paragraph at the same level of-indentation. (There needs to be a blank line between explicit markup and normal-paragraphs. This may all sound a bit complicated, but it is intuitive enough-when you write it.)---.. _directives:--Directives-------------A directive (:duref:`ref <directives>`) is a generic block of explicit markup.-Besides roles, it is one of the extension mechanisms of reST, and Sphinx makes-heavy use of it.--Docutils supports the following directives:--* Admonitions: :dudir:`attention`, :dudir:`caution`, :dudir:`danger`,- :dudir:`error`, :dudir:`hint`, :dudir:`important`, :dudir:`note`,- :dudir:`tip`, :dudir:`warning` and the generic :dudir:`admonition`.- (Most themes style only "note" and "warning" specially.)--* Images:-- - :dudir:`image` (see also Images_ below)- - :dudir:`figure` (an image with caption and optional legend)--* Additional body elements:-- - :dudir:`contents` (a local, i.e. for the current file only, table of- contents)- - :dudir:`container` (a container with a custom class, useful to generate an- outer ``<div>`` in HTML)- - :dudir:`rubric` (a heading without relation to the document sectioning)- - :dudir:`topic`, :dudir:`sidebar` (special highlighted body elements)- - :dudir:`parsed-literal` (literal block that supports inline markup)- - :dudir:`epigraph` (a block quote with optional attribution line)- - :dudir:`highlights`, :dudir:`pull-quote` (block quotes with their own- class attribute)- - :dudir:`compound` (a compound paragraph)--* Special tables:-- - :dudir:`table` (a table with title)- - :dudir:`csv-table` (a table generated from comma-separated values)- - :dudir:`list-table` (a table generated from a list of lists)--* Special directives:-- - :dudir:`raw` (include raw target-format markup)- - :dudir:`include` (include reStructuredText from another file)- -- in Sphinx, when given an absolute include file path, this directive takes- it as relative to the source directory- - :dudir:`class` (assign a class attribute to the next element) [1]_--* HTML specifics:-- - :dudir:`meta` (generation of HTML ``<meta>`` tags)- - :dudir:`title` (override document title)--* Influencing markup:-- - :dudir:`default-role` (set a new default role)- - :dudir:`role` (create a new role)-- Since these are only per-file, better use Sphinx' facilities for setting the- :confval:`default_role`.--Do *not* use the directives :dudir:`sectnum`, :dudir:`header` and-:dudir:`footer`.--Directives added by Sphinx are described in :ref:`sphinxmarkup`.--Basically, a directive consists of a name, arguments, options and content. (Keep-this terminology in mind, it is used in the next chapter describing custom-directives.) Looking at this example, ::-- .. function:: foo(x)- foo(y, z)- :module: some.module.name-- Return a line of text input from the user.--``function`` is the directive name. It is given two arguments here, the-remainder of the first line and the second line, as well as one option-``module`` (as you can see, options are given in the lines immediately following-the arguments and indicated by the colons). Options must be indented to the-same level as the directive content.--The directive content follows after a blank line and is indented relative to the-directive start.---Images---------reST supports an image directive (:dudir:`ref <image>`), used like so::-- .. image:: gnu.png- (options)--When used within Sphinx, the file name given (here ``gnu.png``) must either be-relative to the source file, or absolute which means that they are relative to-the top source directory. For example, the file ``sketch/spam.rst`` could refer-to the image ``images/spam.png`` as ``../images/spam.png`` or-``/images/spam.png``.--Sphinx will automatically copy image files over to a subdirectory of the output-directory on building (e.g. the ``_static`` directory for HTML output.)--Interpretation of image size options (``width`` and ``height``) is as follows:-if the size has no unit or the unit is pixels, the given size will only be-respected for output channels that support pixels (i.e. not in LaTeX output).-Other units (like ``pt`` for points) will be used for HTML and LaTeX output.--Sphinx extends the standard docutils behavior by allowing an asterisk for the-extension::-- .. image:: gnu.*--Sphinx then searches for all images matching the provided pattern and determines-their type. Each builder then chooses the best image out of these candidates.-For instance, if the file name ``gnu.*`` was given and two files :file:`gnu.pdf`-and :file:`gnu.png` existed in the source tree, the LaTeX builder would choose-the former, while the HTML builder would prefer the latter.--.. versionchanged:: 0.4- Added the support for file names ending in an asterisk.--.. versionchanged:: 0.6- Image paths can now be absolute.---Footnotes------------For footnotes (:duref:`ref <footnotes>`), use ``[#name]_`` to mark the footnote-location, and add the footnote body at the bottom of the document after a-"Footnotes" rubric heading, like so::-- Lorem ipsum [#f1]_ dolor sit amet ... [#f2]_-- .. rubric:: Footnotes-- .. [#f1] Text of the first footnote.- .. [#f2] Text of the second footnote.--You can also explicitly number the footnotes (``[1]_``) or use auto-numbered-footnotes without names (``[#]_``).---Citations------------Standard reST citations (:duref:`ref <citations>`) are supported, with the-additional feature that they are "global", i.e. all citations can be referenced-from all files. Use them like so::-- Lorem ipsum [Ref]_ dolor sit amet.-- .. [Ref] Book or article reference, URL or whatever.--Citation usage is similar to footnote usage, but with a label that is not-numeric or begins with ``#``.---Substitutions----------------reST supports "substitutions" (:duref:`ref <substitution-definitions>`), which-are pieces of text and/or markup referred to in the text by ``|name|``. They-are defined like footnotes with explicit markup blocks, like this::-- .. |name| replace:: replacement *text*--or this::-- .. |caution| image:: warning.png- :alt: Warning!--See the :duref:`reST reference for substitutions <substitution-definitions>`-for details.--If you want to use some substitutions for all documents, put them into-:confval:`rst_prolog` or put them into a separate file and include it into all-documents you want to use them in, using the :rst:dir:`include` directive. (Be-sure to give the include file a file name extension differing from that of other-source files, to avoid Sphinx finding it as a standalone document.)--Sphinx defines some default substitutions, see :ref:`default-substitutions`.---Comments-----------Every explicit markup block which isn't a valid markup construct (like the-footnotes above) is regarded as a comment (:duref:`ref <comments>`). For-example::-- .. This is a comment.--You can indent text after a comment start to form multiline comments::-- ..- This whole indented block- is a comment.-- Still in the comment.---Source encoding------------------Since the easiest way to include special characters like em dashes or copyright-signs in reST is to directly write them as Unicode characters, one has to-specify an encoding. Sphinx assumes source files to be encoded in UTF-8 by-default; you can change this with the :confval:`source_encoding` config value.---Gotchas----------There are some problems one commonly runs into while authoring reST documents:--* **Separation of inline markup:** As said above, inline markup spans must be- separated from the surrounding text by non-word characters, you have to use a- backslash-escaped space to get around that. See `the reference- <http://docutils.sf.net/docs/ref/rst/restructuredtext.html#inline-markup>`_- for the details.--* **No nested inline markup:** Something like ``*see :func:`foo`*`` is not- possible.---.. rubric:: Footnotes--.. [1] When the default domain contains a :rst:dir:`class` directive, this directive- will be shadowed. Therefore, Sphinx re-exports it as :rst:dir:`rst-class`.-</textarea></form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- });- </script>- <p>- The <code>python</code> mode will be used for highlighting blocks- containing Python/IPython terminal sessions: blocks starting with- <code>>>></code> (for Python) or <code>In [num]:</code> (for- IPython).-- Further, the <code>stex</code> mode will be used for highlighting- blocks containing LaTex code.- </p>-- <p><strong>MIME types defined:</strong> <code>text/x-rst</code>.</p>- </article>diff --git a/libraries/codemirror/mode/ruby/index.html b/libraries/codemirror/mode/ruby/index.htmldeleted file mode 100644index 486b1e2454..0000000000--- a/libraries/codemirror/mode/ruby/index.html+++ /dev/null@@ -1,183 +0,0 @@-<!doctype html>--<title>CodeMirror: Ruby mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="ruby.js"></script>-<style>- .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}- .cm-s-default span.cm-arrow { color: red; }- </style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Ruby</a>- </ul>-</div>--<article>-<h2>Ruby mode</h2>-<form><textarea id="code" name="code">-# Code from http://sandbox.mc.edu/~bennet/ruby/code/poly_rb.html-#-# This program evaluates polynomials. It first asks for the coefficients-# of a polynomial, which must be entered on one line, highest-order first.-# It then requests values of x and will compute the value of the poly for-# each x. It will repeatly ask for x values, unless you the user enters-# a blank line. It that case, it will ask for another polynomial. If the-# user types quit for either input, the program immediately exits.-#--#-# Function to evaluate a polynomial at x. The polynomial is given-# as a list of coefficients, from the greatest to the least.-def polyval(x, coef)- sum = 0- coef = coef.clone # Don't want to destroy the original- while true- sum += coef.shift # Add and remove the next coef- break if coef.empty? # If no more, done entirely.- sum *= x # This happens the right number of times.- end- return sum-end--#-# Function to read a line containing a list of integers and return-# them as an array of integers. If the string conversion fails, it-# throws TypeError. If the input line is the word 'quit', then it-# converts it to an end-of-file exception-def readints(prompt)- # Read a line- print prompt- line = readline.chomp- raise EOFError.new if line == 'quit' # You can also use a real EOF.-- # Go through each item on the line, converting each one and adding it- # to retval.- retval = [ ]- for str in line.split(/\s+/)- if str =~ /^\-?\d+$/- retval.push(str.to_i)- else- raise TypeError.new- end- end-- return retval-end--#-# Take a coeff and an exponent and return the string representation, ignoring-# the sign of the coefficient.-def term_to_str(coef, exp)- ret = ""-- # Show coeff, unless it's 1 or at the right- coef = coef.abs- ret = coef.to_s unless coef == 1 && exp > 0- ret += "x" if exp > 0 # x if exponent not 0- ret += "^" + exp.to_s if exp > 1 # ^exponent, if > 1.-- return ret-end--#-# Create a string of the polynomial in sort-of-readable form.-def polystr(p)- # Get the exponent of first coefficient, plus 1.- exp = p.length-- # Assign exponents to each term, making pairs of coeff and exponent,- # Then get rid of the zero terms.- p = (p.map { |c| exp -= 1; [ c, exp ] }).select { |p| p[0] != 0 }-- # If there's nothing left, it's a zero- return "0" if p.empty?-- # *** Now p is a non-empty list of [ coef, exponent ] pairs. ***-- # Convert the first term, preceded by a "-" if it's negative.- result = (if p[0][0] < 0 then "-" else "" end) + term_to_str(*p[0])-- # Convert the rest of the terms, in each case adding the appropriate- # + or - separating them.- for term in p[1...p.length]- # Add the separator then the rep. of the term.- result += (if term[0] < 0 then " - " else " + " end) +- term_to_str(*term)- end-- return result-end--#-# Run until some kind of endfile.-begin- # Repeat until an exception or quit gets us out.- while true- # Read a poly until it works. An EOF will except out of the- # program.- print "\n"- begin- poly = readints("Enter a polynomial coefficients: ")- rescue TypeError- print "Try again.\n"- retry- end- break if poly.empty?-- # Read and evaluate x values until the user types a blank line.- # Again, an EOF will except out of the pgm.- while true- # Request an integer.- print "Enter x value or blank line: "- x = readline.chomp- break if x == ''- raise EOFError.new if x == 'quit'-- # If it looks bad, let's try again.- if x !~ /^\-?\d+$/- print "That doesn't look like an integer. Please try again.\n"- next- end-- # Convert to an integer and print the result.- x = x.to_i- print "p(x) = ", polystr(poly), "\n"- print "p(", x, ") = ", polyval(x, poly), "\n"- end- end-rescue EOFError- print "\n=== EOF ===\n"-rescue Interrupt, SignalException- print "\n=== Interrupted ===\n"-else- print "--- Bye ---\n"-end-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: "text/x-ruby",- matchBrackets: true,- indentUnit: 4- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-ruby</code>.</p>-- <p>Development of the CodeMirror Ruby mode was kindly sponsored- by <a href="http://ubalo.com/">Ubalo</a>.</p>-- </article>diff --git a/libraries/codemirror/mode/ruby/test.js b/libraries/codemirror/mode/ruby/test.jsdeleted file mode 100644index 905c0e4849..0000000000--- a/libraries/codemirror/mode/ruby/test.js+++ /dev/null@@ -1,23 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({indentUnit: 2}, "ruby");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }-- MT("divide_equal_operator",- "[variable bar] [operator /=] [variable foo]");-- MT("divide_equal_operator_no_spacing",- "[variable foo][operator /=][number 42]");-- MT("complex_regexp",- "[keyword if] [variable cr] [operator =~] [string-2 /(?: \\( #{][tag RE_NOT][string-2 }\\( | #{][tag RE_NOT_PAR_OR][string-2 }* #{][tag RE_OPA_OR][string-2 } )/][variable x]")-- MT("indented_heredoc",- "[keyword def] [def x]",- " [variable y] [operator =] [string <<-FOO]",- "[string bar]",- "[string FOO]",- "[keyword end]")-})();diff --git a/libraries/codemirror/mode/rust/index.html b/libraries/codemirror/mode/rust/index.htmldeleted file mode 100644index ce9789851f..0000000000--- a/libraries/codemirror/mode/rust/index.html+++ /dev/null@@ -1,64 +0,0 @@-<!doctype html>--<title>CodeMirror: Rust mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/mode/simple.js"></script>-<script src="rust.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Rust</a>- </ul>-</div>--<article>-<h2>Rust mode</h2>---<div><textarea id="code" name="code">-// Demo code.--type foo<T> = int;-enum bar {- some(int, foo<float>),- none-}--fn check_crate(x: int) {- let v = 10;- match foo {- 1 ... 3 {- print_foo();- if x {- blah().to_string();- }- }- (x, y) { "bye" }- _ { "hi" }- }-}-</textarea></div>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- lineWrapping: true,- indentUnit: 4,- mode: "rust"- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-rustsrc</code>.</p>- </article>diff --git a/libraries/codemirror/mode/rust/test.js b/libraries/codemirror/mode/rust/test.jsdeleted file mode 100644index 36c5cdeba8..0000000000--- a/libraries/codemirror/mode/rust/test.js+++ /dev/null@@ -1,39 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({indentUnit: 4}, "rust");- function MT(name) {test.mode(name, mode, Array.prototype.slice.call(arguments, 1));}-- MT('integer_test',- '[number 123i32]',- '[number 123u32]',- '[number 123_u32]',- '[number 0xff_u8]',- '[number 0o70_i16]',- '[number 0b1111_1111_1001_0000_i32]',- '[number 0usize]');-- MT('float_test',- '[number 123.0f64]',- '[number 0.1f64]',- '[number 0.1f32]',- '[number 12E+99_f64]');-- MT('string-literals-test',- '[string "foo"]',- '[string r"foo"]',- '[string "\\"foo\\""]',- '[string r#""foo""#]',- '[string "foo #\\"# bar"]',-- '[string b"foo"]',- '[string br"foo"]',- '[string b"\\"foo\\""]',- '[string br#""foo""#]',- '[string br##"foo #" bar"##]',-- "[string-2 'h']",- "[string-2 b'h']");--})();diff --git a/libraries/codemirror/mode/sas/index.html b/libraries/codemirror/mode/sas/index.htmldeleted file mode 100644index b8627484e0..0000000000--- a/libraries/codemirror/mode/sas/index.html+++ /dev/null@@ -1,81 +0,0 @@-<!doctype html>--<title>CodeMirror: SAS mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../xml/xml.js"></script>-<script src="sas.js"></script>-<style>- .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}- .cm-s-default .cm-trailing-space-a:before,- .cm-s-default .cm-trailing-space-b:before {position: absolute; content: "\00B7"; color: #777;}- .cm-s-default .cm-trailing-space-new-line:before {position: absolute; content: "\21B5"; color: #777;}-</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">SAS</a>- </ul>-</div>--<article>-<h2>SAS mode</h2>-<form><textarea id="code" name="code">-libname foo "/tmp/foobar";-%let count=1;--/* Multi line-Comment-*/-data _null_;- x=ranuni();- * single comment;- x2=x**2;- sx=sqrt(x);- if x=x2 then put "x must be 1";- else do;- put x=;- end;-run;--/* embedded comment-* comment;-*/--proc glm data=sashelp.class;- class sex;- model weight = height sex;-run;--proc sql;- select count(*)- from sashelp.class;-- create table foo as- select * from sashelp.class;-- select *- from foo;-quit;-</textarea></form>--<script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: 'sas',- lineNumbers: true- });-</script>--<p><strong>MIME types defined:</strong> <code>text/x-sas</code>.</p>--</article>diff --git a/libraries/codemirror/mode/sass/index.html b/libraries/codemirror/mode/sass/index.htmldeleted file mode 100644index 0db5eacbcf..0000000000--- a/libraries/codemirror/mode/sass/index.html+++ /dev/null@@ -1,68 +0,0 @@-<!doctype html>--<title>CodeMirror: Sass mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="../css/css.js"></script>-<script src="sass.js"></script>-<style>.CodeMirror {border: 1px solid #ddd; font-size:12px; height: 400px}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Sass</a>- </ul>-</div>--<article>-<h2>Sass mode</h2>-<form><textarea id="code" name="code">// Variable Definitions--$page-width: 800px-$sidebar-width: 200px-$primary-color: #eeeeee--// Global Attributes--body- font:- family: sans-serif- size: 30em- weight: bold--// Scoped Styles--#contents- width: $page-width- #sidebar- float: right- width: $sidebar-width- #main- width: $page-width - $sidebar-width- background: $primary-color- h2- color: blue--#footer- height: 200px-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers : true,- matchBrackets : true,- mode: "sass"- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-sass</code>.</p>- </article>diff --git a/libraries/codemirror/mode/sass/test.js b/libraries/codemirror/mode/sass/test.jsdeleted file mode 100644index 63d79193b4..0000000000--- a/libraries/codemirror/mode/sass/test.js+++ /dev/null@@ -1,122 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({indentUnit: 2}, "sass");- // Since Sass has an indent-based syntax, is almost impossible to test correctly the indentation in all cases.- // So disable it for tests.- mode.indent = undefined;- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }-- MT("comment",- "[comment // this is a comment]",- "[comment also this is a comment]")-- MT("comment_multiline",- "[comment /* this is a comment]",- "[comment also this is a comment]")-- MT("variable",- "[variable-2 $page-width][operator :] [number 800][unit px]")-- MT("global_attributes",- "[tag body]",- " [property font][operator :]",- " [property family][operator :] [atom sans-serif]",- " [property size][operator :] [number 30][unit em]",- " [property weight][operator :] [atom bold]")-- MT("scoped_styles",- "[builtin #contents]",- " [property width][operator :] [variable-2 $page-width]",- " [builtin #sidebar]",- " [property float][operator :] [atom right]",- " [property width][operator :] [variable-2 $sidebar-width]",- " [builtin #main]",- " [property width][operator :] [variable-2 $page-width] [operator -] [variable-2 $sidebar-width]",- " [property background][operator :] [variable-2 $primary-color]",- " [tag h2]",- " [property color][operator :] [keyword blue]")-- // Sass allows to write the colon as first char instead of a "separator".- // :color red- // Not supported- // MT("property_syntax",- // "[qualifier .foo]",- // " [operator :][property color] [keyword red]")-- MT("import",- "[def @import] [string \"sass/variables\"]",- // Probably it should parsed as above: as a string even without the " or '- // "[def @import] [string sass/baz]"- "[def @import] [tag sass][operator /][tag baz]")-- MT("def",- "[def @if] [variable-2 $foo] [def @else]")-- MT("tag_on_more_lines",- "[tag td],",- "[tag th]",- " [property font-family][operator :] [string \"Arial\"], [atom serif]")-- MT("important",- "[qualifier .foo]",- " [property text-decoration][operator :] [atom none] [keyword !important]",- "[tag h1]",- " [property font-size][operator :] [number 2.5][unit em]")-- MT("selector",- // SCSS doesn't highlight the :- // "[tag h1]:[variable-3 before],",- // "[tag h2]:[variable-3 before]",- "[tag h1][variable-3 :before],",- "[tag h2][variable-3 :before]",- " [property content][operator :] [string \"::\"]")-- MT("definition_mixin_equal",- "[variable-2 $defined-bs-type][operator :] [atom border-box] [keyword !default]",- "[meta =bs][operator (][variable-2 $bs-type][operator :] [variable-2 $defined-bs-type][operator )]",- " [meta -webkit-][property box-sizing][operator :] [variable-2 $bs-type]",- " [property box-sizing][operator :] [variable-2 $bs-type]")-- MT("definition_mixin_with_space",- "[variable-2 $defined-bs-type][operator :] [atom border-box] [keyword !default]",- "[def @mixin] [tag bs][operator (][variable-2 $bs-type][operator :] [variable-2 $defined-bs-type][operator )] ",- " [meta -moz-][property box-sizing][operator :] [variable-2 $bs-type]",- " [property box-sizing][operator :] [variable-2 $bs-type]")-- MT("numbers_start_dot_include_plus",- // The % is not highlighted correctly- // "[meta =button-links][operator (][variable-2 $button-base][operator :] [atom darken][operator (][variable-2 $color11], [number 10][unit %][operator )][operator )]",- "[meta =button-links][operator (][variable-2 $button-base][operator :] [atom darken][operator (][variable-2 $color11], [number 10][operator %))]",- " [property padding][operator :] [number .3][unit em] [number .6][unit em]",- " [variable-3 +border-radius][operator (][number 8][unit px][operator )]",- " [property background-color][operator :] [variable-2 $button-base]")-- MT("include",- "[qualifier .bar]",- " [def @include] [tag border-radius][operator (][number 8][unit px][operator )]")-- MT("reference_parent",- "[qualifier .col]",- " [property clear][operator :] [atom both]",- // SCSS doesn't highlight the :- // " &:[variable-3 after]",- " &[variable-3 :after]",- " [property content][operator :] [string '']",- " [property clear][operator :] [atom both]")-- MT("reference_parent_with_spaces",- "[tag section]",- " [property border-left][operator :] [number 20][unit px] [atom transparent] [atom solid] ",- " &[qualifier .section3]",- " [qualifier .title]",- " [property color][operator :] [keyword white] ",- " [qualifier .vermas]",- " [property display][operator :] [atom none]")-- MT("font_face",- "[def @font-face]",- " [property font-family][operator :] [string 'icomoon']",- " [property src][operator :] [atom url][operator (][string fonts/icomoon.ttf][operator )]")-})();diff --git a/libraries/codemirror/mode/scheme/index.html b/libraries/codemirror/mode/scheme/index.htmldeleted file mode 100644index f2eda51d66..0000000000--- a/libraries/codemirror/mode/scheme/index.html+++ /dev/null@@ -1,77 +0,0 @@-<!doctype html>--<title>CodeMirror: Scheme mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="scheme.js"></script>-<style>.CodeMirror {background: #f8f8f8;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Scheme</a>- </ul>-</div>--<article>-<h2>Scheme mode</h2>-<form><textarea id="code" name="code">-; See if the input starts with a given symbol.-(define (match-symbol input pattern)- (cond ((null? (remain input)) #f)- ((eqv? (car (remain input)) pattern) (r-cdr input))- (else #f)))--; Allow the input to start with one of a list of patterns.-(define (match-or input pattern)- (cond ((null? pattern) #f)- ((match-pattern input (car pattern)))- (else (match-or input (cdr pattern)))))--; Allow a sequence of patterns.-(define (match-seq input pattern)- (if (null? pattern)- input- (let ((match (match-pattern input (car pattern))))- (if match (match-seq match (cdr pattern)) #f))))--; Match with the pattern but no problem if it does not match.-(define (match-opt input pattern)- (let ((match (match-pattern input (car pattern))))- (if match match input)))--; Match anything (other than '()), until pattern is found. The rather-; clumsy form of requiring an ending pattern is needed to decide where-; the end of the match is. If none is given, this will match the rest-; of the sentence.-(define (match-any input pattern)- (cond ((null? (remain input)) #f)- ((null? pattern) (f-cons (remain input) (clear-remain input)))- (else- (let ((accum-any (collector)))- (define (match-pattern-any input pattern)- (cond ((null? (remain input)) #f)- (else (accum-any (car (remain input)))- (cond ((match-pattern (r-cdr input) pattern))- (else (match-pattern-any (r-cdr input) pattern))))))- (let ((retval (match-pattern-any input (car pattern))))- (if retval- (f-cons (accum-any) retval)- #f))))))-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-scheme</code>.</p>-- </article>diff --git a/libraries/codemirror/mode/shell/index.html b/libraries/codemirror/mode/shell/index.htmldeleted file mode 100644index a844c1a40b..0000000000--- a/libraries/codemirror/mode/shell/index.html+++ /dev/null@@ -1,66 +0,0 @@-<!doctype html>--<title>CodeMirror: Shell mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel=stylesheet href=../../lib/codemirror.css>-<script src=../../lib/codemirror.js></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src=shell.js></script>-<style type=text/css>- .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}-</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Shell</a>- </ul>-</div>--<article>-<h2>Shell mode</h2>---<textarea id=code>-#!/bin/bash--# clone the repository-git clone http://github.com/garden/tree--# generate HTTPS credentials-cd tree-openssl genrsa -aes256 -out https.key 1024-openssl req -new -nodes -key https.key -out https.csr-openssl x509 -req -days 365 -in https.csr -signkey https.key -out https.crt-cp https.key{,.orig}-openssl rsa -in https.key.orig -out https.key--# start the server in HTTPS mode-cd web-sudo node ../server.js 443 'yes' >> ../node.log &--# here is how to stop the server-for pid in `ps aux | grep 'node ../server.js' | awk '{print $2}'` ; do- sudo kill -9 $pid 2> /dev/null-done--exit 0</textarea>--<script>- var editor = CodeMirror.fromTextArea(document.getElementById('code'), {- mode: 'shell',- lineNumbers: true,- matchBrackets: true- });-</script>--<p><strong>MIME types defined:</strong> <code>text/x-sh</code>, <code>application/x-sh</code>.</p>-</article>diff --git a/libraries/codemirror/mode/shell/test.js b/libraries/codemirror/mode/shell/test.jsdeleted file mode 100644index 7571d907de..0000000000--- a/libraries/codemirror/mode/shell/test.js+++ /dev/null@@ -1,73 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({}, "shell");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }-- MT("var",- "text [def $var] text");- MT("varBraces",- "text[def ${var}]text");- MT("varVar",- "text [def $a$b] text");- MT("varBracesVarBraces",- "text[def ${a}${b}]text");-- MT("singleQuotedVar",- "[string 'text $var text']");- MT("singleQuotedVarBraces",- "[string 'text ${var} text']");-- MT("doubleQuotedVar",- '[string "text ][def $var][string text"]');- MT("doubleQuotedVarBraces",- '[string "text][def ${var}][string text"]');- MT("doubleQuotedVarPunct",- '[string "text ][def $@][string text"]');- MT("doubleQuotedVarVar",- '[string "][def $a$b][string "]');- MT("doubleQuotedVarBracesVarBraces",- '[string "][def ${a}${b}][string "]');-- MT("notAString",- "text\\'text");- MT("escapes",- "outside\\'\\\"\\`\\\\[string \"inside\\`\\'\\\"\\\\`\\$notAVar\"]outside\\$\\(notASubShell\\)");-- MT("subshell",- "[builtin echo] [quote $(whoami)] s log, stardate [quote `date`].");- MT("doubleQuotedSubshell",- "[builtin echo] [string \"][quote $(whoami)][string 's log, stardate `date`.\"]");-- MT("hashbang",- "[meta #!/bin/bash]");- MT("comment",- "text [comment # Blurb]");-- MT("numbers",- "[number 0] [number 1] [number 2]");- MT("keywords",- "[keyword while] [atom true]; [keyword do]",- " [builtin sleep] [number 3]",- "[keyword done]");- MT("options",- "[builtin ls] [attribute -l] [attribute --human-readable]");- MT("operator",- "[def var][operator =]value");-- MT("doubleParens",- "foo [quote $((bar))]")-- MT("nested braces",- "[builtin echo] [def ${A[${B}]]}]")-- MT("strings in parens",- "[def FOO][operator =]([quote $(<][string \"][def $MYDIR][string \"][quote /myfile grep ][string 'hello$'][quote )])")-- MT ("string ending in dollar",- '[def a][operator =][string "xyz$"]; [def b][operator =][string "y"]')-- MT ("quote ending in dollar",- "[quote $(echo a$)]")-})();diff --git a/libraries/codemirror/mode/sieve/index.html b/libraries/codemirror/mode/sieve/index.htmldeleted file mode 100644index 36369acba2..0000000000--- a/libraries/codemirror/mode/sieve/index.html+++ /dev/null@@ -1,93 +0,0 @@-<!doctype html>--<title>CodeMirror: Sieve (RFC5228) mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="sieve.js"></script>-<style>.CodeMirror {background: #f8f8f8;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Sieve (RFC5228)</a>- </ul>-</div>--<article>-<h2>Sieve (RFC5228) mode</h2>-<form><textarea id="code" name="code">-#-# Example Sieve Filter-# Declare any optional features or extension used by the script-#--require ["fileinto", "reject"];--#-# Reject any large messages (note that the four leading dots get-# "stuffed" to three)-#-if size :over 1M-{- reject text:-Please do not send me large attachments.-Put your file on a server and send me the URL.-Thank you.-.... Fred-.-;- stop;-}--#-# Handle messages from known mailing lists-# Move messages from IETF filter discussion list to filter folder-#-if header :is "Sender" "[email protected]"-{- fileinto "filter"; # move to "filter" folder-}-#-# Keep all messages to or from people in my company-#-elsif address :domain :is ["From", "To"] "example.com"-{- keep; # keep in "In" folder-}--#-# Try and catch unsolicited email. If a message is not to me,-# or it contains a subject known to be spam, file it away.-#-elsif anyof (not address :all :contains- ["To", "Cc", "Bcc"] "[email protected]",- header :matches "subject"- ["*make*money*fast*", "*university*dipl*mas*"])-{- # If message header does not contain my address,- # it's from a list.- fileinto "spam"; # move to "spam" folder-}-else-{- # Move all other (non-company) mail to "personal"- # folder.- fileinto "personal";-}-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});- </script>-- <p><strong>MIME types defined:</strong> <code>application/sieve</code>.</p>-- </article>diff --git a/libraries/codemirror/mode/slim/index.html b/libraries/codemirror/mode/slim/index.htmldeleted file mode 100644index 7aebf0aef1..0000000000--- a/libraries/codemirror/mode/slim/index.html+++ /dev/null@@ -1,96 +0,0 @@-<!doctype html>--<title>CodeMirror: SLIM mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<link rel="stylesheet" href="../../theme/ambiance.css">-<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>-<script src="https://code.jquery.com/ui/1.11.0/jquery-ui.min.js"></script>-<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css">-<script src="../../lib/codemirror.js"></script>-<script src="../xml/xml.js"></script>-<script src="../htmlembedded/htmlembedded.js"></script>-<script src="../htmlmixed/htmlmixed.js"></script>-<script src="../coffeescript/coffeescript.js"></script>-<script src="../javascript/javascript.js"></script>-<script src="../ruby/ruby.js"></script>-<script src="../markdown/markdown.js"></script>-<script src="slim.js"></script>-<style>.CodeMirror {background: #f8f8f8;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">SLIM</a>- </ul>-</div>--<article>- <h2>SLIM mode</h2>- <form><textarea id="code" name="code">-body- table- - for user in users- td id="user_#{user.id}" class=user.role- a href=user_action(user, :edit) Edit #{user.name}- a href=(path_to_user user) = user.name-body- h1(id="logo") = page_logo- h2[id="tagline" class="small tagline"] = page_tagline--h2[id="tagline"- class="small tagline"] = page_tagline--h1 id = "logo" = page_logo-h2 [ id = "tagline" ] = page_tagline--/ comment- second line-/! html comment- second line-<!-- html comment -->-<a href="#{'hello' if set}">link</a>-a.slim href="work" disabled=false running==:atom Text <b>bold</b>-.clazz data-id="test" == 'hello' unless quark- | Text mode #{12}- Second line-= x ||= :ruby_atom-#menu.left- - @env.each do |x|- li: a = x-*@dyntag attr="val"-.first *{:class => [:second, :third]} Text-.second class=["text","more"]-.third class=:text,:symbol-- </textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- theme: "ambiance",- mode: "application/x-slim"- });- $('.CodeMirror').resizable({- resize: function() {- editor.setSize($(this).width(), $(this).height());- //editor.refresh();- }- });- </script>-- <p><strong>MIME types defined:</strong> <code>application/x-slim</code>.</p>-- <p>- <strong>Parsing/Highlighting Tests:</strong>- <a href="../../test/index.html#slim_*">normal</a>,- <a href="../../test/index.html#verbose,slim_*">verbose</a>.- </p>-</article>diff --git a/libraries/codemirror/mode/slim/test.js b/libraries/codemirror/mode/slim/test.jsdeleted file mode 100644index 991797fc88..0000000000--- a/libraries/codemirror/mode/slim/test.js+++ /dev/null@@ -1,96 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--// Slim Highlighting for CodeMirror copyright (c) HicknHack Software Gmbh--(function() {- var mode = CodeMirror.getMode({tabSize: 4, indentUnit: 2}, "slim");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }-- // Requires at least one media query- MT("elementName",- "[tag h1] Hey There");-- MT("oneElementPerLine",- "[tag h1] Hey There .h2");-- MT("idShortcut",- "[attribute&def #test] Hey There");-- MT("tagWithIdShortcuts",- "[tag h1][attribute&def #test] Hey There");-- MT("classShortcut",- "[attribute&qualifier .hello] Hey There");-- MT("tagWithIdAndClassShortcuts",- "[tag h1][attribute&def #test][attribute&qualifier .hello] Hey There");-- MT("docType",- "[keyword doctype] xml");-- MT("comment",- "[comment / Hello WORLD]");-- MT("notComment",- "[tag h1] This is not a / comment ");-- MT("attributes",- "[tag a]([attribute title]=[string \"test\"]) [attribute href]=[string \"link\"]}");-- MT("multiLineAttributes",- "[tag a]([attribute title]=[string \"test\"]",- " ) [attribute href]=[string \"link\"]}");-- MT("htmlCode",- "[tag&bracket <][tag h1][tag&bracket >]Title[tag&bracket </][tag h1][tag&bracket >]");-- MT("rubyBlock",- "[operator&special =][variable-2 @item]");-- MT("selectorRubyBlock",- "[tag a][attribute&qualifier .test][operator&special =] [variable-2 @item]");-- MT("nestedRubyBlock",- "[tag a]",- " [operator&special =][variable puts] [string \"test\"]");-- MT("multilinePlaintext",- "[tag p]",- " | Hello,",- " World");-- MT("multilineRuby",- "[tag p]",- " [comment /# this is a comment]",- " [comment and this is a comment too]",- " | Date/Time",- " [operator&special -] [variable now] [operator =] [tag DateTime][operator .][property now]",- " [tag strong][operator&special =] [variable now]",- " [operator&special -] [keyword if] [variable now] [operator >] [tag DateTime][operator .][property parse]([string \"December 31, 2006\"])",- " [operator&special =][string \"Happy\"]",- " [operator&special =][string \"Belated\"]",- " [operator&special =][string \"Birthday\"]");-- MT("multilineComment",- "[comment /]",- " [comment Multiline]",- " [comment Comment]");-- MT("hamlAfterRubyTag",- "[attribute&qualifier .block]",- " [tag strong][operator&special =] [variable now]",- " [attribute&qualifier .test]",- " [operator&special =][variable now]",- " [attribute&qualifier .right]");-- MT("stretchedRuby",- "[operator&special =] [variable puts] [string \"Hello\"],",- " [string \"World\"]");-- MT("interpolationInHashAttribute",- "[tag div]{[attribute id] = [string \"]#{[variable test]}[string _]#{[variable ting]}[string \"]} test");-- MT("interpolationInHTMLAttribute",- "[tag div]([attribute title]=[string \"]#{[variable test]}[string _]#{[variable ting]()}[string \"]) Test");-})();diff --git a/libraries/codemirror/mode/smalltalk/index.html b/libraries/codemirror/mode/smalltalk/index.htmldeleted file mode 100644index 2dd45a2060..0000000000--- a/libraries/codemirror/mode/smalltalk/index.html+++ /dev/null@@ -1,68 +0,0 @@-<!doctype html>--<title>CodeMirror: Smalltalk mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="smalltalk.js"></script>-<style>- .CodeMirror {border: 2px solid #dee; border-right-width: 10px;}- .CodeMirror-gutter {border: none; background: #dee;}- .CodeMirror-gutter pre {color: white; font-weight: bold;}- </style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Smalltalk</a>- </ul>-</div>--<article>-<h2>Smalltalk mode</h2>-<form><textarea id="code" name="code">-"- This is a test of the Smalltalk code-"-Seaside.WAComponent subclass: #MyCounter [- | count |- MyCounter class >> canBeRoot [ ^true ]-- initialize [- super initialize.- count := 0.- ]- states [ ^{ self } ]- renderContentOn: html [- html heading: count.- html anchor callback: [ count := count + 1 ]; with: '++'.- html space.- html anchor callback: [ count := count - 1 ]; with: '--'.- ]-]--MyCounter registerAsApplication: 'mycounter'-</textarea></form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- matchBrackets: true,- mode: "text/x-stsrc",- indentUnit: 4- });- </script>-- <p>Simple Smalltalk mode.</p>-- <p><strong>MIME types defined:</strong> <code>text/x-stsrc</code>.</p>- </article>diff --git a/libraries/codemirror/mode/smarty/index.html b/libraries/codemirror/mode/smarty/index.htmldeleted file mode 100644index 2082916d16..0000000000--- a/libraries/codemirror/mode/smarty/index.html+++ /dev/null@@ -1,138 +0,0 @@-<!doctype html>--<title>CodeMirror: Smarty mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../xml/xml.js"></script>-<script src="smarty.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Smarty</a>- </ul>-</div>--<article>-<h2>Smarty mode</h2>-<form><textarea id="code" name="code">-{extends file="parent.tpl"}-{include file="template.tpl"}--{* some example Smarty content *}-{if isset($name) && $name == 'Blog'}- This is a {$var}.- {$integer = 451}, {$array[] = "a"}, {$stringvar = "string"}- {assign var='bob' value=$var.prop}-{elseif $name == $foo}- {function name=menu level=0}- {foreach $data as $entry}- {if is_array($entry)}- - {$entry@key}- {menu data=$entry level=$level+1}- {else}- {$entry}- {/if}- {/foreach}- {/function}-{/if}</textarea></form>--<p>Mode for Smarty version 2 or 3, which allows for custom delimiter tags.</p>--<p>Several configuration parameters are supported:</p>--<ul>- <li><code>leftDelimiter</code> and <code>rightDelimiter</code>,- which should be strings that determine where the Smarty syntax- starts and ends.</li>- <li><code>version</code>, which should be 2 or 3.</li>- <li><code>baseMode</code>, which can be a mode spec- like <code>"text/html"</code> to set a different background mode.</li>-</ul>--<p><strong>MIME types defined:</strong> <code>text/x-smarty</code></p>--<h3>Smarty 2, custom delimiters</h3>--<form><textarea id="code2" name="code2">-{--extends file="parent.tpl"--}-{--include file="template.tpl"--}--{--* some example Smarty content *--}-{--if isset($name) && $name == 'Blog'--}- This is a {--$var--}.- {--$integer = 451--}, {--$array[] = "a"--}, {--$stringvar = "string"--}- {--assign var='bob' value=$var.prop--}-{--elseif $name == $foo--}- {--function name=menu level=0--}- {--foreach $data as $entry--}- {--if is_array($entry)--}- - {--$entry@key--}- {--menu data=$entry level=$level+1--}- {--else--}- {--$entry--}- {--/if--}- {--/foreach--}- {--/function--}-{--/if--}</textarea></form>--<h3>Smarty 3</h3>--<textarea id="code3" name="code3">-Nested tags {$foo={counter one=1 two={inception}}+3} are now valid in Smarty 3.--<script>-function test() {- console.log("Smarty 3 permits single curly braces followed by whitespace to NOT slip into Smarty mode.");-}-</script>--{assign var=foo value=[1,2,3]}-{assign var=foo value=['y'=>'yellow','b'=>'blue']}-{assign var=foo value=[1,[9,8],3]}--{$foo=$bar+2} {* a comment *}-{$foo.bar=1} {* another comment *}-{$foo = myfunct(($x+$y)*3)}-{$foo = strlen($bar)}-{$foo.bar.baz=1}, {$foo[]=1}--Smarty "dot" syntax (note: embedded {} are used to address ambiguities):--{$foo.a.b.c} => $foo['a']['b']['c']-{$foo.a.$b.c} => $foo['a'][$b]['c']-{$foo.a.{$b+4}.c} => $foo['a'][$b+4]['c']-{$foo.a.{$b.c}} => $foo['a'][$b['c']]--{$object->method1($x)->method2($y)}</textarea>--<script>-var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- mode: "smarty"-});-var editor = CodeMirror.fromTextArea(document.getElementById("code2"), {- lineNumbers: true,- mode: {- name: "smarty",- leftDelimiter: "{--",- rightDelimiter: "--}"- }-});-var editor = CodeMirror.fromTextArea(document.getElementById("code3"), {- lineNumbers: true,- mode: {name: "smarty", version: 3, baseMode: "text/html"}-});-</script>--</article>diff --git a/libraries/codemirror/mode/solr/index.html b/libraries/codemirror/mode/solr/index.htmldeleted file mode 100644index 52eb87d99c..0000000000--- a/libraries/codemirror/mode/solr/index.html+++ /dev/null@@ -1,57 +0,0 @@-<!doctype html>--<title>CodeMirror: Solr mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="solr.js"></script>-<style>- .CodeMirror {- border-top: 1px solid black;- border-bottom: 1px solid black;- }-- .CodeMirror .cm-operator {- color: orange;- }-</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Solr</a>- </ul>-</div>--<article>- <h2>Solr mode</h2>-- <div>- <textarea id="code" name="code">author:Camus--title:"The Rebel" and author:Camus--philosophy:Existentialism -author:Kierkegaard--hardToSpell:Dostoevsky~--published:[194* TO 1960] and author:(Sartre or "Simone de Beauvoir")</textarea>- </div>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: 'solr',- lineNumbers: true- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-solr</code>.</p>-</article>diff --git a/libraries/codemirror/mode/soy/index.html b/libraries/codemirror/mode/soy/index.htmldeleted file mode 100644index 718e955593..0000000000--- a/libraries/codemirror/mode/soy/index.html+++ /dev/null@@ -1,68 +0,0 @@-<!doctype html>--<title>CodeMirror: Soy (Closure Template) mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="../htmlmixed/htmlmixed.js"></script>-<script src="../xml/xml.js"></script>-<script src="../javascript/javascript.js"></script>-<script src="../css/css.js"></script>-<script src="soy.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Soy (Closure Template)</a>- </ul>-</div>--<article>-<h2>Soy (Closure Template) mode</h2>-<form><textarea id="code" name="code">-{namespace example}--/**- * Says hello to the world.- */-{template .helloWorld}- {@param name: string}- {@param? score: number}- Hello <b>{$name}</b>!- <div>- {if $score}- <em>{$score} points</em>- {else}- no score- {/if}- </div>-{/template}--{template .alertHelloWorld kind="js"}- alert('Hello World');-{/template}-</textarea></form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- matchBrackets: true,- mode: "text/x-soy",- indentUnit: 2,- indentWithTabs: false- });- </script>-- <p>A mode for <a href="https://developers.google.com/closure/templates/">Closure Templates</a> (Soy).</p>- <p><strong>MIME type defined:</strong> <code>text/x-soy</code>.</p>- </article>diff --git a/libraries/codemirror/mode/soy/test.js b/libraries/codemirror/mode/soy/test.jsdeleted file mode 100644index 6c1fd8d630..0000000000--- a/libraries/codemirror/mode/soy/test.js+++ /dev/null@@ -1,204 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({indentUnit: 2}, "soy");- function MT(name) {test.mode(name, mode, Array.prototype.slice.call(arguments, 1));}-- // Test of small keywords and words containing them.- MT('keywords-test',- '[keyword {] [keyword as] worrying [keyword and] notorious [keyword as]',- ' the Fandor[operator -]alias assassin, [keyword or]',- ' Corcand cannot fit [keyword in] [keyword }]');-- MT('let-test',- '[keyword {template] [def .name][keyword }]',- ' [keyword {let] [def $name]: [string "world"][keyword /}]',- ' [tag&bracket <][tag h1][tag&bracket >]',- ' Hello, [keyword {][variable-2 $name][keyword }]',- ' [tag&bracket </][tag h1][tag&bracket >]',- '[keyword {/template}]',- '');-- MT('function-test',- '[keyword {] [callee&variable css]([string "MyClass"])[keyword }]',- '[tag&bracket <][tag input] [attribute value]=[string "]' +- '[keyword {] [callee&variable index]([variable-2&error $list])[keyword }]' +- '[string "][tag&bracket />]');-- MT('namespace-test',- '[keyword {namespace] [variable namespace][keyword }]')-- MT('namespace-with-attribute-test',- '[keyword {namespace] [variable my.namespace.templates] ' +- '[attribute requirecss]=[string "my.namespace"][keyword }]');-- MT('operators-test',- '[keyword {] [atom 1] [operator ==] [atom 1] [keyword }]',- '[keyword {] [atom 1] [operator !=] [atom 2] [keyword }]',- '[keyword {] [atom 2] [operator +] [atom 2] [keyword }]',- '[keyword {] [atom 2] [operator -] [atom 2] [keyword }]',- '[keyword {] [atom 2] [operator *] [atom 2] [keyword }]',- '[keyword {] [atom 2] [operator /] [atom 2] [keyword }]',- '[keyword {] [atom 2] [operator %] [atom 2] [keyword }]',- '[keyword {] [atom 2] [operator <=] [atom 2] [keyword }]',- '[keyword {] [atom 2] [operator >=] [atom 2] [keyword }]',- '[keyword {] [atom 3] [operator >] [atom 2] [keyword }]',- '[keyword {] [atom 2] [operator >] [atom 3] [keyword }]',- '[keyword {] [atom null] [operator ?:] [string ""] [keyword }]',- '[keyword {] [variable-2&error $variable] [operator |] safeHtml [keyword }]')-- MT('primitive-test',- '[keyword {] [atom true] [keyword }]',- '[keyword {] [atom false] [keyword }]',- '[keyword {] truethy [keyword }]',- '[keyword {] falsey [keyword }]',- '[keyword {] [atom 42] [keyword }]',- '[keyword {] [atom .42] [keyword }]',- '[keyword {] [atom 0.42] [keyword }]',- '[keyword {] [atom -0.42] [keyword }]',- '[keyword {] [atom -.2] [keyword }]',- '[keyword {] [atom 6.03e23] [keyword }]',- '[keyword {] [atom -0.03e0] [keyword }]',- '[keyword {] [atom 0x1F] [keyword }]',- '[keyword {] [atom 0x1F00BBEA] [keyword }]');-- MT('param-type-test',- '[keyword {@param] [def a]: ' +- '[type list]<[[[type a]: [type int], ' +- '[type b]: [type map]<[type string], ' +- '[type bool]>]]>][keyword }]',- '[keyword {@param] [def unknown]: [type ?][keyword }]',- '[keyword {@param] [def list]: [type list]<[type ?]>[keyword }]');-- MT('undefined-var',- '[keyword {][variable-2&error $var]');-- MT('param-scope-test',- '[keyword {template] [def .a][keyword }]',- ' [keyword {@param] [def x]: [type string][keyword }]',- ' [keyword {][variable-2 $x][keyword }]',- '[keyword {/template}]',- '',- '[keyword {template] [def .b][keyword }]',- ' [keyword {][variable-2&error $x][keyword }]',- '[keyword {/template}]',- '');-- MT('if-variable-test',- '[keyword {if] [variable-2&error $showThing][keyword }]',- ' Yo!',- '[keyword {/if}]',- '');-- MT('defined-if-variable-test',- '[keyword {template] [def .foo][keyword }]',- ' [keyword {@param?] [def showThing]: [type bool][keyword }]',- ' [keyword {if] [variable-2 $showThing][keyword }]',- ' Yo!',- ' [keyword {/if}]',- '[keyword {/template}]',- '');-- MT('template-calls-test',- '[keyword {call] [variable-2 .foo][keyword /}]',- '[keyword {call] [variable foo][keyword /}]',- '[keyword {call] [variable foo][keyword }] [keyword {/call}]',- '[keyword {call] [variable first1.second.third_3][keyword /}]',- '[keyword {call] [variable first1.second.third_3] [keyword }] [keyword {/call}]',- '');-- MT('foreach-scope-test',- '[keyword {@param] [def bar]: [type string][keyword }]',- '[keyword {foreach] [def $foo] [keyword in] [variable-2&error $foos][keyword }]',- ' [keyword {][variable-2 $foo][keyword }]',- '[keyword {/foreach}]',- '[keyword {][variable-2&error $foo][keyword }]',- '[keyword {][variable-2 $bar][keyword }]');-- MT('foreach-ifempty-indent-test',- '[keyword {foreach] [def $foo] [keyword in] [variable-2&error $foos][keyword }]',- ' something',- '[keyword {ifempty}]',- ' nothing',- '[keyword {/foreach}]',- '');-- MT('nested-kind-test',- '[keyword {template] [def .foo] [attribute kind]=[string "html"][keyword }]',- ' [tag&bracket <][tag div][tag&bracket >]',- ' [keyword {call] [variable-2 .bar][keyword }]',- ' [keyword {param] [property propertyName] [attribute kind]=[string "js"][keyword }]',- ' [keyword var] [def bar] [operator =] [number 5];',- ' [keyword {/param}]',- ' [keyword {/call}]',- ' [tag&bracket </][tag div][tag&bracket >]',- '[keyword {/template}]',- '');-- MT('tag-starting-with-function-call-is-not-a-keyword',- '[keyword {][callee&variable index]([variable-2&error $foo])[keyword }]',- '[keyword {css] [string "some-class"][keyword }]',- '[keyword {][callee&variable css]([string "some-class"])[keyword }]',- '');-- MT('allow-missing-colon-in-@param',- '[keyword {template] [def .foo][keyword }]',- ' [keyword {@param] [def showThing] [type bool][keyword }]',- ' [keyword {if] [variable-2 $showThing][keyword }]',- ' Yo!',- ' [keyword {/if}]',- '[keyword {/template}]',- '');-- MT('single-quote-strings',- '[keyword {][string "foo"] [string \'bar\'][keyword }]',- '');-- MT('literal-comments',- '[keyword {literal}]/* comment */ // comment[keyword {/literal}]');-- MT('highlight-command-at-eol',- '[keyword {msg]',- ' [keyword }]');-- MT('switch-indent-test',- '[keyword {let] [def $marbles]: [atom 5] [keyword /}]',- '[keyword {switch] [variable-2 $marbles][keyword }]',- ' [keyword {case] [atom 0][keyword }]',- ' No marbles',- ' [keyword {default}]',- ' At least 1 marble',- '[keyword {/switch}]',- '');-- MT('if-elseif-else-indent',- '[keyword {if] [atom true][keyword }]',- ' [keyword {let] [def $a]: [atom 5] [keyword /}]',- '[keyword {elseif] [atom false][keyword }]',- ' [keyword {let] [def $bar]: [atom 5] [keyword /}]',- '[keyword {else}]',- ' [keyword {let] [def $bar]: [atom 5] [keyword /}]',- '[keyword {/if}]');-- MT('msg-fallbackmsg-indent',- '[keyword {msg] [attribute desc]=[string "A message"][keyword }]',- ' A message',- '[keyword {fallbackmsg] [attribute desc]=[string "A message"][keyword }]',- ' Old message',- '[keyword {/msg}]');-- MT('special-chars',- '[keyword {sp}]',- '[keyword {nil}]',- '[keyword {\\r}]',- '[keyword {\\n}]',- '[keyword {\\t}]',- '[keyword {lb}]',- '[keyword {rb}]');-- MT('wrong-closing-tag',- '[keyword {if] [atom true][keyword }]',- ' Optional',- '[keyword&error {/badend][keyword }]');-})();diff --git a/libraries/codemirror/mode/sparql/index.html b/libraries/codemirror/mode/sparql/index.htmldeleted file mode 100644index dfd3f9070a..0000000000--- a/libraries/codemirror/mode/sparql/index.html+++ /dev/null@@ -1,61 +0,0 @@-<!doctype html>--<title>CodeMirror: SPARQL mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="sparql.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">SPARQL</a>- </ul>-</div>--<article>-<h2>SPARQL mode</h2>-<form><textarea id="code" name="code">-PREFIX a: <http://www.w3.org/2000/10/annotation-ns#>-PREFIX dc: <http://purl.org/dc/elements/1.1/>-PREFIX foaf: <http://xmlns.com/foaf/0.1/>-PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>--# Comment!--SELECT ?given ?family-WHERE {- {- ?annot a:annotates <http://www.w3.org/TR/rdf-sparql-query/> .- ?annot dc:creator ?c .- OPTIONAL {?c foaf:givenName ?given ;- foaf:familyName ?family }- } UNION {- ?c !foaf:knows/foaf:knows? ?thing.- ?thing rdfs- } MINUS {- ?thing rdfs:label "剛柔流"@jp- }- FILTER isBlank(?c)-}-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: "application/sparql-query",- matchBrackets: true- });- </script>-- <p><strong>MIME types defined:</strong> <code>application/sparql-query</code>.</p>-- </article>diff --git a/libraries/codemirror/mode/spreadsheet/index.html b/libraries/codemirror/mode/spreadsheet/index.htmldeleted file mode 100644index 6589bcc727..0000000000--- a/libraries/codemirror/mode/spreadsheet/index.html+++ /dev/null@@ -1,42 +0,0 @@-<!doctype html>--<title>CodeMirror: Spreadsheet mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="spreadsheet.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Spreadsheet</a>- </ul>-</div>--<article>- <h2>Spreadsheet mode</h2>- <form><textarea id="code" name="code">=IF(A1:B2, TRUE, FALSE) / 100</textarea></form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- matchBrackets: true,- extraKeys: {"Tab": "indentAuto"}- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-spreadsheet</code>.</p>-- <h3>The Spreadsheet Mode</h3>- <p> Created by <a href="https://github.com/robertleeplummerjr">Robert Plummer</a></p>-</article>diff --git a/libraries/codemirror/mode/sql/index.html b/libraries/codemirror/mode/sql/index.htmldeleted file mode 100644index 5791c968c8..0000000000--- a/libraries/codemirror/mode/sql/index.html+++ /dev/null@@ -1,89 +0,0 @@-<!doctype html>--<title>CodeMirror: SQL Mode for CodeMirror</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css" />-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="sql.js"></script>-<link rel="stylesheet" href="../../addon/hint/show-hint.css" />-<script src="../../addon/hint/show-hint.js"></script>-<script src="../../addon/hint/sql-hint.js"></script>-<style>-.CodeMirror {- border-top: 1px solid black;- border-bottom: 1px solid black;-}- </style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">SQL Mode for CodeMirror</a>- </ul>-</div>--<article>-<h2>SQL Mode for CodeMirror</h2>-<form>- <textarea id="code" name="code">-- SQL Mode for CodeMirror-SELECT SQL_NO_CACHE DISTINCT- @var1 AS `val1`, @'val2', @global.'sql_mode',- 1.1 AS `float_val`, .14 AS `another_float`, 0.09e3 AS `int_with_esp`,- 0xFA5 AS `hex`, x'fa5' AS `hex2`, 0b101 AS `bin`, b'101' AS `bin2`,- DATE '1994-01-01' AS `sql_date`, { T "1994-01-01" } AS `odbc_date`,- 'my string', _utf8'your string', N'her string',- TRUE, FALSE, UNKNOWN- FROM DUAL- -- space needed after '--'- # 1 line comment- /* multiline- comment! */- LIMIT 1 OFFSET 0;-</textarea>- </form>- <p><strong>MIME types defined:</strong>- <code><a href="?mime=text/x-sql">text/x-sql</a></code>,- <code><a href="?mime=text/x-mysql">text/x-mysql</a></code>,- <code><a href="?mime=text/x-mariadb">text/x-mariadb</a></code>,- <code><a href="?mime=text/x-cassandra">text/x-cassandra</a></code>,- <code><a href="?mime=text/x-plsql">text/x-plsql</a></code>,- <code><a href="?mime=text/x-mssql">text/x-mssql</a></code>,- <code><a href="?mime=text/x-hive">text/x-hive</a></code>,- <code><a href="?mime=text/x-pgsql">text/x-pgsql</a></code>,- <code><a href="?mime=text/x-gql">text/x-gql</a></code>,- <code><a href="?mime=text/x-gpsql">text/x-gpsql</a></code>.- <code><a href="?mime=text/x-esper">text/x-esper</a></code>.- </p>-<script>-window.onload = function() {- var mime = 'text/x-mariadb';- // get mime type- if (window.location.href.indexOf('mime=') > -1) {- mime = window.location.href.substr(window.location.href.indexOf('mime=') + 5);- }- window.editor = CodeMirror.fromTextArea(document.getElementById('code'), {- mode: mime,- indentWithTabs: true,- smartIndent: true,- lineNumbers: true,- matchBrackets : true,- autofocus: true,- extraKeys: {"Ctrl-Space": "autocomplete"},- hintOptions: {tables: {- users: ["name", "score", "birthDate"],- countries: ["name", "population", "size"]- }}- });-};-</script>--</article>diff --git a/libraries/codemirror/mode/stex/index.html b/libraries/codemirror/mode/stex/index.htmldeleted file mode 100644index 225f485fe2..0000000000--- a/libraries/codemirror/mode/stex/index.html+++ /dev/null@@ -1,116 +0,0 @@-<!doctype html>--<title>CodeMirror: sTeX mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="stex.js"></script>-<style>.CodeMirror {background: #f8f8f8;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">sTeX</a>- </ul>-</div>--<article>-<h2>sTeX mode</h2>-<form><textarea id="code" name="code">-\begin{module}[id=bbt-size]-\importmodule[balanced-binary-trees]{balanced-binary-trees}-\importmodule[\KWARCslides{dmath/en/cardinality}]{cardinality}--\begin{frame}- \frametitle{Size Lemma for Balanced Trees}- \begin{itemize}- \item- \begin{assertion}[id=size-lemma,type=lemma]- Let $G=\tup{V,E}$ be a \termref[cd=binary-trees]{balanced binary tree}- of \termref[cd=graph-depth,name=vertex-depth]{depth}$n>i$, then the set- $\defeq{\livar{V}i}{\setst{\inset{v}{V}}{\gdepth{v} = i}}$ of- \termref[cd=graphs-intro,name=node]{nodes} at- \termref[cd=graph-depth,name=vertex-depth]{depth} $i$ has- \termref[cd=cardinality,name=cardinality]{cardinality} $\power2i$.- \end{assertion}- \item- \begin{sproof}[id=size-lemma-pf,proofend=,for=size-lemma]{via induction over the depth $i$.}- \begin{spfcases}{We have to consider two cases}- \begin{spfcase}{$i=0$}- \begin{spfstep}[display=flow]- then $\livar{V}i=\set{\livar{v}r}$, where $\livar{v}r$ is the root, so- $\eq{\card{\livar{V}0},\card{\set{\livar{v}r}},1,\power20}$.- \end{spfstep}- \end{spfcase}- \begin{spfcase}{$i>0$}- \begin{spfstep}[display=flow]- then $\livar{V}{i-1}$ contains $\power2{i-1}$ vertexes- \begin{justification}[method=byIH](IH)\end{justification}- \end{spfstep}- \begin{spfstep}- By the \begin{justification}[method=byDef]definition of a binary- tree\end{justification}, each $\inset{v}{\livar{V}{i-1}}$ is a leaf or has- two children that are at depth $i$.- \end{spfstep}- \begin{spfstep}- As $G$ is \termref[cd=balanced-binary-trees,name=balanced-binary-tree]{balanced} and $\gdepth{G}=n>i$, $\livar{V}{i-1}$ cannot contain- leaves.- \end{spfstep}- \begin{spfstep}[type=conclusion]- Thus $\eq{\card{\livar{V}i},{\atimes[cdot]{2,\card{\livar{V}{i-1}}}},{\atimes[cdot]{2,\power2{i-1}}},\power2i}$.- \end{spfstep}- \end{spfcase}- \end{spfcases}- \end{sproof}- \item- \begin{assertion}[id=fbbt,type=corollary]- A fully balanced tree of depth $d$ has $\power2{d+1}-1$ nodes.- \end{assertion}- \item- \begin{sproof}[for=fbbt,id=fbbt-pf]{}- \begin{spfstep}- Let $\defeq{G}{\tup{V,E}}$ be a fully balanced tree- \end{spfstep}- \begin{spfstep}- Then $\card{V}=\Sumfromto{i}1d{\power2i}= \power2{d+1}-1$.- \end{spfstep}- \end{sproof}- \end{itemize}- \end{frame}-\begin{note}- \begin{omtext}[type=conclusion,for=binary-tree]- This shows that balanced binary trees grow in breadth very quickly, a consequence of- this is that they are very shallow (and this compute very fast), which is the essence of- the next result.- \end{omtext}-\end{note}-\end{module}--%%% Local Variables:-%%% mode: LaTeX-%%% TeX-master: "all"-%%% End: \end{document}-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});- </script>-- <p>sTeX mode supports this option:</p>- <d1>- <dt><code>inMathMode: boolean</code></dt>- <dd>Whether to start parsing in math mode (default: <code>false</code>).</dd>- </d1>-- <p><strong>MIME types defined:</strong> <code>text/x-stex</code>.</p>-- <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#stex_*">normal</a>, <a href="../../test/index.html#verbose,stex_*">verbose</a>.</p>-- </article>diff --git a/libraries/codemirror/mode/stex/test.js b/libraries/codemirror/mode/stex/test.jsdeleted file mode 100644index b1dbcf4cd5..0000000000--- a/libraries/codemirror/mode/stex/test.js+++ /dev/null@@ -1,132 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({tabSize: 4}, "stex");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }-- MT("word",- "foo");-- MT("twoWords",- "foo bar");-- MT("beginEndDocument",- "[tag \\begin][bracket {][atom document][bracket }]",- "[tag \\end][bracket {][atom document][bracket }]");-- MT("beginEndEquation",- "[tag \\begin][bracket {][atom equation][bracket }]",- " E=mc^2",- "[tag \\end][bracket {][atom equation][bracket }]");-- MT("beginModule",- "[tag \\begin][bracket {][atom module][bracket }[[]]]");-- MT("beginModuleId",- "[tag \\begin][bracket {][atom module][bracket }[[]id=bbt-size[bracket ]]]");-- MT("importModule",- "[tag \\importmodule][bracket [[][string b-b-t][bracket ]]{][builtin b-b-t][bracket }]");-- MT("importModulePath",- "[tag \\importmodule][bracket [[][tag \\KWARCslides][bracket {][string dmath/en/cardinality][bracket }]]{][builtin card][bracket }]");-- MT("psForPDF",- "[tag \\PSforPDF][bracket [[][atom 1][bracket ]]{]#1[bracket }]");-- MT("comment",- "[comment % foo]");-- MT("tagComment",- "[tag \\item][comment % bar]");-- MT("commentTag",- " [comment % \\item]");-- MT("commentLineBreak",- "[comment %]",- "foo");-- MT("tagErrorCurly",- "[tag \\begin][error }][bracket {]");-- MT("tagErrorSquare",- "[tag \\item][error ]]][bracket {]");-- MT("commentCurly",- "[comment % }]");-- MT("tagHash",- "the [tag \\#] key");-- MT("tagNumber",- "a [tag \\$][atom 5] stetson");-- MT("tagPercent",- "[atom 100][tag \\%] beef");-- MT("tagAmpersand",- "L [tag \\&] N");-- MT("tagUnderscore",- "foo[tag \\_]bar");-- MT("tagBracketOpen",- "[tag \\emph][bracket {][tag \\{][bracket }]");-- MT("tagBracketClose",- "[tag \\emph][bracket {][tag \\}][bracket }]");-- MT("tagLetterNumber",- "section [tag \\S][atom 1]");-- MT("textTagNumber",- "para [tag \\P][atom 2]");-- MT("thinspace",- "x[tag \\,]y");-- MT("thickspace",- "x[tag \\;]y");-- MT("negativeThinspace",- "x[tag \\!]y");-- MT("periodNotSentence",- "J.\\ L.\\ is");-- MT("periodSentence",- "X[tag \\@]. The");-- MT("italicCorrection",- "[bracket {][tag \\em] If[tag \\/][bracket }] I");-- MT("tagBracket",- "[tag \\newcommand][bracket {][tag \\pop][bracket }]");-- MT("inlineMathTagFollowedByNumber",- "[keyword $][tag \\pi][number 2][keyword $]");-- MT("inlineMath",- "[keyword $][number 3][variable-2 x][tag ^][number 2.45]-[tag \\sqrt][bracket {][tag \\$\\alpha][bracket }] = [number 2][keyword $] other text");-- MT("inlineMathLatexStyle",- "[keyword \\(][number 3][variable-2 x][tag ^][number 2.45]-[tag \\sqrt][bracket {][tag \\$\\alpha][bracket }] = [number 2][keyword \\)] other text");-- MT("displayMath",- "More [keyword $$]\t[variable-2 S][tag ^][variable-2 n][tag \\sum] [variable-2 i][keyword $$] other text");-- MT("displayMath environment",- "[tag \\begin][bracket {][atom equation][bracket }] x [tag \\end][bracket {][atom equation][bracket }] other text");-- MT("displayMath environment with label",- "[tag \\begin][bracket {][atom equation][bracket }][tag \\label][bracket {][atom eq1][bracket }] x [tag \\end][bracket {][atom equation][bracket }] other text~[tag \\ref][bracket {][atom eq1][bracket }]");-- MT("mathWithComment",- "[keyword $][variable-2 x] [comment % $]",- "[variable-2 y][keyword $] other text");-- MT("lineBreakArgument",- "[tag \\\\][bracket [[][atom 1cm][bracket ]]]");-})();diff --git a/libraries/codemirror/mode/stylus/index.html b/libraries/codemirror/mode/stylus/index.htmldeleted file mode 100644index 491c14d55b..0000000000--- a/libraries/codemirror/mode/stylus/index.html+++ /dev/null@@ -1,106 +0,0 @@-<!doctype html>--<title>CodeMirror: Stylus mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">-<link rel="stylesheet" href="../../lib/codemirror.css">-<link rel="stylesheet" href="../../addon/hint/show-hint.css">-<script src="../../lib/codemirror.js"></script>-<script src="stylus.js"></script>-<script src="../../addon/hint/show-hint.js"></script>-<script src="../../addon/hint/css-hint.js"></script>-<style>.CodeMirror {background: #f8f8f8;} form{margin-bottom: .7em;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Stylus</a>- </ul>-</div>--<article>-<h2>Stylus mode</h2>-<form><textarea id="code" name="code">-/* Stylus mode */--#id,-.class,-article- font-family Arial, sans-serif--#id,-.class,-article {- font-family: Arial, sans-serif;-}--// Variables-font-size-base = 16px-line-height-base = 1.5-font-family-base = "Helvetica Neue", Helvetica, Arial, sans-serif-text-color = lighten(#000, 20%)--body- font font-size-base/line-height-base font-family-base- color text-color--body {- font: 400 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;- color: #333;-}--// Variables-link-color = darken(#428bca, 6.5%)-link-hover-color = darken(link-color, 15%)-link-decoration = none-link-hover-decoration = false--// Mixin-tab-focus()- outline thin dotted- outline 5px auto -webkit-focus-ring-color- outline-offset -2px--a- color link-color- if link-decoration- text-decoration link-decoration- &:hover- &:focus- color link-hover-color- if link-hover-decoration- text-decoration link-hover-decoration- &:focus- tab-focus()--a {- color: #3782c4;- text-decoration: none;-}-a:hover,-a:focus {- color: #2f6ea7;-}-a:focus {- outline: thin dotted;- outline: 5px auto -webkit-focus-ring-color;- outline-offset: -2px;-}-</textarea>-</form>-<script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- extraKeys: {"Ctrl-Space": "autocomplete"},- tabSize: 2- });-</script>--<p><strong>MIME types defined:</strong> <code>text/x-styl</code>.</p>-<p>Created by <a href="https://github.com/dmitrykiselyov">Dmitry Kiselyov</a></p>-</article>diff --git a/libraries/codemirror/mode/swift/index.html b/libraries/codemirror/mode/swift/index.htmldeleted file mode 100644index ce2a3a02f9..0000000000--- a/libraries/codemirror/mode/swift/index.html+++ /dev/null@@ -1,70 +0,0 @@-<!doctype html>--<title>CodeMirror: Swift mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="./swift.js"></script>-<style>- .CodeMirror { border: 2px inset #dee; }- </style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Swift</a>- </ul>-</div>--<article>-<h2>Swift mode</h2>-<form><textarea id="code" name="code">-protocol HeaderViewProtocol {- func setTitle(_ string: String)-}--struct AnyHeaderView {- let view: UIView- let headerView: HeaderViewProtocol- init<T: UIView>(view: T) where T: HeaderViewProtocol {- self.view = view- self.headerView = view- }-}--let header = AnyHeaderView(view: myView)-header.headerView.setTitle("hi")--struct HeaderView {- let view: UIView- let setTitle: (String) -> ()-}--var label = UILabel()-let header = HeaderView(view: label) { str in- label.text = str-}-header.setTitle("hello")-</textarea></form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- matchBrackets: true,- mode: "text/x-swift"- });- </script>-- <p>A simple mode for Swift</p>-- <p><strong>MIME types defined:</strong> <code>text/x-swift</code> (Swift code)</p>- </article>diff --git a/libraries/codemirror/mode/swift/test.js b/libraries/codemirror/mode/swift/test.jsdeleted file mode 100644index 8c93721d12..0000000000--- a/libraries/codemirror/mode/swift/test.js+++ /dev/null@@ -1,162 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({indentUnit: 2}, "swift");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }-- // Ensure all number types are properly represented.- MT("numbers",- "[keyword var] [def a] [operator =] [number 17]",- "[keyword var] [def b] [operator =] [number -0.5]",- "[keyword var] [def c] [operator =] [number 0.3456e-4]",- "[keyword var] [def d] [operator =] [number 345e2]",- "[keyword var] [def e] [operator =] [number 0o7324]",- "[keyword var] [def f] [operator =] [number 0b10010]",- "[keyword var] [def g] [operator =] [number -0x35ade]",- "[keyword var] [def h] [operator =] [number 0xaea.ep-13]",- "[keyword var] [def i] [operator =] [number 0x13ep6]");-- // Variable/class/etc definition.- MT("definition",- "[keyword var] [def a] [operator =] [number 5]",- "[keyword let] [def b][punctuation :] [variable-2 Int] [operator =] [number 10]",- "[keyword class] [def C] [punctuation {] [punctuation }]",- "[keyword struct] [def D] [punctuation {] [punctuation }]",- "[keyword enum] [def E] [punctuation {] [punctuation }]",- "[keyword extension] [def F] [punctuation {] [punctuation }]",- "[keyword protocol] [def G] [punctuation {] [punctuation }]",- "[keyword func] [def h][punctuation ()] [punctuation {] [punctuation }]",- "[keyword import] [def Foundation]",- "[keyword typealias] [def NewString] [operator =] [variable-2 String]",- "[keyword associatedtype] [def I]",- "[keyword for] [def j] [keyword in] [number 0][punctuation ..][operator <][number 3] [punctuation {] [punctuation }]");-- // Strings and string interpolation.- MT("strings",- "[keyword var] [def a][punctuation :] [variable-2 String] [operator =] [string \"test\"]",- "[keyword var] [def b][punctuation :] [variable-2 String] [operator =] [string \"\\(][variable a][string )\"]",- "[keyword var] [def c] [operator =] [string \"\"\"]",- "[string multi]",- "[string line]",- "[string \"test\"]",- "[string \"\"\"]",- "[variable print][punctuation (][string \"\"][punctuation )]");-- // Comments.- MT("comments",- "[comment // This is a comment]",- "[comment /* This is another comment */]",- "[keyword var] [def a] [operator =] [number 5] [comment // Third comment]");-- // Atoms.- MT("atoms",- "[keyword class] [def FooClass] [punctuation {]",- " [keyword let] [def fooBool][punctuation :] [variable-2 Bool][operator ?]",- " [keyword let] [def fooInt][punctuation :] [variable-2 Int][operator ?]",- " [keyword func] [keyword init][punctuation (][variable fooBool][punctuation :] [variable-2 Bool][punctuation ,] [variable barBool][punctuation :] [variable-2 Bool][punctuation )] [punctuation {]",- " [atom super][property .init][punctuation ()]",- " [atom self][property .fooBool] [operator =] [variable fooBool]",- " [variable fooInt] [operator =] [atom nil]",- " [keyword if] [variable barBool] [operator ==] [atom true] [punctuation {]",- " [variable print][punctuation (][string \"True!\"][punctuation )]",- " [punctuation }] [keyword else] [keyword if] [variable barBool] [operator ==] [atom false] [punctuation {]",- " [keyword for] [atom _] [keyword in] [number 0][punctuation ...][number 5] [punctuation {]",- " [variable print][punctuation (][string \"False!\"][punctuation )]",- " [punctuation }]",- " [punctuation }]",- " [punctuation }]",- "[punctuation }]");-- // Types.- MT("types",- "[keyword var] [def a] [operator =] [variable-2 Array][operator <][variable-2 Int][operator >]",- "[keyword var] [def b] [operator =] [variable-2 Set][operator <][variable-2 Bool][operator >]",- "[keyword var] [def c] [operator =] [variable-2 Dictionary][operator <][variable-2 String][punctuation ,][variable-2 Character][operator >]",- "[keyword var] [def d][punctuation :] [variable-2 Int64][operator ?] [operator =] [variable-2 Optional][punctuation (][number 8][punctuation )]",- "[keyword func] [def e][punctuation ()] [operator ->] [variable-2 Void] [punctuation {]",- " [keyword var] [def e1][punctuation :] [variable-2 Float] [operator =] [number 1.2]",- "[punctuation }]",- "[keyword func] [def f][punctuation ()] [operator ->] [variable-2 Never] [punctuation {]",- " [keyword var] [def f1][punctuation :] [variable-2 Double] [operator =] [number 2.4]",- "[punctuation }]");-- // Operators.- MT("operators",- "[keyword var] [def a] [operator =] [number 1] [operator +] [number 2]",- "[keyword var] [def b] [operator =] [number 1] [operator -] [number 2]",- "[keyword var] [def c] [operator =] [number 1] [operator *] [number 2]",- "[keyword var] [def d] [operator =] [number 1] [operator /] [number 2]",- "[keyword var] [def e] [operator =] [number 1] [operator %] [number 2]",- "[keyword var] [def f] [operator =] [number 1] [operator |] [number 2]",- "[keyword var] [def g] [operator =] [number 1] [operator &] [number 2]",- "[keyword var] [def h] [operator =] [number 1] [operator <<] [number 2]",- "[keyword var] [def i] [operator =] [number 1] [operator >>] [number 2]",- "[keyword var] [def j] [operator =] [number 1] [operator ^] [number 2]",- "[keyword var] [def k] [operator =] [operator ~][number 1]",- "[keyword var] [def l] [operator =] [variable foo] [operator ?] [number 1] [punctuation :] [number 2]",- "[keyword var] [def m][punctuation :] [variable-2 Int] [operator =] [variable-2 Optional][punctuation (][number 8][punctuation )][operator !]");-- // Punctuation.- MT("punctuation",- "[keyword let] [def a] [operator =] [number 1][punctuation ;] [keyword let] [def b] [operator =] [number 2]",- "[keyword let] [def testArr][punctuation :] [punctuation [[][variable-2 Int][punctuation ]]] [operator =] [punctuation [[][variable a][punctuation ,] [variable b][punctuation ]]]",- "[keyword for] [def i] [keyword in] [number 0][punctuation ..][operator <][variable testArr][property .count] [punctuation {]",- " [variable print][punctuation (][variable testArr][punctuation [[][variable i][punctuation ]])]",- "[punctuation }]");-- // Identifiers.- MT("identifiers",- "[keyword let] [def abc] [operator =] [number 1]",- "[keyword let] [def ABC] [operator =] [number 2]",- "[keyword let] [def _123] [operator =] [number 3]",- "[keyword let] [def _$1$2$3] [operator =] [number 4]",- "[keyword let] [def A1$_c32_$_] [operator =] [number 5]",- "[keyword let] [def `var`] [operator =] [punctuation [[][number 1][punctuation ,] [number 2][punctuation ,] [number 3][punctuation ]]]",- "[keyword let] [def square$] [operator =] [variable `var`][property .map] [punctuation {][variable $0] [operator *] [variable $0][punctuation }]",- "$$ [number 1][variable a] $[atom _] [variable _$] [variable __] `[variable a] [variable b]`");-- // Properties.- MT("properties",- "[variable print][punctuation (][variable foo][property .abc][punctuation )]",- "[variable print][punctuation (][variable foo][property .ABC][punctuation )]",- "[variable print][punctuation (][variable foo][property ._123][punctuation )]",- "[variable print][punctuation (][variable foo][property ._$1$2$3][punctuation )]",- "[variable print][punctuation (][variable foo][property .A1$_c32_$_][punctuation )]",- "[variable print][punctuation (][variable foo][property .`var`][punctuation )]",- "[variable print][punctuation (][variable foo][property .__][punctuation )]");-- // Instructions or other things that start with #.- MT("instructions",- "[keyword if] [builtin #available][punctuation (][variable iOS] [number 9][punctuation ,] [operator *][punctuation )] [punctuation {}]",- "[variable print][punctuation (][builtin #file][punctuation ,] [builtin #function][punctuation )]",- "[variable print][punctuation (][builtin #line][punctuation ,] [builtin #column][punctuation )]",- "[builtin #if] [atom true]",- "[keyword import] [def A]",- "[builtin #elseif] [atom false]",- "[keyword import] [def B]",- "[builtin #endif]",- "[builtin #sourceLocation][punctuation (][variable file][punctuation :] [string \"file.swift\"][punctuation ,] [variable line][punctuation :] [number 2][punctuation )]");-- // Attributes; things that start with @.- MT("attributes",- "[attribute @objc][punctuation (][variable objcFoo][punctuation :)]",- "[attribute @available][punctuation (][variable iOS][punctuation )]");-- // Property/number edge case.- MT("property_number",- "[variable print][punctuation (][variable foo][property ._123][punctuation )]",- "[variable print][punctuation (]")-- MT("nested_comments",- "[comment /*]",- "[comment But wait /* this is a nested comment */ for real]",- "[comment /**** let * me * show * you ****/]",- "[comment ///// let / me / show / you /////]",- "[comment */]");-- // TODO: correctly identify when multiple variables are being declared- // by use of a comma-separated list.- // TODO: correctly identify when variables are being declared in a tuple.- // TODO: identify protocols as types when used before an extension?-})();diff --git a/libraries/codemirror/mode/tcl/index.html b/libraries/codemirror/mode/tcl/index.htmldeleted file mode 100644index 328c9eaf3a..0000000000--- a/libraries/codemirror/mode/tcl/index.html+++ /dev/null@@ -1,142 +0,0 @@-<!doctype html>--<title>CodeMirror: Tcl mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<link rel="stylesheet" href="../../theme/night.css">-<script src="../../lib/codemirror.js"></script>-<script src="tcl.js"></script>-<script src="../../addon/scroll/scrollpastend.js"></script>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Tcl</a>- </ul>-</div>--<article>-<h2>Tcl mode</h2>-<form><textarea id="code" name="code">-##############################################################################################-## ## whois.tcl for eggdrop by Ford_Lawnmower irc.geekshed.net #Script-Help ## ##-##############################################################################################-## To use this script you must set channel flag +whois (ie .chanset #chan +whois) ##-##############################################################################################-## ____ __ ########################################### ##-## / __/___ _ ___ _ ___/ /____ ___ ___ ########################################### ##-## / _/ / _ `// _ `// _ // __// _ \ / _ \ ########################################### ##-## /___/ \_, / \_, / \_,_//_/ \___// .__/ ########################################### ##-## /___/ /___/ /_/ ########################################### ##-## ########################################### ##-##############################################################################################-## ## Start Setup. ## ##-##############################################################################################-namespace eval whois {-## change cmdchar to the trigger you want to use ## ##- variable cmdchar "!"-## change command to the word trigger you would like to use. ## ##-## Keep in mind, This will also change the .chanset +/-command ## ##- variable command "whois"-## change textf to the colors you want for the text. ## ##- variable textf "\017\00304"-## change tagf to the colors you want for tags: ## ##- variable tagf "\017\002"-## Change logo to the logo you want at the start of the line. ## ##- variable logo "\017\00304\002\[\00306W\003hois\00304\]\017"-## Change lineout to the results you want. Valid results are channel users modes topic ## ##- variable lineout "channel users modes topic"-##############################################################################################-## ## End Setup. ## ##-##############################################################################################- variable channel ""- setudef flag $whois::command- bind pub -|- [string trimleft $whois::cmdchar]${whois::command} whois::list- bind raw -|- "311" whois::311- bind raw -|- "312" whois::312- bind raw -|- "319" whois::319- bind raw -|- "317" whois::317- bind raw -|- "313" whois::multi- bind raw -|- "310" whois::multi- bind raw -|- "335" whois::multi- bind raw -|- "301" whois::301- bind raw -|- "671" whois::multi- bind raw -|- "320" whois::multi- bind raw -|- "401" whois::multi- bind raw -|- "318" whois::318- bind raw -|- "307" whois::307-}-proc whois::311 {from key text} {- if {[regexp -- {^[^\s]+\s(.+?)\s(.+?)\s(.+?)\s\*\s\:(.+)$} $text wholematch nick ident host realname]} {- putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Host:${whois::textf} \- $nick \(${ident}@${host}\) ${whois::tagf}Realname:${whois::textf} $realname"- }-}-proc whois::multi {from key text} {- if {[regexp {\:(.*)$} $text match $key]} {- putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Note:${whois::textf} [subst $$key]"- return 1- }-}-proc whois::312 {from key text} {- regexp {([^\s]+)\s\:} $text match server- putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Server:${whois::textf} $server"-}-proc whois::319 {from key text} {- if {[regexp {.+\:(.+)$} $text match channels]} {- putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Channels:${whois::textf} $channels"- }-}-proc whois::317 {from key text} {- if {[regexp -- {.*\s(\d+)\s(\d+)\s\:} $text wholematch idle signon]} {- putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Connected:${whois::textf} \- [ctime $signon] ${whois::tagf}Idle:${whois::textf} [duration $idle]"- }-}-proc whois::301 {from key text} {- if {[regexp {^.+\s[^\s]+\s\:(.*)$} $text match awaymsg]} {- putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Away:${whois::textf} $awaymsg"- }-}-proc whois::318 {from key text} {- namespace eval whois {- variable channel ""- }- variable whois::channel ""-}-proc whois::307 {from key text} {- putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Services:${whois::textf} Registered Nick"-}-proc whois::list {nick host hand chan text} {- if {[lsearch -exact [channel info $chan] "+${whois::command}"] != -1} {- namespace eval whois {- variable channel ""- }- variable whois::channel $chan- putserv "WHOIS $text"- }-}-putlog "\002*Loaded* \017\00304\002\[\00306W\003hois\00304\]\017 \002by \-Ford_Lawnmower irc.GeekShed.net #Script-Help"-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- theme: "night",- lineNumbers: true,- indentUnit: 2,- scrollPastEnd: true,- mode: "text/x-tcl"- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-tcl</code>.</p>-- </article>diff --git a/libraries/codemirror/mode/textile/index.html b/libraries/codemirror/mode/textile/index.htmldeleted file mode 100644index e8d9b99a7c..0000000000--- a/libraries/codemirror/mode/textile/index.html+++ /dev/null@@ -1,191 +0,0 @@-<!doctype html>--<title>CodeMirror: Textile mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="textile.js"></script>-<style>.CodeMirror {background: #f8f8f8;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/marijnh/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class="active" href="#">Textile</a>- </ul>-</div>--<article>- <h2>Textile mode</h2>- <form><textarea id="code" name="code">-h1. Textile Mode--A paragraph without formatting.--p. A simple Paragraph.---h2. Phrase Modifiers--Here are some simple phrase modifiers: *strong*, _emphasis_, **bold**, and __italic__.--A ??citation??, -deleted text-, +inserted text+, some ^superscript^, and some ~subscript~.--A %span element% and @code element@--A "link":http://example.com, a "link with (alt text)":urlAlias--[urlAlias]http://example.com/--An image: !http://example.com/image.png! and an image with a link: !http://example.com/image.png!:http://example.com--A sentence with a footnote.[123]--fn123. The footnote is defined here.--Registered(r), Trademark(tm), and Copyright(c)---h2. Headers--h1. Top level-h2. Second level-h3. Third level-h4. Fourth level-h5. Fifth level-h6. Lowest level---h2. Lists--* An unordered list-** foo bar-*** foo bar-**** foo bar-** foo bar--# An ordered list-## foo bar-### foo bar-#### foo bar-## foo bar--- definition list := description-- another item := foo bar-- spanning ines :=- foo bar-- foo bar =:---h2. Attributes--Layouts and phrase modifiers can be modified with various kinds of attributes: alignment, CSS ID, CSS class names, language, padding, and CSS styles.--h3. Alignment--div<. left align-div>. right align--h3. CSS ID and class name--You are a %(my-id#my-classname) rad% person.--h3. Language--p[en_CA]. Strange weather, eh?--h3. Horizontal Padding--p(())). 2em left padding, 3em right padding--h3. CSS styling--p{background: red}. Fire!---h2. Table--|_. Header 1 |_. Header 2 |-|{background:#ddd}. Cell with background| Normal |-|\2. Cell spanning 2 columns |-|/2. Cell spanning 2 rows |(cell-class). one |-| two |-|>. Right aligned cell |<. Left aligned cell |---h3. A table with attributes:--table(#prices).-|Adults|$5|-|Children|$2|---h2. Code blocks--bc.-function factorial(n) {- if (n === 0) {- return 1;- }- return n * factorial(n - 1);-}--pre..- ,,,,,,- o#'9MMHb':'-,o,- .oH":HH$' "' ' -*R&o,- dMMM*""'`' .oM"HM?.- ,MMM' "HLbd< ?&H\- .:MH ."\ ` MM MM&b- . "*H - &MMMMMMMMMH:- . dboo MMMMMMMMMMMM.- . dMMMMMMb *MMMMMMMMMP.- . MMMMMMMP *MMMMMP .- `#MMMMM MM6P ,- ' `MMMP" HM*`,- ' :MM .- ,- '. `#?.. . ..'- -. . .-- ''-.oo,oo.-''--\. _(9>- \==_)- -'=--h2. Temporarily disabling textile markup--notextile. Don't __touch this!__--Surround text with double-equals to disable textile inline. Example: Use ==*asterisks*== for *strong* text.---h2. HTML--Some block layouts are simply textile versions of HTML tags with the same name, like @div@, @pre@, and @p@. HTML tags can also exist on their own line:--<section>- <h1>Title</h1>- <p>Hello!</p>-</section>--</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- mode: "text/x-textile"- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-textile</code>.</p>-- <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#textile_*">normal</a>, <a href="../../test/index.html#verbose,textile_*">verbose</a>.</p>--</article>diff --git a/libraries/codemirror/mode/textile/test.js b/libraries/codemirror/mode/textile/test.jsdeleted file mode 100644index 754c5f6bd7..0000000000--- a/libraries/codemirror/mode/textile/test.js+++ /dev/null@@ -1,417 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({tabSize: 4}, 'textile');- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }-- MT('simpleParagraphs',- 'Some text.',- '',- 'Some more text.');-- /*- * Phrase Modifiers- */-- MT('em',- 'foo [em _bar_]');-- MT('emBoogus',- 'code_mirror');-- MT('strong',- 'foo [strong *bar*]');-- MT('strongBogus',- '3 * 3 = 9');-- MT('italic',- 'foo [em __bar__]');-- MT('italicBogus',- 'code__mirror');-- MT('bold',- 'foo [strong **bar**]');-- MT('boldBogus',- '3 ** 3 = 27');-- MT('simpleLink',- '[link "CodeMirror":https://codemirror.net]');-- MT('referenceLink',- '[link "CodeMirror":code_mirror]',- 'Normal Text.',- '[link [[code_mirror]]https://codemirror.net]');-- MT('footCite',- 'foo bar[qualifier [[1]]]');-- MT('footCiteBogus',- 'foo bar[[1a2]]');-- MT('special-characters',- 'Registered [tag (r)], ' +- 'Trademark [tag (tm)], and ' +- 'Copyright [tag (c)] 2008');-- MT('cite',- "A book is [keyword ??The Count of Monte Cristo??] by Dumas.");-- MT('additionAndDeletion',- 'The news networks declared [negative -Al Gore-] ' +- '[positive +George W. Bush+] the winner in Florida.');-- MT('subAndSup',- 'f(x, n) = log [builtin ~4~] x [builtin ^n^]');-- MT('spanAndCode',- 'A [quote %span element%] and [atom @code element@]');-- MT('spanBogus',- 'Percentage 25% is not a span.');-- MT('citeBogus',- 'Question? is not a citation.');-- MT('codeBogus',- '[email protected]');-- MT('subBogus',- '~username');-- MT('supBogus',- 'foo ^ bar');-- MT('deletionBogus',- '3 - 3 = 0');-- MT('additionBogus',- '3 + 3 = 6');-- MT('image',- 'An image: [string !http://www.example.com/image.png!]');-- MT('imageWithAltText',- 'An image: [string !http://www.example.com/image.png (Alt Text)!]');-- MT('imageWithUrl',- 'An image: [string !http://www.example.com/image.png!:http://www.example.com/]');-- /*- * Headers- */-- MT('h1',- '[header&header-1 h1. foo]');-- MT('h2',- '[header&header-2 h2. foo]');-- MT('h3',- '[header&header-3 h3. foo]');-- MT('h4',- '[header&header-4 h4. foo]');-- MT('h5',- '[header&header-5 h5. foo]');-- MT('h6',- '[header&header-6 h6. foo]');-- MT('h7Bogus',- 'h7. foo');-- MT('multipleHeaders',- '[header&header-1 h1. Heading 1]',- '',- 'Some text.',- '',- '[header&header-2 h2. Heading 2]',- '',- 'More text.');-- MT('h1inline',- '[header&header-1 h1. foo ][header&header-1&em _bar_][header&header-1 baz]');-- /*- * Lists- */-- MT('ul',- 'foo',- 'bar',- '',- '[variable-2 * foo]',- '[variable-2 * bar]');-- MT('ulNoBlank',- 'foo',- 'bar',- '[variable-2 * foo]',- '[variable-2 * bar]');-- MT('ol',- 'foo',- 'bar',- '',- '[variable-2 # foo]',- '[variable-2 # bar]');-- MT('olNoBlank',- 'foo',- 'bar',- '[variable-2 # foo]',- '[variable-2 # bar]');-- MT('ulFormatting',- '[variable-2 * ][variable-2&em _foo_][variable-2 bar]',- '[variable-2 * ][variable-2&strong *][variable-2&em&strong _foo_]' +- '[variable-2&strong *][variable-2 bar]',- '[variable-2 * ][variable-2&strong *foo*][variable-2 bar]');-- MT('olFormatting',- '[variable-2 # ][variable-2&em _foo_][variable-2 bar]',- '[variable-2 # ][variable-2&strong *][variable-2&em&strong _foo_]' +- '[variable-2&strong *][variable-2 bar]',- '[variable-2 # ][variable-2&strong *foo*][variable-2 bar]');-- MT('ulNested',- '[variable-2 * foo]',- '[variable-3 ** bar]',- '[keyword *** bar]',- '[variable-2 **** bar]',- '[variable-3 ** bar]');-- MT('olNested',- '[variable-2 # foo]',- '[variable-3 ## bar]',- '[keyword ### bar]',- '[variable-2 #### bar]',- '[variable-3 ## bar]');-- MT('ulNestedWithOl',- '[variable-2 * foo]',- '[variable-3 ## bar]',- '[keyword *** bar]',- '[variable-2 #### bar]',- '[variable-3 ** bar]');-- MT('olNestedWithUl',- '[variable-2 # foo]',- '[variable-3 ** bar]',- '[keyword ### bar]',- '[variable-2 **** bar]',- '[variable-3 ## bar]');-- MT('definitionList',- '[number - coffee := Hot ][number&em _and_][number black]',- '',- 'Normal text.');-- MT('definitionListSpan',- '[number - coffee :=]',- '',- '[number Hot ][number&em _and_][number black =:]',- '',- 'Normal text.');-- MT('boo',- '[number - dog := woof woof]',- '[number - cat := meow meow]',- '[number - whale :=]',- '[number Whale noises.]',- '',- '[number Also, ][number&em _splashing_][number . =:]');-- /*- * Attributes- */-- MT('divWithAttribute',- '[punctuation div][punctuation&attribute (#my-id)][punctuation . foo bar]');-- MT('divWithAttributeAnd2emRightPadding',- '[punctuation div][punctuation&attribute (#my-id)((][punctuation . foo bar]');-- MT('divWithClassAndId',- '[punctuation div][punctuation&attribute (my-class#my-id)][punctuation . foo bar]');-- MT('paragraphWithCss',- 'p[attribute {color:red;}]. foo bar');-- MT('paragraphNestedStyles',- 'p. [strong *foo ][strong&em _bar_][strong *]');-- MT('paragraphWithLanguage',- 'p[attribute [[fr]]]. Parlez-vous français?');-- MT('paragraphLeftAlign',- 'p[attribute <]. Left');-- MT('paragraphRightAlign',- 'p[attribute >]. Right');-- MT('paragraphRightAlign',- 'p[attribute =]. Center');-- MT('paragraphJustified',- 'p[attribute <>]. Justified');-- MT('paragraphWithLeftIndent1em',- 'p[attribute (]. Left');-- MT('paragraphWithRightIndent1em',- 'p[attribute )]. Right');-- MT('paragraphWithLeftIndent2em',- 'p[attribute ((]. Left');-- MT('paragraphWithRightIndent2em',- 'p[attribute ))]. Right');-- MT('paragraphWithLeftIndent3emRightIndent2em',- 'p[attribute ((())]. Right');-- MT('divFormatting',- '[punctuation div. ][punctuation&strong *foo ]' +- '[punctuation&strong&em _bar_][punctuation&strong *]');-- MT('phraseModifierAttributes',- 'p[attribute (my-class)]. This is a paragraph that has a class and' +- ' this [em _][em&attribute (#special-phrase)][em emphasized phrase_]' +- ' has an id.');-- MT('linkWithClass',- '[link "(my-class). This is a link with class":http://redcloth.org]');-- /*- * Layouts- */-- MT('paragraphLayouts',- 'p. This is one paragraph.',- '',- 'p. This is another.');-- MT('div',- '[punctuation div. foo bar]');-- MT('pre',- '[operator pre. Text]');-- MT('bq.',- '[bracket bq. foo bar]',- '',- 'Normal text.');-- MT('footnote',- '[variable fn123. foo ][variable&strong *bar*]');-- /*- * Spanning Layouts- */-- MT('bq..ThenParagraph',- '[bracket bq.. foo bar]',- '',- '[bracket More quote.]',- 'p. Normal Text');-- MT('bq..ThenH1',- '[bracket bq.. foo bar]',- '',- '[bracket More quote.]',- '[header&header-1 h1. Header Text]');-- MT('bc..ThenParagraph',- '[atom bc.. # Some ruby code]',- '[atom obj = {foo: :bar}]',- '[atom puts obj]',- '',- '[atom obj[[:love]] = "*love*"]',- '[atom puts obj.love.upcase]',- '',- 'p. Normal text.');-- MT('fn1..ThenParagraph',- '[variable fn1.. foo bar]',- '',- '[variable More.]',- 'p. Normal Text');-- MT('pre..ThenParagraph',- '[operator pre.. foo bar]',- '',- '[operator More.]',- 'p. Normal Text');-- /*- * Tables- */-- MT('table',- '[variable-3&operator |_. name |_. age|]',- '[variable-3 |][variable-3&strong *Walter*][variable-3 | 5 |]',- '[variable-3 |Florence| 6 |]',- '',- 'p. Normal text.');-- MT('tableWithAttributes',- '[variable-3&operator |_. name |_. age|]',- '[variable-3 |][variable-3&attribute /2.][variable-3 Jim |]',- '[variable-3 |][variable-3&attribute \\2{color: red}.][variable-3 Sam |]');-- /*- * HTML- */-- MT('html',- '[comment <div id="wrapper">]',- '[comment <section id="introduction">]',- '',- '[header&header-1 h1. Welcome]',- '',- '[variable-2 * Item one]',- '[variable-2 * Item two]',- '',- '[comment <a href="http://example.com">Example</a>]',- '',- '[comment </section>]',- '[comment </div>]');-- MT('inlineHtml',- 'I can use HTML directly in my [comment <span class="youbetcha">Textile</span>].');-- /*- * No-Textile- */-- MT('notextile',- '[string-2 notextile. *No* formatting]');-- MT('notextileInline',- 'Use [string-2 ==*asterisks*==] for [strong *strong*] text.');-- MT('notextileWithPre',- '[operator pre. *No* formatting]');-- MT('notextileWithSpanningPre',- '[operator pre.. *No* formatting]',- '',- '[operator *No* formatting]');-- /* Only toggling phrases between non-word chars. */-- MT('phrase-in-word',- 'foo_bar_baz');-- MT('phrase-non-word',- '[negative -x-] aaa-bbb ccc-ddd [negative -eee-] fff [negative -ggg-]');-- MT('phrase-lone-dash',- 'foo - bar - baz');-})();diff --git a/libraries/codemirror/mode/tiddlywiki/index.html b/libraries/codemirror/mode/tiddlywiki/index.htmldeleted file mode 100644index 8e1e5b1021..0000000000--- a/libraries/codemirror/mode/tiddlywiki/index.html+++ /dev/null@@ -1,154 +0,0 @@-<!doctype html>--<title>CodeMirror: TiddlyWiki mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<link rel="stylesheet" href="tiddlywiki.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="tiddlywiki.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">TiddlyWiki</a>- </ul>-</div>--<article>-<h2>TiddlyWiki mode</h2>---<div><textarea id="code" name="code">-!TiddlyWiki Formatting-* Rendered versions can be found at: http://www.tiddlywiki.com/#Reference--|!Option | !Syntax |-|bold font | ''bold'' |-|italic type | //italic// |-|underlined text | __underlined__ |-|strikethrough text | --strikethrough-- |-|superscript text | super^^script^^ |-|subscript text | sub~~script~~ |-|highlighted text | @@highlighted@@ |-|preformatted text | {{{preformatted}}} |--!Block Elements-<<<-!Heading 1--!!Heading 2--!!!Heading 3--!!!!Heading 4--!!!!!Heading 5-<<<--!!Lists-<<<-* unordered list, level 1-** unordered list, level 2-*** unordered list, level 3--# ordered list, level 1-## ordered list, level 2-### unordered list, level 3--; definition list, term-: definition list, description-<<<--!!Blockquotes-<<<-> blockquote, level 1->> blockquote, level 2->>> blockquote, level 3--> blockquote-<<<--!!Preformatted Text-<<<-{{{-preformatted (e.g. code)-}}}-<<<--!!Code Sections-<<<-{{{-Text style code-}}}--//{{{-JS styled code. TiddlyWiki mixed mode should support highlighter switching in the future.-//}}}--<!--{{{-->-XML styled code. TiddlyWiki mixed mode should support highlighter switching in the future.-<!--}}}-->-<<<--!!Tables-<<<-|CssClass|k-|!heading column 1|!heading column 2|-|row 1, column 1|row 1, column 2|-|row 2, column 1|row 2, column 2|-|>|COLSPAN|-|ROWSPAN| ... |-|~| ... |-|CssProperty:value;...| ... |-|caption|c--''Annotation:''-* The {{{>}}} marker creates a "colspan", causing the current cell to merge with the one to the right.-* The {{{~}}} marker creates a "rowspan", causing the current cell to merge with the one above.-<<<-!!Images /% TODO %/-cf. [[TiddlyWiki.com|http://www.tiddlywiki.com/#EmbeddedImages]]--!Hyperlinks-* [[WikiWords|WikiWord]] are automatically transformed to hyperlinks to the respective tiddler-** the automatic transformation can be suppressed by preceding the respective WikiWord with a tilde ({{{~}}}): {{{~WikiWord}}}-* [[PrettyLinks]] are enclosed in square brackets and contain the desired tiddler name: {{{[[tiddler name]]}}}-** optionally, a custom title or description can be added, separated by a pipe character ({{{|}}}): {{{[[title|target]]}}}<br>'''N.B.:''' In this case, the target can also be any website (i.e. URL).--!Custom Styling-* {{{@@CssProperty:value;CssProperty:value;...@@}}}<br>''N.B.:'' CSS color definitions should use lowercase letters to prevent the inadvertent creation of WikiWords.-* <html><code>{{customCssClass{...}}}</code></html>-* raw HTML can be inserted by enclosing the respective code in HTML tags: {{{<html> ... </html>}}}--!Special Markers-* {{{<br>}}} forces a manual line break-* {{{----}}} creates a horizontal ruler-* [[HTML entities|http://www.tiddlywiki.com/#HtmlEntities]]-* [[HTML entities local|HtmlEntities]]-* {{{<<macroName>>}}} calls the respective [[macro|Macros]]-* To hide text within a tiddler so that it is not displayed, it can be wrapped in {{{/%}}} and {{{%/}}}.<br/>This can be a useful trick for hiding drafts or annotating complex markup.-* To prevent wiki markup from taking effect for a particular section, that section can be enclosed in three double quotes: e.g. {{{"""WikiWord"""}}}.-</textarea></div>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: 'tiddlywiki',- lineNumbers: true,- matchBrackets: true- });- </script>-- <p>TiddlyWiki mode supports a single configuration.</p>-- <p><strong>MIME types defined:</strong> <code>text/x-tiddlywiki</code>.</p>- </article>diff --git a/libraries/codemirror/mode/tiki/index.html b/libraries/codemirror/mode/tiki/index.htmldeleted file mode 100644index 40e9855737..0000000000--- a/libraries/codemirror/mode/tiki/index.html+++ /dev/null@@ -1,95 +0,0 @@-<!doctype html>--<title>CodeMirror: Tiki wiki mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<link rel="stylesheet" href="tiki.css">-<script src="../../lib/codemirror.js"></script>-<script src="tiki.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Tiki wiki</a>- </ul>-</div>--<article>-<h2>Tiki wiki mode</h2>---<div><textarea id="code" name="code">-Headings-!Header 1-!!Header 2-!!!Header 3-!!!!Header 4-!!!!!Header 5-!!!!!!Header 6--Styling--=titlebar=--^^ Box on multi-lines-of content^^-__bold__-''italic''-===underline===-::center::---Line Through----Operators-~np~No parse~/np~--Link-[link|desc|nocache]--Wiki-((Wiki))-((Wiki|desc))-((Wiki|desc|timeout))--Table-||row1 col1|row1 col2|row1 col3-row2 col1|row2 col2|row2 col3-row3 col1|row3 col2|row3 col3||--Lists:-*bla-**bla-1-++continue-bla-1-***bla-2-++continue-bla-1-*bla-+continue-bla-#bla-** tra-la-la-+continue-bla-#bla--Plugin (standard):-{PLUGIN(attr="my attr")}-Plugin Body-{PLUGIN}--Plugin (inline):-{plugin attr="my attr"}-</textarea></div>--<script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: 'tiki',- lineNumbers: true- });-</script>--</article>diff --git a/libraries/codemirror/mode/toml/index.html b/libraries/codemirror/mode/toml/index.htmldeleted file mode 100644index 5c359c79c0..0000000000--- a/libraries/codemirror/mode/toml/index.html+++ /dev/null@@ -1,73 +0,0 @@-<!doctype html>--<title>CodeMirror: TOML Mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="toml.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">TOML Mode</a>- </ul>-</div>--<article>-<h2>TOML Mode</h2>-<form><textarea id="code" name="code">-# This is a TOML document. Boom.--title = "TOML Example"--[owner]-name = "Tom Preston-Werner"-organization = "GitHub"-bio = "GitHub Cofounder & CEO\nLikes tater tots and beer."-dob = 1979-05-27T07:32:00Z # First class dates? Why not?--[database]-server = "192.168.1.1"-ports = [ 8001, 8001, 8002 ]-connection_max = 5000-enabled = true--[servers]-- # You can indent as you please. Tabs or spaces. TOML don't care.- [servers.alpha]- ip = "10.0.0.1"- dc = "eqdc10"-- [servers.beta]- ip = "10.0.0.2"- dc = "eqdc10"--[clients]-data = [ ["gamma", "delta"], [1, 2] ]--# Line breaks are OK when inside arrays-hosts = [- "alpha",- "omega"-]-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: {name: "toml"},- lineNumbers: true- });- </script>- <h3>The TOML Mode</h3>- <p> Created by Forbes Lindesay.</p>- <p><strong>MIME type defined:</strong> <code>text/x-toml</code>.</p>- </article>diff --git a/libraries/codemirror/mode/tornado/index.html b/libraries/codemirror/mode/tornado/index.htmldeleted file mode 100644index 6b261cf073..0000000000--- a/libraries/codemirror/mode/tornado/index.html+++ /dev/null@@ -1,63 +0,0 @@-<!doctype html>--<title>CodeMirror: Tornado template mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/mode/overlay.js"></script>-<script src="../xml/xml.js"></script>-<script src="../htmlmixed/htmlmixed.js"></script>-<script src="tornado.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/marijnh/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Tornado</a>- </ul>-</div>--<article>-<h2>Tornado template mode</h2>-<form><textarea id="code" name="code">-<!doctype html>-<html>- <head>- <title>My Tornado web application</title>- </head>- <body>- <h1>- {{ title }}- </h1>- <ul class="my-list">- {% for item in items %}- <li>{% item.name %}</li>- {% empty %}- <li>You have no items in your list.</li>- {% end %}- </ul>- </body>-</html>-</textarea></form>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- mode: "tornado",- indentUnit: 4,- indentWithTabs: true- });- </script>-- <p>Mode for HTML with embedded Tornado template markup.</p>-- <p><strong>MIME types defined:</strong> <code>text/x-tornado</code></p>- </article>diff --git a/libraries/codemirror/mode/troff/index.html b/libraries/codemirror/mode/troff/index.htmldeleted file mode 100644index 1810764214..0000000000--- a/libraries/codemirror/mode/troff/index.html+++ /dev/null@@ -1,146 +0,0 @@-<!doctype html>--<title>CodeMirror: troff mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel=stylesheet href=../../lib/codemirror.css>-<script src=../../lib/codemirror.js></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src=troff.js></script>-<style type=text/css>- .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}-</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">troff</a>- </ul>-</div>--<article>-<h2>troff</h2>---<textarea id=code>-'\" t-.\" Title: mkvextract-.TH "MKVEXTRACT" "1" "2015\-02\-28" "MKVToolNix 7\&.7\&.0" "User Commands"-.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-.ie \n(.g .ds Aq \(aq-.el .ds Aq '-.\" ------------------------------------------------------------------.nh-.\" disable justification (adjust text to left margin only)-.ad l-.\" ------------------------------------------------------------------.SH "NAME"-mkvextract \- extract tracks from Matroska(TM) files into other files-.SH "SYNOPSIS"-.HP \w'\fBmkvextract\fR\ 'u-\fBmkvextract\fR {mode} {source\-filename} [options] [extraction\-spec]-.SH "DESCRIPTION"-.PP-.B mkvextract-extracts specific parts from a-.I Matroska(TM)-file to other useful formats\&. The first argument,-\fBmode\fR, tells-\fBmkvextract\fR(1)-what to extract\&. Currently supported is the extraction of-tracks,-tags,-attachments,-chapters,-CUE sheets,-timecodes-and-cues\&. The second argument is the name of the source file\&. It must be a-Matroska(TM)-file\&. All following arguments are options and extraction specifications; both of which depend on the selected mode\&.-.SS "Common options"-.PP-The following options are available in all modes and only described once in this section\&.-.PP-\fB\-f\fR, \fB\-\-parse\-fully\fR-.RS 4-Sets the parse mode to \*(Aqfull\*(Aq\&. The default mode does not parse the whole file but uses the meta seek elements for locating the required elements of a source file\&. In 99% of all cases this is enough\&. But for files that do not contain meta seek elements or which are damaged the user might have to use this mode\&. A full scan of a file can take a couple of minutes while a fast scan only takes seconds\&.-.RE-.PP-\fB\-\-command\-line\-charset\fR \fIcharacter\-set\fR-.RS 4-Sets the character set to convert strings given on the command line from\&. It defaults to the character set given by system\*(Aqs current locale\&.-.RE-.PP-\fB\-\-output\-charset\fR \fIcharacter\-set\fR-.RS 4-Sets the character set to which strings are converted that are to be output\&. It defaults to the character set given by system\*(Aqs current locale\&.-.RE-.PP-\fB\-r\fR, \fB\-\-redirect\-output\fR \fIfile\-name\fR-.RS 4-Writes all messages to the file-\fIfile\-name\fR-instead of to the console\&. While this can be done easily with output redirection there are cases in which this option is needed: when the terminal reinterprets the output before writing it to a file\&. The character set set with-\fB\-\-output\-charset\fR-is honored\&.-.RE-.PP-\fB\-\-ui\-language\fR \fIcode\fR-.RS 4-Forces the translations for the language-\fIcode\fR-to be used (e\&.g\&. \*(Aqde_DE\*(Aq for the German translations)\&. It is preferable to use the environment variables-\fILANG\fR,-\fILC_MESSAGES\fR-and-\fILC_ALL\fR-though\&. Entering \*(Aqlist\*(Aq as the-\fIcode\fR-will cause-\fBmkvextract\fR(1)-to output a list of available translations\&.--.\" [...]--.SH "SEE ALSO"-.PP-\fBmkvmerge\fR(1),-\fBmkvinfo\fR(1),-\fBmkvpropedit\fR(1),-\fBmmg\fR(1)-.SH "WWW"-.PP-The latest version can always be found at-\m[blue]\fBthe MKVToolNix homepage\fR\m[]\&\s-2\u[1]\d\s+2\&.-.SH "AUTHOR"-.PP-\(co \fBMoritz Bunkus\fR <\&moritz@bunkus\&.org\&>-.RS 4-Developer-.RE-.SH "NOTES"-.IP " 1." 4-the MKVToolNix homepage-.RS 4-\%https://www.bunkus.org/videotools/mkvtoolnix/-.RE-</textarea>--<script>- var editor = CodeMirror.fromTextArea(document.getElementById('code'), {- mode: 'troff',- lineNumbers: true,- matchBrackets: false- });-</script>--<p><strong>MIME types defined:</strong> <code>troff</code>.</p>-</article>diff --git a/libraries/codemirror/mode/ttcn-cfg/index.html b/libraries/codemirror/mode/ttcn-cfg/index.htmldeleted file mode 100644index 0cc8048b25..0000000000--- a/libraries/codemirror/mode/ttcn-cfg/index.html+++ /dev/null@@ -1,116 +0,0 @@-<!doctype html>--<title>CodeMirror: TTCN-CFG mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="ttcn-cfg.js"></script>-<style>- .CodeMirror {- border-top: 1px solid black;- border-bottom: 1px solid black;- }-</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1>- <img id=logo src="../../doc/logo.png">- </a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="http://en.wikipedia.org/wiki/TTCN">TTCN-CFG</a>- </ul>-</div>-<article>- <h2>TTCN-CFG example</h2>- <div>- <textarea id="ttcn-cfg-code">-[MODULE_PARAMETERS]-# This section shall contain the values of all parameters that are defined in your TTCN-3 modules.--[LOGGING]-# In this section you can specify the name of the log file and the classes of events-# you want to log into the file or display on console (standard error).--LogFile := "logs/%e.%h-%r.%s"-FileMask := LOG_ALL | DEBUG | MATCHING-ConsoleMask := ERROR | WARNING | TESTCASE | STATISTICS | PORTEVENT--LogSourceInfo := Yes-AppendFile := No-TimeStampFormat := DateTime-LogEventTypes := Yes-SourceInfoFormat := Single-LogEntityName := Yes--[TESTPORT_PARAMETERS]-# In this section you can specify parameters that are passed to Test Ports.--[DEFINE]-# In this section you can create macro definitions,-# that can be used in other configuration file sections except [INCLUDE].--[INCLUDE]-# To use configuration settings given in other configuration files,-# the configuration files just need to be listed in this section, with their full or relative pathnames.--[EXTERNAL_COMMANDS]-# This section can define external commands (shell scripts) to be executed by the ETS-# whenever a control part or test case is started or terminated.--BeginTestCase := ""-EndTestCase := ""-BeginControlPart := ""-EndControlPart := ""--[EXECUTE]-# In this section you can specify what parts of your test suite you want to execute.--[GROUPS]-# In this section you can specify groups of hosts. These groups can be used inside the-# [COMPONENTS] section to restrict the creation of certain PTCs to a given set of hosts.--[COMPONENTS]-# This section consists of rules restricting the location of created PTCs.--[MAIN_CONTROLLER]-# The options herein control the behavior of MC.--TCPPort := 0-KillTimer := 10.0-NumHCs := 0-LocalAddress :=- </textarea>- </div>-- <script>- var ttcnEditor = CodeMirror.fromTextArea(document.getElementById("ttcn-cfg-code"), {- lineNumbers: true,- matchBrackets: true,- mode: "text/x-ttcn-cfg"- });- ttcnEditor.setSize(600, 860);- var mac = CodeMirror.keyMap.default == CodeMirror.keyMap.macDefault;- CodeMirror.keyMap.default[(mac ? "Cmd" : "Ctrl") + "-Space"] = "autocomplete";- </script>- <br/>- <p><strong>Language:</strong> Testing and Test Control Notation -- Configuration files- (<a href="http://en.wikipedia.org/wiki/TTCN">TTCN-CFG</a>)- </p>- <p><strong>MIME types defined:</strong> <code>text/x-ttcn-cfg</code>.</p>-- <br/>- <p>The development of this mode has been sponsored by <a href="http://www.ericsson.com/">Ericsson- </a>.</p>- <p>Coded by Asmelash Tsegay Gebretsadkan </p>-</article>-diff --git a/libraries/codemirror/mode/ttcn/index.html b/libraries/codemirror/mode/ttcn/index.htmldeleted file mode 100644index d63043413d..0000000000--- a/libraries/codemirror/mode/ttcn/index.html+++ /dev/null@@ -1,119 +0,0 @@-<!doctype html>--<title>CodeMirror: TTCN mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="ttcn.js"></script>-<style>- .CodeMirror {- border-top: 1px solid black;- border-bottom: 1px solid black;- }-</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1>- <img id=logo src="../../doc/logo.png">- </a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="http://en.wikipedia.org/wiki/TTCN">TTCN</a>- </ul>-</div>-<article>- <h2>TTCN example</h2>- <div>- <textarea id="ttcn-code">-module Templates {- /* import types from ASN.1 */- import from Types language "ASN.1:1997" all;-- /* During the conversion phase from ASN.1 to TTCN-3 */- /* - the minus sign (Message-Type) within the identifiers will be replaced by underscore (Message_Type)*/- /* - the ASN.1 identifiers matching a TTCN-3 keyword (objid) will be postfixed with an underscore (objid_)*/-- // simple types-- template SenderID localObjid := objid {itu_t(0) identified_organization(4) etsi(0)};-- // complex types-- /* ASN.1 Message-Type mapped to TTCN-3 Message_Type */- template Message receiveMsg(template (present) Message_Type p_messageType) := {- header := p_messageType,- body := ?- }-- /* ASN.1 objid mapped to TTCN-3 objid_ */- template Message sendInviteMsg := {- header := inviteType,- body := {- /* optional fields may be assigned by omit or may be ignored/skipped */- description := "Invite Message",- data := 'FF'O,- objid_ := localObjid- }- }-- template Message sendAcceptMsg modifies sendInviteMsg := {- header := acceptType,- body := {- description := "Accept Message"- }- };-- template Message sendErrorMsg modifies sendInviteMsg := {- header := errorType,- body := {- description := "Error Message"- }- };-- template Message expectedErrorMsg := {- header := errorType,- body := ?- };-- template Message expectedInviteMsg modifies expectedErrorMsg := {- header := inviteType- };-- template Message expectedAcceptMsg modifies expectedErrorMsg := {- header := acceptType- };--} with { encode "BER:1997" }- </textarea>- </div>-- <script>- var ttcnEditor = CodeMirror.fromTextArea(document.getElementById("ttcn-code"), {- lineNumbers: true,- matchBrackets: true,- mode: "text/x-ttcn"- });- ttcnEditor.setSize(600, 860);- var mac = CodeMirror.keyMap.default == CodeMirror.keyMap.macDefault;- CodeMirror.keyMap.default[(mac ? "Cmd" : "Ctrl") + "-Space"] = "autocomplete";- </script>- <br/>- <p><strong>Language:</strong> Testing and Test Control Notation- (<a href="http://en.wikipedia.org/wiki/TTCN">TTCN</a>)- </p>- <p><strong>MIME types defined:</strong> <code>text/x-ttcn,- text/x-ttcn3, text/x-ttcnpp</code>.</p>- <br/>- <p>The development of this mode has been sponsored by <a href="http://www.ericsson.com/">Ericsson- </a>.</p>- <p>Coded by Asmelash Tsegay Gebretsadkan </p>-</article>-diff --git a/libraries/codemirror/mode/turtle/index.html b/libraries/codemirror/mode/turtle/index.htmldeleted file mode 100644index 79fe6dfdfe..0000000000--- a/libraries/codemirror/mode/turtle/index.html+++ /dev/null@@ -1,51 +0,0 @@-<!doctype html>--<title>CodeMirror: Turtle mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="turtle.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Turtle</a>- </ul>-</div>--<article>-<h2>Turtle mode</h2>-<form><textarea id="code" name="code">-@prefix foaf: <http://xmlns.com/foaf/0.1/> .-@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> .-@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .--<http://purl.org/net/bsletten>- a foaf:Person;- foaf:interest <http://www.w3.org/2000/01/sw/>;- foaf:based_near [- geo:lat "34.0736111" ;- geo:lon "-118.3994444"- ]--</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: "text/turtle",- matchBrackets: true- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/turtle</code>.</p>-- </article>diff --git a/libraries/codemirror/mode/twig/index.html b/libraries/codemirror/mode/twig/index.htmldeleted file mode 100644index 12c8d6b0e4..0000000000--- a/libraries/codemirror/mode/twig/index.html+++ /dev/null@@ -1,45 +0,0 @@-<!doctype html>--<title>CodeMirror: Twig mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="twig.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Twig</a>- </ul>-</div>--<article>-<h2>Twig mode</h2>-<form><textarea id="code" name="code">-{% extends "layout.twig" %}-{% block title %}CodeMirror: Twig mode{% endblock %}-{# this is a comment #}-{% block content %}- {% for foo in bar if foo.baz is divisible by(3) %}- Hello {{ foo.world }}- {% else %}- {% set msg = "Result not found" %}- {% include "empty.twig" with { message: msg } %}- {% endfor %}-{% endblock %}-</textarea></form>- <script>- var editor =- CodeMirror.fromTextArea(document.getElementById("code"), {mode:- {name: "twig", htmlMode: true}});- </script>- </article>diff --git a/libraries/codemirror/mode/vb/index.html b/libraries/codemirror/mode/vb/index.htmldeleted file mode 100644index 83c7182aad..0000000000--- a/libraries/codemirror/mode/vb/index.html+++ /dev/null@@ -1,49 +0,0 @@-<!doctype html>--<title>CodeMirror: VB.NET mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<link href="http://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet">-<script src="../../lib/codemirror.js"></script>-<script src="vb.js"></script>-<script src="../../addon/runmode/runmode.js"></script>-<style>- .CodeMirror {border: 1px solid #aaa; height:210px; height: auto;}- .CodeMirror-scroll { overflow-x: auto; overflow-y: hidden;}- .CodeMirror pre { font-family: Inconsolata; font-size: 14px}- </style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">VB.NET</a>- </ul>-</div>--<article>-<h2>VB.NET mode</h2>- <div id="edit">- <textarea name="code" id="code" >-Class rocket- Private quality as Double- Public Sub launch() as String- If quality > 0.8- launch = "Successful"- Else- launch = "Failed"- End If- End sub-End class-</textarea>- </div>- <p>MIME type defined: <code>text/x-vb</code>.</p>-<script>CodeMirror.fromTextArea(document.getElementById("code"))</script>-</article>diff --git a/libraries/codemirror/mode/vbscript/index.html b/libraries/codemirror/mode/vbscript/index.htmldeleted file mode 100644index 95a7da52fa..0000000000--- a/libraries/codemirror/mode/vbscript/index.html+++ /dev/null@@ -1,55 +0,0 @@-<!doctype html>--<title>CodeMirror: VBScript mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="vbscript.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">VBScript</a>- </ul>-</div>--<article>-<h2>VBScript mode</h2>---<div><textarea id="code" name="code">-' Pete Guhl-' 03-04-2012-'-' Basic VBScript support for codemirror2--Const ForReading = 1, ForWriting = 2, ForAppending = 8--Call Sub020_PostBroadcastToUrbanAirship(strUserName, strPassword, intTransmitID, strResponse)--If Not IsNull(strResponse) AND Len(strResponse) = 0 Then- boolTransmitOkYN = False-Else- ' WScript.Echo "Oh Happy Day! Oh Happy DAY!"- boolTransmitOkYN = True-End If-</textarea></div>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- indentUnit: 4- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/vbscript</code>.</p>- </article>diff --git a/libraries/codemirror/mode/velocity/index.html b/libraries/codemirror/mode/velocity/index.htmldeleted file mode 100644index b38c570df7..0000000000--- a/libraries/codemirror/mode/velocity/index.html+++ /dev/null@@ -1,120 +0,0 @@-<!doctype html>--<title>CodeMirror: Velocity mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<link rel="stylesheet" href="../../theme/night.css">-<script src="../../lib/codemirror.js"></script>-<script src="velocity.js"></script>-<style>.CodeMirror {border: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Velocity</a>- </ul>-</div>--<article>-<h2>Velocity mode</h2>-<form><textarea id="code" name="code">-## Velocity Code Demo-#*- based on PL/SQL mode by Peter Raganitsch, adapted to Velocity by Steve O'Hara ( http://www.pivotal-solutions.co.uk )- August 2011-*#--#*- This is a multiline comment.- This is the second line-*#--#[[ hello steve- This has invalid syntax that would normally need "poor man's escaping" like:-- #define()-- ${blah-]]#--#include( "disclaimer.txt" "opinion.txt" )-#include( $foo $bar )--#parse( "lecorbusier.vm" )-#parse( $foo )--#evaluate( 'string with VTL #if(true)will be displayed#end' )--#define( $hello ) Hello $who #end #set( $who = "World!") $hello ## displays Hello World!--#foreach( $customer in $customerList )-- $foreach.count $customer.Name-- #if( $foo == ${bar})- it's true!- #break- #{else}- it's not!- #stop- #end-- #if ($foreach.parent.hasNext)- $velocityCount- #end-#end--$someObject.getValues("this is a string split- across lines")--$someObject("This plus $something in the middle").method(7567).property--#set($something = "Parseable string with '$quotes'!")--#macro( tablerows $color $somelist )- #foreach( $something in $somelist )- <tr><td bgcolor=$color>$something</td></tr>- <tr><td bgcolor=$color>$bodyContent</td></tr>- #end-#end--#tablerows("red" ["dadsdf","dsa"])-#@tablerows("red" ["dadsdf","dsa"]) some body content #end-- Variable reference: #set( $monkey = $bill )- String literal: #set( $monkey.Friend = 'monica' )- Property reference: #set( $monkey.Blame = $whitehouse.Leak )- Method reference: #set( $monkey.Plan = $spindoctor.weave($web) )- Number literal: #set( $monkey.Number = 123 )- Range operator: #set( $monkey.Numbers = [1..3] )- Object list: #set( $monkey.Say = ["Not", $my, "fault"] )- Object map: #set( $monkey.Map = {"banana" : "good", "roast beef" : "bad"})--The RHS can also be a simple arithmetic expression, such as:-Addition: #set( $value = $foo + 1 )- Subtraction: #set( $value = $bar - 1 )- Multiplication: #set( $value = $foo * $bar )- Division: #set( $value = $foo / $bar )- Remainder: #set( $value = $foo % $bar )--</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- theme: "night",- lineNumbers: true,- indentUnit: 4,- mode: "text/velocity"- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/velocity</code>.</p>-- </article>diff --git a/libraries/codemirror/mode/verilog/index.html b/libraries/codemirror/mode/verilog/index.htmldeleted file mode 100644index e38cf276b5..0000000000--- a/libraries/codemirror/mode/verilog/index.html+++ /dev/null@@ -1,120 +0,0 @@-<!doctype html>--<title>CodeMirror: Verilog/SystemVerilog mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="verilog.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Verilog/SystemVerilog</a>- </ul>-</div>--<article>-<h2>SystemVerilog mode</h2>--<div><textarea id="code" name="code">-// Literals-1'b0-1'bx-1'bz-16'hDC78-'hdeadbeef-'b0011xxzz-1234-32'd5678-3.4e6--128.7--// Macro definition-`define BUS_WIDTH = 8;--// Module definition-module block(- input clk,- input rst_n,- input [`BUS_WIDTH-1:0] data_in,- output [`BUS_WIDTH-1:0] data_out-);-- always @(posedge clk or negedge rst_n) begin-- if (~rst_n) begin- data_out <= 8'b0;- end else begin- data_out <= data_in;- end-- if (~rst_n)- data_out <= 8'b0;- else- data_out <= data_in;-- if (~rst_n)- begin- data_out <= 8'b0;- end- else- begin- data_out <= data_in;- end-- end--endmodule--// Class definition-class test;-- /**- * Sum two integers- */- function int sum(int a, int b);- int result = a + b;- string msg = $sformatf("%d + %d = %d", a, b, result);- $display(msg);- return result;- endfunction-- task delay(int num_cycles);- repeat(num_cycles) #1;- endtask--endclass--</textarea></div>--<script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- matchBrackets: true,- mode: {- name: "verilog",- noIndentKeywords: ["package"]- }- });-</script>--<p>-Syntax highlighting and indentation for the Verilog and SystemVerilog languages (IEEE 1800).-<h2>Configuration options:</h2>- <ul>- <li><strong>noIndentKeywords</strong> - List of keywords which should not cause indentation to increase. E.g. ["package", "module"]. Default: None</li>- </ul>-</p>--<p><strong>MIME types defined:</strong> <code>text/x-verilog</code> and <code>text/x-systemverilog</code>.</p>-</article>diff --git a/libraries/codemirror/mode/verilog/test.js b/libraries/codemirror/mode/verilog/test.jsdeleted file mode 100644index bafe726db3..0000000000--- a/libraries/codemirror/mode/verilog/test.js+++ /dev/null@@ -1,273 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({indentUnit: 4}, "verilog");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }-- MT("binary_literals",- "[number 1'b0]",- "[number 1'b1]",- "[number 1'bx]",- "[number 1'bz]",- "[number 1'bX]",- "[number 1'bZ]",- "[number 1'B0]",- "[number 1'B1]",- "[number 1'Bx]",- "[number 1'Bz]",- "[number 1'BX]",- "[number 1'BZ]",- "[number 1'b0]",- "[number 1'b1]",- "[number 2'b01]",- "[number 2'bxz]",- "[number 2'b11]",- "[number 2'b10]",- "[number 2'b1Z]",- "[number 12'b0101_0101_0101]",- "[number 1'b 0]",- "[number 'b0101]"- );-- MT("octal_literals",- "[number 3'o7]",- "[number 3'O7]",- "[number 3'so7]",- "[number 3'SO7]"- );-- MT("decimal_literals",- "[number 0]",- "[number 1]",- "[number 7]",- "[number 123_456]",- "[number 'd33]",- "[number 8'd255]",- "[number 8'D255]",- "[number 8'sd255]",- "[number 8'SD255]",- "[number 32'd123]",- "[number 32 'd123]",- "[number 32 'd 123]"- );-- MT("hex_literals",- "[number 4'h0]",- "[number 4'ha]",- "[number 4'hF]",- "[number 4'hx]",- "[number 4'hz]",- "[number 4'hX]",- "[number 4'hZ]",- "[number 32'hdc78]",- "[number 32'hDC78]",- "[number 32 'hDC78]",- "[number 32'h DC78]",- "[number 32 'h DC78]",- "[number 32'h44x7]",- "[number 32'hFFF?]"- );-- MT("real_number_literals",- "[number 1.2]",- "[number 0.1]",- "[number 2394.26331]",- "[number 1.2E12]",- "[number 1.2e12]",- "[number 1.30e-2]",- "[number 0.1e-0]",- "[number 23E10]",- "[number 29E-2]",- "[number 236.123_763_e-12]"- );-- MT("operators",- "[meta ^]"- );-- MT("keywords",- "[keyword logic]",- "[keyword logic] [variable foo]",- "[keyword reg] [variable abc]"- );-- MT("variables",- "[variable _leading_underscore]",- "[variable _if]",- "[number 12] [variable foo]",- "[variable foo] [number 14]"- );-- MT("tick_defines",- "[def `FOO]",- "[def `foo]",- "[def `FOO_bar]"- );-- MT("system_calls",- "[meta $display]",- "[meta $vpi_printf]"- );-- MT("line_comment", "[comment // Hello world]");-- // Alignment tests- MT("align_port_map_style1",- /**- * mod mod(.a(a),- * .b(b)- * );- */- "[variable mod] [variable mod][bracket (].[variable a][bracket (][variable a][bracket )],",- " .[variable b][bracket (][variable b][bracket )]",- " [bracket )];",- ""- );-- MT("align_port_map_style2",- /**- * mod mod(- * .a(a),- * .b(b)- * );- */- "[variable mod] [variable mod][bracket (]",- " .[variable a][bracket (][variable a][bracket )],",- " .[variable b][bracket (][variable b][bracket )]",- "[bracket )];",- ""- );-- // Indentation tests- MT("indent_single_statement_if",- "[keyword if] [bracket (][variable foo][bracket )]",- " [keyword break];",- ""- );-- MT("no_indent_after_single_line_if",- "[keyword if] [bracket (][variable foo][bracket )] [keyword break];",- ""- );-- MT("indent_after_if_begin_same_line",- "[keyword if] [bracket (][variable foo][bracket )] [keyword begin]",- " [keyword break];",- " [keyword break];",- "[keyword end]",- ""- );-- MT("indent_after_if_begin_next_line",- "[keyword if] [bracket (][variable foo][bracket )]",- " [keyword begin]",- " [keyword break];",- " [keyword break];",- " [keyword end]",- ""- );-- MT("indent_single_statement_if_else",- "[keyword if] [bracket (][variable foo][bracket )]",- " [keyword break];",- "[keyword else]",- " [keyword break];",- ""- );-- MT("indent_if_else_begin_same_line",- "[keyword if] [bracket (][variable foo][bracket )] [keyword begin]",- " [keyword break];",- " [keyword break];",- "[keyword end] [keyword else] [keyword begin]",- " [keyword break];",- " [keyword break];",- "[keyword end]",- ""- );-- MT("indent_if_else_begin_next_line",- "[keyword if] [bracket (][variable foo][bracket )]",- " [keyword begin]",- " [keyword break];",- " [keyword break];",- " [keyword end]",- "[keyword else]",- " [keyword begin]",- " [keyword break];",- " [keyword break];",- " [keyword end]",- ""- );-- MT("indent_if_nested_without_begin",- "[keyword if] [bracket (][variable foo][bracket )]",- " [keyword if] [bracket (][variable foo][bracket )]",- " [keyword if] [bracket (][variable foo][bracket )]",- " [keyword break];",- ""- );-- MT("indent_case",- "[keyword case] [bracket (][variable state][bracket )]",- " [variable FOO]:",- " [keyword break];",- " [variable BAR]:",- " [keyword break];",- "[keyword endcase]",- ""- );-- MT("unindent_after_end_with_preceding_text",- "[keyword begin]",- " [keyword break]; [keyword end]",- ""- );-- MT("export_function_one_line_does_not_indent",- "[keyword export] [string \"DPI-C\"] [keyword function] [variable helloFromSV];",- ""- );-- MT("export_task_one_line_does_not_indent",- "[keyword export] [string \"DPI-C\"] [keyword task] [variable helloFromSV];",- ""- );-- MT("export_function_two_lines_indents_properly",- "[keyword export]",- " [string \"DPI-C\"] [keyword function] [variable helloFromSV];",- ""- );-- MT("export_task_two_lines_indents_properly",- "[keyword export]",- " [string \"DPI-C\"] [keyword task] [variable helloFromSV];",- ""- );-- MT("import_function_one_line_does_not_indent",- "[keyword import] [string \"DPI-C\"] [keyword function] [variable helloFromC];",- ""- );-- MT("import_task_one_line_does_not_indent",- "[keyword import] [string \"DPI-C\"] [keyword task] [variable helloFromC];",- ""- );-- MT("import_package_single_line_does_not_indent",- "[keyword import] [variable p]::[variable x];",- "[keyword import] [variable p]::[variable y];",- ""- );-- MT("covergroup_with_function_indents_properly",- "[keyword covergroup] [variable cg] [keyword with] [keyword function] [variable sample][bracket (][keyword bit] [variable b][bracket )];",- " [variable c] : [keyword coverpoint] [variable c];",- "[keyword endgroup]: [variable cg]",- ""- );--})();diff --git a/libraries/codemirror/mode/vhdl/index.html b/libraries/codemirror/mode/vhdl/index.htmldeleted file mode 100644index ed34c25968..0000000000--- a/libraries/codemirror/mode/vhdl/index.html+++ /dev/null@@ -1,95 +0,0 @@-<!doctype html>--<title>CodeMirror: VHDL mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="vhdl.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">VHDL</a>- </ul>-</div>--<article>-<h2>VHDL mode</h2>--<div><textarea id="code" name="code">-LIBRARY ieee;-USE ieee.std_logic_1164.ALL;-USE ieee.numeric_std.ALL;--ENTITY tb IS-END tb;--ARCHITECTURE behavior OF tb IS- --Inputs- signal a : unsigned(2 downto 0) := (others => '0');- signal b : unsigned(2 downto 0) := (others => '0');- --Outputs- signal a_eq_b : std_logic;- signal a_le_b : std_logic;- signal a_gt_b : std_logic;-- signal i,j : integer;--BEGIN-- -- Instantiate the Unit Under Test (UUT)- uut: entity work.comparator PORT MAP (- a => a,- b => b,- a_eq_b => a_eq_b,- a_le_b => a_le_b,- a_gt_b => a_gt_b- );-- -- Stimulus process- stim_proc: process- begin- for i in 0 to 8 loop- for j in 0 to 8 loop- a <= to_unsigned(i,3); --integer to unsigned type conversion- b <= to_unsigned(j,3);- wait for 10 ns;- end loop;- end loop;- end process;--END;-</textarea></div>--<script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- matchBrackets: true,- mode: {- name: "vhdl",- }- });-</script>--<p>-Syntax highlighting and indentation for the VHDL language.-<h2>Configuration options:</h2>- <ul>- <li><strong>atoms</strong> - List of atom words. Default: "null"</li>- <li><strong>hooks</strong> - List of meta hooks. Default: ["`", "$"]</li>- <li><strong>multiLineStrings</strong> - Whether multi-line strings are accepted. Default: false</li>- </ul>-</p>--<p><strong>MIME types defined:</strong> <code>text/x-vhdl</code>.</p>-</article>diff --git a/libraries/codemirror/mode/vue/index.html b/libraries/codemirror/mode/vue/index.htmldeleted file mode 100644index 3888e3deb9..0000000000--- a/libraries/codemirror/mode/vue/index.html+++ /dev/null@@ -1,69 +0,0 @@-<!doctype html>--<title>CodeMirror: Vue.js mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/mode/overlay.js"></script>-<script src="../../addon/mode/simple.js"></script>-<script src="../../addon/selection/selection-pointer.js"></script>-<script src="../xml/xml.js"></script>-<script src="../javascript/javascript.js"></script>-<script src="../css/css.js"></script>-<script src="../coffeescript/coffeescript.js"></script>-<script src="../sass/sass.js"></script>-<script src="../pug/pug.js"></script>--<script src="../handlebars/handlebars.js"></script>-<script src="../htmlmixed/htmlmixed.js"></script>-<script src="vue.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Vue.js mode</a>- </ul>-</div>--<article>-<h2>Vue.js mode</h2>-<form><textarea id="code" name="code">-<template>- <div class="sass">Im am a {{mustache-like}} template</div>-</template>--<script lang="coffee">- module.exports =- props: ['one', 'two', 'three']-</script>--<style lang="sass">-.sass- font-size: 18px-</style>--</textarea></form>- <script>- // Define an extended mixed-mode that understands vbscript and- // leaves mustache/handlebars embedded templates in html mode- var mixedMode = {- name: "vue"- };- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: mixedMode,- selectionPointer: true- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-vue</code></p>-- </article>diff --git a/libraries/codemirror/mode/webidl/index.html b/libraries/codemirror/mode/webidl/index.htmldeleted file mode 100644index e9c325ed59..0000000000--- a/libraries/codemirror/mode/webidl/index.html+++ /dev/null@@ -1,71 +0,0 @@-<!doctype html>--<title>CodeMirror: Web IDL mode</title>-<meta charset="utf-8">-<link rel="stylesheet" href="../../doc/docs.css">-<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="webidl.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>--<div id="nav">- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id="logo" src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class="active" href="#">Web IDL</a>- </ul>-</div>--<article>- <h2>Web IDL mode</h2>-- <div>-<textarea id="code" name="code">-[NamedConstructor=Image(optional unsigned long width, optional unsigned long height)]-interface HTMLImageElement : HTMLElement {- attribute DOMString alt;- attribute DOMString src;- attribute DOMString srcset;- attribute DOMString sizes;- attribute DOMString? crossOrigin;- attribute DOMString useMap;- attribute boolean isMap;- attribute unsigned long width;- attribute unsigned long height;- readonly attribute unsigned long naturalWidth;- readonly attribute unsigned long naturalHeight;- readonly attribute boolean complete;- readonly attribute DOMString currentSrc;-- // also has obsolete members-};--partial interface HTMLImageElement {- attribute DOMString name;- attribute DOMString lowsrc;- attribute DOMString align;- attribute unsigned long hspace;- attribute unsigned long vspace;- attribute DOMString longDesc;-- [TreatNullAs=EmptyString] attribute DOMString border;-};-</textarea>- </div>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- matchBrackets: true- });- </script>-- <p><strong>MIME type defined:</strong> <code>text/x-webidl</code>.</p>-</article>diff --git a/libraries/codemirror/mode/xml/index.html b/libraries/codemirror/mode/xml/index.htmldeleted file mode 100644index 42d7d86cdd..0000000000--- a/libraries/codemirror/mode/xml/index.html+++ /dev/null@@ -1,61 +0,0 @@-<!doctype html>--<title>CodeMirror: XML mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="xml.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">XML</a>- </ul>-</div>--<article>-<h2>XML mode</h2>-<form><textarea id="code" name="code">-<html style="color: green">- <!-- this is a comment -->- <head>- <title>HTML Example</title>- </head>- <body>- The indentation tries to be <em>somewhat &quot;do what- I mean&quot;</em>... but might not match your style.- </body>-</html>-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- mode: "text/html",- lineNumbers: true- });- </script>- <p>The XML mode supports these configuration parameters:</p>- <dl>- <dt><code>htmlMode (boolean)</code></dt>- <dd>This switches the mode to parse HTML instead of XML. This- means attributes do not have to be quoted, and some elements- (such as <code>br</code>) do not require a closing tag.</dd>- <dt><code>matchClosing (boolean)</code></dt>- <dd>Controls whether the mode checks that close tags match the- corresponding opening tag, and highlights mismatches as errors.- Defaults to true.</dd>- <dt><code>alignCDATA (boolean)</code></dt>- <dd>Setting this to true will force the opening tag of CDATA- blocks to not be indented.</dd>- </dl>-- <p><strong>MIME types defined:</strong> <code>application/xml</code>, <code>text/html</code>.</p>- </article>diff --git a/libraries/codemirror/mode/xml/test.js b/libraries/codemirror/mode/xml/test.jsdeleted file mode 100644index b586d2b459..0000000000--- a/libraries/codemirror/mode/xml/test.js+++ /dev/null@@ -1,51 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--(function() {- var mode = CodeMirror.getMode({indentUnit: 2}, "xml"), mname = "xml";- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), mname); }-- MT("matching",- "[tag&bracket <][tag top][tag&bracket >]",- " text",- " [tag&bracket <][tag inner][tag&bracket />]",- "[tag&bracket </][tag top][tag&bracket >]");-- MT("nonmatching",- "[tag&bracket <][tag top][tag&bracket >]",- " [tag&bracket <][tag inner][tag&bracket />]",- " [tag&bracket </][tag&error tip][tag&bracket&error >]");-- MT("doctype",- "[meta <!doctype foobar>]",- "[tag&bracket <][tag top][tag&bracket />]");-- MT("cdata",- "[tag&bracket <][tag top][tag&bracket >]",- " [atom <![CDATA[foo]",- "[atom barbazguh]]]]>]",- "[tag&bracket </][tag top][tag&bracket >]");-- // HTML tests- mode = CodeMirror.getMode({indentUnit: 2}, "text/html");-- MT("selfclose",- "[tag&bracket <][tag html][tag&bracket >]",- " [tag&bracket <][tag link] [attribute rel]=[string stylesheet] [attribute href]=[string \"/foobar\"][tag&bracket >]",- "[tag&bracket </][tag html][tag&bracket >]");-- MT("list",- "[tag&bracket <][tag ol][tag&bracket >]",- " [tag&bracket <][tag li][tag&bracket >]one",- " [tag&bracket <][tag li][tag&bracket >]two",- "[tag&bracket </][tag ol][tag&bracket >]");-- MT("valueless",- "[tag&bracket <][tag input] [attribute type]=[string checkbox] [attribute checked][tag&bracket />]");-- MT("pThenArticle",- "[tag&bracket <][tag p][tag&bracket >]",- " foo",- "[tag&bracket <][tag article][tag&bracket >]bar");--})();diff --git a/libraries/codemirror/mode/xquery/index.html b/libraries/codemirror/mode/xquery/index.htmldeleted file mode 100644index 49960912ce..0000000000--- a/libraries/codemirror/mode/xquery/index.html+++ /dev/null@@ -1,211 +0,0 @@-<!doctype html>--<title>CodeMirror: XQuery mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<link rel="stylesheet" href="../../theme/xq-dark.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/edit/matchbrackets.js"></script>-<script src="xquery.js"></script>-<style>- .CodeMirror {- border-top: 1px solid black; border-bottom: 1px solid black;- height:400px;- }- </style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">XQuery</a>- </ul>-</div>--<article>-<h2>XQuery mode</h2>---<div class="cm-s-default">- <textarea id="code" name="code">-xquery version "1.0-ml";-(: this is- : a- "comment" :)-let $let := <x attr="value">"test"<func>function() $var {function()} {$var}</func></x>-let $joe:=1-return element element {- attribute attribute { 1 },- element test { 'a' },- attribute foo { "bar" },- fn:doc()[ foo/@bar eq $let ],- //x }--(: a more 'evil' test :)-(: Modified Blakeley example (: with nested comment :) ... :)-declare private function local:declare() {()};-declare private function local:private() {()};-declare private function local:function() {()};-declare private function local:local() {()};-let $let := <let>let $let := "let"</let>-return element element {- attribute attribute { try { xdmp:version() } catch($e) { xdmp:log($e) } },- attribute fn:doc { "bar" castable as xs:string },- element text { text { "text" } },- fn:doc()[ child::eq/(@bar | attribute::attribute) eq $let ],- //fn:doc-}----xquery version "1.0-ml";--(: Copyright 2006-2010 Mark Logic Corporation. :)--(:- : Licensed under the Apache License, Version 2.0 (the "License");- : you may not use this file except in compliance with the License.- : You may obtain a copy of the License at- :- : http://www.apache.org/licenses/LICENSE-2.0- :- : Unless required by applicable law or agreed to in writing, software- : distributed under the License is distributed on an "AS IS" BASIS,- : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- : See the License for the specific language governing permissions and- : limitations under the License.- :)--module namespace json = "http://marklogic.com/json";-declare default function namespace "http://www.w3.org/2005/xpath-functions";--(: Need to backslash escape any double quotes, backslashes, and newlines :)-declare function json:escape($s as xs:string) as xs:string {- let $s := replace($s, "\\", "\\\\")- let $s := replace($s, """", "\\""")- let $s := replace($s, codepoints-to-string((13, 10)), "\\n")- let $s := replace($s, codepoints-to-string(13), "\\n")- let $s := replace($s, codepoints-to-string(10), "\\n")- return $s-};--declare function json:atomize($x as element()) as xs:string {- if (count($x/node()) = 0) then 'null'- else if ($x/@type = "number") then- let $castable := $x castable as xs:float or- $x castable as xs:double or- $x castable as xs:decimal- return- if ($castable) then xs:string($x)- else error(concat("Not a number: ", xdmp:describe($x)))- else if ($x/@type = "boolean") then- let $castable := $x castable as xs:boolean- return- if ($castable) then xs:string(xs:boolean($x))- else error(concat("Not a boolean: ", xdmp:describe($x)))- else concat('"', json:escape($x), '"')-};--(: Print the thing that comes after the colon :)-declare function json:print-value($x as element()) as xs:string {- if (count($x/*) = 0) then- json:atomize($x)- else if ($x/@quote = "true") then- concat('"', json:escape(xdmp:quote($x/node())), '"')- else- string-join(('{',- string-join(for $i in $x/* return json:print-name-value($i), ","),- '}'), "")-};--(: Print the name and value both :)-declare function json:print-name-value($x as element()) as xs:string? {- let $name := name($x)- let $first-in-array :=- count($x/preceding-sibling::*[name(.) = $name]) = 0 and- (count($x/following-sibling::*[name(.) = $name]) > 0 or $x/@array = "true")- let $later-in-array := count($x/preceding-sibling::*[name(.) = $name]) > 0- return-- if ($later-in-array) then- () (: I was handled previously :)- else if ($first-in-array) then- string-join(('"', json:escape($name), '":[',- string-join((for $i in ($x, $x/following-sibling::*[name(.) = $name]) return json:print-value($i)), ","),- ']'), "")- else- string-join(('"', json:escape($name), '":', json:print-value($x)), "")-};--(:~- Transforms an XML element into a JSON string representation. See http://json.org.- <p/>- Sample usage:- <pre>- xquery version "1.0-ml";- import module namespace json="http://marklogic.com/json" at "json.xqy";- json:serialize(&lt;foo&gt;&lt;bar&gt;kid&lt;/bar&gt;&lt;/foo&gt;)- </pre>- Sample transformations:- <pre>- &lt;e/&gt; becomes {"e":null}- &lt;e&gt;text&lt;/e&gt; becomes {"e":"text"}- &lt;e&gt;quote " escaping&lt;/e&gt; becomes {"e":"quote \" escaping"}- &lt;e&gt;backslash \ escaping&lt;/e&gt; becomes {"e":"backslash \\ escaping"}- &lt;e&gt;&lt;a&gt;text1&lt;/a&gt;&lt;b&gt;text2&lt;/b&gt;&lt;/e&gt; becomes {"e":{"a":"text1","b":"text2"}}- &lt;e&gt;&lt;a&gt;text1&lt;/a&gt;&lt;a&gt;text2&lt;/a&gt;&lt;/e&gt; becomes {"e":{"a":["text1","text2"]}}- &lt;e&gt;&lt;a array="true"&gt;text1&lt;/a&gt;&lt;/e&gt; becomes {"e":{"a":["text1"]}}- &lt;e&gt;&lt;a type="boolean"&gt;false&lt;/a&gt;&lt;/e&gt; becomes {"e":{"a":false}}- &lt;e&gt;&lt;a type="number"&gt;123.5&lt;/a&gt;&lt;/e&gt; becomes {"e":{"a":123.5}}- &lt;e quote="true"&gt;&lt;div attrib="value"/&gt;&lt;/e&gt; becomes {"e":"&lt;div attrib=\"value\"/&gt;"}- </pre>- <p/>- Namespace URIs are ignored. Namespace prefixes are included in the JSON name.- <p/>- Attributes are ignored, except for the special attribute @array="true" that- indicates the JSON serialization should write the node, even if single, as an- array, and the attribute @type that can be set to "boolean" or "number" to- dictate the value should be written as that type (unquoted). There's also- an @quote attribute that when set to true writes the inner content as text- rather than as structured JSON, useful for sending some XHTML over the- wire.- <p/>- Text nodes within mixed content are ignored.-- @param $x Element node to convert- @return String holding JSON serialized representation of $x-- @author Jason Hunter- @version 1.0.1-- Ported to xquery 1.0-ml; double escaped backslashes in json:escape-:)-declare function json:serialize($x as element()) as xs:string {- string-join(('{', json:print-name-value($x), '}'), "")-};- </textarea>-</div>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true,- matchBrackets: true,- theme: "xq-dark"- });- </script>-- <p><strong>MIME types defined:</strong> <code>application/xquery</code>.</p>-- <p>Development of the CodeMirror XQuery mode was sponsored by- <a href="http://marklogic.com">MarkLogic</a> and developed by- <a href="https://twitter.com/mbrevoort">Mike Brevoort</a>.- </p>-- </article>diff --git a/libraries/codemirror/mode/xquery/test.js b/libraries/codemirror/mode/xquery/test.jsdeleted file mode 100644index f7ad3ac529..0000000000--- a/libraries/codemirror/mode/xquery/test.js+++ /dev/null@@ -1,67 +0,0 @@-// CodeMirror, copyright (c) by Marijn Haverbeke and others-// Distributed under an MIT license: https://codemirror.net/LICENSE--// Don't take these too seriously -- the expected results appear to be-// based on the results of actual runs without any serious manual-// verification. If a change you made causes them to fail, the test is-// as likely to wrong as the code.--(function() {- var mode = CodeMirror.getMode({tabSize: 4}, "xquery");- function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }-- MT("eviltest",- "[keyword xquery] [keyword version] [variable "1][keyword .][atom 0][keyword -][variable ml"][def&variable ;] [comment (: this is : a \"comment\" :)]",- " [keyword let] [variable $let] [keyword :=] [variable <x] [variable attr][keyword =][variable "value">"test"<func>][def&variable ;function]() [variable $var] {[keyword function]()} {[variable $var]}[variable <][keyword /][variable func><][keyword /][variable x>]",- " [keyword let] [variable $joe][keyword :=][atom 1]",- " [keyword return] [keyword element] [variable element] {",- " [keyword attribute] [variable attribute] { [atom 1] },",- " [keyword element] [variable test] { [variable 'a'] }, [keyword attribute] [variable foo] { [variable "bar"] },",- " [def&variable fn:doc]()[[ [variable foo][keyword /][variable @bar] [keyword eq] [variable $let] ]],",- " [keyword //][variable x] } [comment (: a more 'evil' test :)]",- " [comment (: Modified Blakeley example (: with nested comment :) ... :)]",- " [keyword declare] [variable private] [keyword function] [def&variable local:declare]() {()}[variable ;]",- " [keyword declare] [variable private] [keyword function] [def&variable local:private]() {()}[variable ;]",- " [keyword declare] [variable private] [keyword function] [def&variable local:function]() {()}[variable ;]",- " [keyword declare] [variable private] [keyword function] [def&variable local:local]() {()}[variable ;]",- " [keyword let] [variable $let] [keyword :=] [variable <let>let] [variable $let] [keyword :=] [variable "let"<][keyword /let][variable >]",- " [keyword return] [keyword element] [variable element] {",- " [keyword attribute] [variable attribute] { [keyword try] { [def&variable xdmp:version]() } [keyword catch]([variable $e]) { [def&variable xdmp:log]([variable $e]) } },",- " [keyword attribute] [variable fn:doc] { [variable "bar"] [keyword castable] [keyword as] [atom xs:string] },",- " [keyword element] [variable text] { [keyword text] { [variable "text"] } },",- " [def&variable fn:doc]()[[ [qualifier child::][variable eq][keyword /]([variable @bar] [keyword |] [qualifier attribute::][variable attribute]) [keyword eq] [variable $let] ]],",- " [keyword //][variable fn:doc]",- " }");-- MT("testEmptySequenceKeyword",- "[string \"foo\"] [keyword instance] [keyword of] [keyword empty-sequence]()");-- MT("testMultiAttr",- "[tag <p ][attribute a1]=[string \"foo\"] [attribute a2]=[string \"bar\"][tag >][variable hello] [variable world][tag </p>]");-- MT("test namespaced variable",- "[keyword declare] [keyword namespace] [variable e] [keyword =] [string \"http://example.com/ANamespace\"][variable ;declare] [keyword variable] [variable $e:exampleComThisVarIsNotRecognized] [keyword as] [keyword element]([keyword *]) [variable external;]");-- MT("test EQName variable",- "[keyword declare] [keyword variable] [variable $\"http://www.example.com/ns/my\":var] [keyword :=] [atom 12][variable ;]",- "[tag <out>]{[variable $\"http://www.example.com/ns/my\":var]}[tag </out>]");-- MT("test EQName function",- "[keyword declare] [keyword function] [def&variable \"http://www.example.com/ns/my\":fn] ([variable $a] [keyword as] [atom xs:integer]) [keyword as] [atom xs:integer] {",- " [variable $a] [keyword +] [atom 2]",- "}[variable ;]",- "[tag <out>]{[def&variable \"http://www.example.com/ns/my\":fn]([atom 12])}[tag </out>]");-- MT("test EQName function with single quotes",- "[keyword declare] [keyword function] [def&variable 'http://www.example.com/ns/my':fn] ([variable $a] [keyword as] [atom xs:integer]) [keyword as] [atom xs:integer] {",- " [variable $a] [keyword +] [atom 2]",- "}[variable ;]",- "[tag <out>]{[def&variable 'http://www.example.com/ns/my':fn]([atom 12])}[tag </out>]");-- MT("testProcessingInstructions",- "[def&variable data]([comment&meta <?target content?>]) [keyword instance] [keyword of] [atom xs:string]");-- MT("testQuoteEscapeDouble",- "[keyword let] [variable $rootfolder] [keyword :=] [string \"c:\\builds\\winnt\\HEAD\\qa\\scripts\\\"]",- "[keyword let] [variable $keysfolder] [keyword :=] [def&variable concat]([variable $rootfolder], [string \"keys\\\"])");-})();diff --git a/libraries/codemirror/mode/yacas/index.html b/libraries/codemirror/mode/yacas/index.htmldeleted file mode 100644index 52236fc97d..0000000000--- a/libraries/codemirror/mode/yacas/index.html+++ /dev/null@@ -1,87 +0,0 @@-<!doctype html>--<title>CodeMirror: yacas mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel=stylesheet href=../../lib/codemirror.css>-<script src=../../lib/codemirror.js></script>-<script src=../../addon/edit/matchbrackets.js></script>-<script src=yacas.js></script>-<style type=text/css>- .CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}-</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">yacas</a>- </ul>-</div>--<article>-<h2>yacas mode</h2>---<textarea id="yacasCode">-// example yacas code-Graph(edges_IsList) <-- [- Local(v, e, f, t);-- vertices := {};-- ForEach (e, edges) [- If (IsList(e), e := Head(e));- {f, t} := Tail(Listify(e));-- DestructiveAppend(vertices, f);- DestructiveAppend(vertices, t);- ];-- Graph(RemoveDuplicates(vertices), edges);-];--10 # IsGraph(Graph(vertices_IsList, edges_IsList)) <-- True;-20 # IsGraph(_x) <-- False;--Edges(Graph(vertices_IsList, edges_IsList)) <-- edges;-Vertices(Graph(vertices_IsList, edges_IsList)) <-- vertices;--AdjacencyList(g_IsGraph) <-- [- Local(l, vertices, edges, e, op, f, t);-- l := Association'Create();-- vertices := Vertices(g);- ForEach (v, vertices)- Association'Set(l, v, {});-- edges := Edges(g);-- ForEach(e, edges) [- If (IsList(e), e := Head(e));- {op, f, t} := Listify(e);- DestructiveAppend(Association'Get(l, f), t);- If (String(op) = "<->", DestructiveAppend(Association'Get(l, t), f));- ];-- l;-];-</textarea>--<script>- var yacasEditor = CodeMirror.fromTextArea(document.getElementById('yacasCode'), {- mode: 'text/x-yacas',- lineNumbers: true,- matchBrackets: true- });-</script>--<p><strong>MIME types defined:</strong> <code>text/x-yacas</code> (yacas).</p>-</article>diff --git a/libraries/codemirror/mode/yaml-frontmatter/index.html b/libraries/codemirror/mode/yaml-frontmatter/index.htmldeleted file mode 100644index e6283fc678..0000000000--- a/libraries/codemirror/mode/yaml-frontmatter/index.html+++ /dev/null@@ -1,121 +0,0 @@-<!doctype html>--<title>CodeMirror: YAML front matter mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="../../addon/mode/overlay.js"></script>-<script src="../markdown/markdown.js"></script>-<script src="../gfm/gfm.js"></script>-<script src="../yaml/yaml.js"></script>-<script src="yaml-frontmatter.js"></script>-<style>.CodeMirror { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">YAML-Frontmatter</a>- </ul>-</div>--<article>-<h2>YAML front matter mode</h2>-<form><textarea id="code" name="code">-----receipt: Oz-Ware Purchase Invoice-date: 2007-08-06-customer:- given: Dorothy- family: Gale--items:- - part_no: A4786- descrip: Water Bucket (Filled)- price: 1.47- quantity: 4-- - part_no: E1628- descrip: High Heeled "Ruby" Slippers- size: 8- price: 100.27- quantity: 1--bill-to: &id001- street: |- 123 Tornado Alley- Suite 16- city: East Centerville- state: KS--ship-to: *id001--specialDelivery: >- Follow the Yellow Brick- Road to the Emerald City.- Pay no attention to the- man behind the curtain.------GitHub Flavored Markdown-========================--Everything from markdown plus GFM features:--## URL autolinking--Underscores_are_allowed_between_words.--## Strikethrough text--GFM adds syntax to strikethrough text, which is missing from standard Markdown.--~~Mistaken text.~~-~~**works with other formatting**~~--~~spans across-lines~~--## Fenced code blocks (and syntax highlighting)--```javascript-for (var i = 0; i < items.length; i++) {- console.log(items[i], i); // log them-}-```--## Task Lists--- [ ] Incomplete task list item-- [x] **Completed** task list item--## A bit of GitHub spice--* SHA: be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2-* User@SHA ref: mojombo@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2-* User/Project@SHA: mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2-* \#Num: #1-* User/#Num: mojombo#1-* User/Project#Num: mojombo/god#1--See http://github.github.com/github-flavored-markdown/.-</textarea></form>--<p>Defines a mode that parses-a <a href="http://jekyllrb.com/docs/frontmatter/">YAML frontmatter</a>-at the start of a file, switching to a base mode at the end of that.-Takes a mode configuration option <code>base</code> to configure the-base mode, which defaults to <code>"gfm"</code>.</p>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {mode: "yaml-frontmatter"});- </script>-- </article>diff --git a/libraries/codemirror/mode/yaml/index.html b/libraries/codemirror/mode/yaml/index.htmldeleted file mode 100644index bfea6111da..0000000000--- a/libraries/codemirror/mode/yaml/index.html+++ /dev/null@@ -1,80 +0,0 @@-<!doctype html>--<title>CodeMirror: YAML mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="yaml.js"></script>-<style>.CodeMirror { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">YAML</a>- </ul>-</div>--<article>-<h2>YAML mode</h2>-<form><textarea id="code" name="code">---- # Favorite movies-- Casablanca-- North by Northwest-- The Man Who Wasn't There---- # Shopping list-[milk, pumpkin pie, eggs, juice]---- # Indented Blocks, common in YAML data files, use indentation and new lines to separate the key: value pairs- name: John Smith- age: 33---- # Inline Blocks, common in YAML data streams, use commas to separate the key: value pairs between braces-{name: John Smith, age: 33}-----receipt: Oz-Ware Purchase Invoice-date: 2007-08-06-customer:- given: Dorothy- family: Gale--items:- - part_no: A4786- descrip: Water Bucket (Filled)- price: 1.47- quantity: 4-- - part_no: E1628- descrip: High Heeled "Ruby" Slippers- size: 8- price: 100.27- quantity: 1--bill-to: &id001- street: |- 123 Tornado Alley- Suite 16- city: East Centerville- state: KS--ship-to: *id001--specialDelivery: >- Follow the Yellow Brick- Road to the Emerald City.- Pay no attention to the- man behind the curtain.-...-</textarea></form>- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-yaml</code>.</p>-- </article>diff --git a/libraries/codemirror/mode/z80/index.html b/libraries/codemirror/mode/z80/index.htmldeleted file mode 100644index 8f97cce2b8..0000000000--- a/libraries/codemirror/mode/z80/index.html+++ /dev/null@@ -1,53 +0,0 @@-<!doctype html>--<title>CodeMirror: Z80 assembly mode</title>-<meta charset="utf-8"/>-<link rel=stylesheet href="../../doc/docs.css">--<link rel="stylesheet" href="../../lib/codemirror.css">-<script src="../../lib/codemirror.js"></script>-<script src="z80.js"></script>-<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>-<div id=nav>- <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>-- <ul>- <li><a href="../../index.html">Home</a>- <li><a href="../../doc/manual.html">Manual</a>- <li><a href="https://github.com/codemirror/codemirror">Code</a>- </ul>- <ul>- <li><a href="../index.html">Language modes</a>- <li><a class=active href="#">Z80 assembly</a>- </ul>-</div>--<article>-<h2>Z80 assembly mode</h2>---<div><textarea id="code" name="code">-#include "ti83plus.inc"-#define progStart $9D95- .org progStart-2- .db $BB,$6D-- bcall(_ClrLCDFull)- ld hl,0- ld (CurCol),hl- ld hl,Message- bcall(_PutS) ; Displays the string- bcall(_NewLine)- ret-Message:- .db "Hello world!",0-</textarea></div>-- <script>- var editor = CodeMirror.fromTextArea(document.getElementById("code"), {- lineNumbers: true- });- </script>-- <p><strong>MIME types defined:</strong> <code>text/x-z80</code>, <code>text/x-ez80</code>.</p>- </article>