diff options
author | Valerio Virgillito | 2012-02-14 11:07:21 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-14 11:07:21 -0800 |
commit | f060190a3bffd9a16718f2ce0499699103d46372 (patch) | |
tree | a308fe7eacec2156c8212dff0892a3de925d5f9a /imports/codemirror/mode/perl/index.html | |
parent | f766cc203f30ea43ae8b83cf4b65d45cc4435ee9 (diff) | |
parent | 33bc9d62b8e6694500bf14d5b18187bd99a520a3 (diff) | |
download | ninja-f060190a3bffd9a16718f2ce0499699103d46372.tar.gz |
Merge branch 'FileIO' of https://github.com/joseeight/ninja-internal into integration
Diffstat (limited to 'imports/codemirror/mode/perl/index.html')
-rwxr-xr-x | imports/codemirror/mode/perl/index.html | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/imports/codemirror/mode/perl/index.html b/imports/codemirror/mode/perl/index.html new file mode 100755 index 00000000..5ef55d32 --- /dev/null +++ b/imports/codemirror/mode/perl/index.html | |||
@@ -0,0 +1,62 @@ | |||
1 | <!doctype html> | ||
2 | <html> | ||
3 | <head> | ||
4 | <title>CodeMirror: Perl mode</title> | ||
5 | <link rel="stylesheet" href="../../lib/codemirror.css"> | ||
6 | <script src="../../lib/codemirror.js"></script> | ||
7 | <script src="perl.js"></script> | ||
8 | <link rel="stylesheet" href="../../doc/docs.css"> | ||
9 | <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> | ||
10 | </head> | ||
11 | <body> | ||
12 | <h1>CodeMirror: Perl mode</h1> | ||
13 | |||
14 | <div><textarea id="code" name="code"> | ||
15 | #!/usr/bin/perl | ||
16 | |||
17 | use Something qw(func1 func2); | ||
18 | |||
19 | # strings | ||
20 | my $s1 = qq'single line'; | ||
21 | our $s2 = q(multi- | ||
22 | line); | ||
23 | |||
24 | =item Something | ||
25 | Example. | ||
26 | =cut | ||
27 | |||
28 | my $html=<<'HTML' | ||
29 | <html> | ||
30 | <title>hi!</title> | ||
31 | </html> | ||
32 | HTML | ||
33 | |||
34 | print "first,".join(',', 'second', qq~third~); | ||
35 | |||
36 | if($s1 =~ m[(?<!\s)(l.ne)\z]o) { | ||
37 | $h->{$1}=$$.' predefined variables'; | ||
38 | $s2 =~ s/\-line//ox; | ||
39 | $s1 =~ s[ | ||
40 | line ] | ||
41 | [ | ||
42 | block | ||
43 | ]ox; | ||
44 | } | ||
45 | |||
46 | 1; # numbers and comments | ||
47 | |||
48 | __END__ | ||
49 | something... | ||
50 | |||
51 | </textarea></div> | ||
52 | |||
53 | <script> | ||
54 | var editor = CodeMirror.fromTextArea(document.getElementById("code"), { | ||
55 | lineNumbers: true, | ||
56 | matchBrackets: true | ||
57 | }); | ||
58 | </script> | ||
59 | |||
60 | <p><strong>MIME types defined:</strong> <code>text/x-perl</code>.</p> | ||
61 | </body> | ||
62 | </html> | ||