File modules/editor/codemirror/mode/julia/index.html

Last commit: Sun Dec 17 01:14:09 2017 +0100	Jan Dankert	Integration eines weiteren Code-Editors: Codemirror. Demnächst müssen wir hier mal aufräumen und andere Editoren rauswerfen.
1 <!doctype html> 2 3 <title>CodeMirror: Julia mode</title> 4 <meta charset="utf-8"/> 5 <link rel=stylesheet href="../../doc/docs.css"> 6 7 <link rel="stylesheet" href="../../lib/codemirror.css"> 8 <script src="../../lib/codemirror.js"></script> 9 <script src="julia.js"></script> 10 <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> 11 <div id=nav> 12 <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> 13 14 <ul> 15 <li><a href="../../index.html">Home</a> 16 <li><a href="../../doc/manual.html">Manual</a> 17 <li><a href="https://github.com/codemirror/codemirror">Code</a> 18 </ul> 19 <ul> 20 <li><a href="../index.html">Language modes</a> 21 <li><a class=active href="#">Julia</a> 22 </ul> 23 </div> 24 25 <article> 26 <h2>Julia mode</h2> 27 28 <div><textarea id="code" name="code"> 29 #numbers 30 1234 31 1234im 32 .234 33 .234im 34 2.23im 35 2.3f3 36 23e2 37 0x234 38 39 #strings 40 'a' 41 "asdf" 42 r"regex" 43 b"bytestring" 44 45 """ 46 multiline string 47 """ 48 49 #identifiers 50 a 51 as123 52 function_name! 53 54 #unicode identifiers 55 # a = x\ddot 56 a⃗ = ẍ 57 # a = v\dot 58 a⃗ = v̇ 59 #F\vec = m \cdotp a\vec 60 F⃗ = m·a⃗ 61 62 #literal identifier multiples 63 3x 64 4[1, 2, 3] 65 66 #dicts and indexing 67 x=[1, 2, 3] 68 x[end-1] 69 x={"julia"=>"language of technical computing"} 70 71 72 #exception handling 73 try 74 f() 75 catch 76 @printf "Error" 77 finally 78 g() 79 end 80 81 #types 82 immutable Color{T<:Number} 83 r::T 84 g::T 85 b::T 86 end 87 88 #functions 89 function change!(x::Vector{Float64}) 90 for i = 1:length(x) 91 x[i] *= 2 92 end 93 end 94 95 #function invocation 96 f('b', (2, 3)...) 97 98 #operators 99 |= 100 &= 101 ^= 102 \- 103 %= 104 *= 105 += 106 -= 107 <= 108 >= 109 != 110 == 111 % 112 * 113 + 114 - 115 < 116 > 117 ! 118 = 119 | 120 & 121 ^ 122 \ 123 ? 124 ~ 125 : 126 $ 127 <: 128 .< 129 .> 130 << 131 <<= 132 >> 133 >>>> 134 >>= 135 >>>= 136 <<= 137 <<<= 138 .<= 139 .>= 140 .== 141 -> 142 // 143 in 144 ... 145 // 146 := 147 .//= 148 .*= 149 ./= 150 .^= 151 .%= 152 .+= 153 .-= 154 \= 155 \\= 156 || 157 === 158 && 159 |= 160 .|= 161 <: 162 >: 163 |> 164 <| 165 :: 166 x ? y : z 167 168 #macros 169 @spawnat 2 1+1 170 @eval(:x) 171 172 #keywords and operators 173 if else elseif while for 174 begin let end do 175 try catch finally return break continue 176 global local const 177 export import importall using 178 function macro module baremodule 179 type immutable quote 180 true false enumerate 181 182 183 </textarea></div> 184 <script> 185 var editor = CodeMirror.fromTextArea(document.getElementById("code"), { 186 mode: {name: "julia", 187 }, 188 lineNumbers: true, 189 indentUnit: 4, 190 matchBrackets: true 191 }); 192 </script> 193 194 <p><strong>MIME types defined:</strong> <code>text/x-julia</code>.</p> 195 </article>
Download modules/editor/codemirror/mode/julia/index.html
History Sun, 17 Dec 2017 01:14:09 +0100 Jan Dankert Integration eines weiteren Code-Editors: Codemirror. Demnächst müssen wir hier mal aufräumen und andere Editoren rauswerfen.