comparison pages/index.md @ 227:9057b6832c9a

Improve syntax highlight with fenced markup.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Tue, 29 Sep 2020 13:18:39 +0900
parents e69093ab4992
children 236c0b1f7515
comparison
equal deleted inserted replaced
226:eb7a3afdad8b 227:9057b6832c9a
56 </p> 56 </p>
57 </div> 57 </div>
58 <div class="cell auto"> 58 <div class="cell auto">
59 {%- include code1.html -%} 59 {%- include code1.html -%}
60 <!-- 60 <!--
61 {%- highlight octave -%} 61 ```octave
62 b = [4; 9; 2] # Column vector 62 b = [4; 9; 2] # Column vector
63 A = [ 3 4 5; 63 A = [ 3 4 5;
64 1 3 1; 64 1 3 1;
65 3 5 9 ] 65 3 5 9 ]
66 x = A \ b # Solve the system Ax = b 66 x = A \ b # Solve the system Ax = b
67 {%- endhighlight -%} 67 ```
68 --> 68 -->
69 </div> 69 </div>
70 </div> 70 </div>
71 71
72 <div class="grid-x grid-margin-x"> 72 <div class="grid-x grid-margin-x">
77 </p> 77 </p>
78 </div> 78 </div>
79 <div class="cell auto"> 79 <div class="cell auto">
80 {%- include code2.html -%} 80 {%- include code2.html -%}
81 <!-- 81 <!--
82 {%- highlight octave -%} 82 ```octave
83 x = -10:0.1:10; # Create an evenly-spaced vector from -10..10 83 x = -10:0.1:10; # Create an evenly-spaced vector from -10..10
84 y = sin (x); # y is also a vector 84 y = sin (x); # y is also a vector
85 plot (x, y); 85 plot (x, y);
86 title ("Simple 2-D Plot"); 86 title ("Simple 2-D Plot");
87 xlabel ("x"); 87 xlabel ("x");
88 ylabel ("sin (x)"); 88 ylabel ("sin (x)");
89 {%- endhighlight -%} 89 ```
90 --> 90 -->
91 <a href="#" class="button small-only-expanded" data-open="plotModal">Click here to see the plot output</a> 91 <a href="#" class="button small-only-expanded" data-open="plotModal">Click here to see the plot output</a>
92 </div> 92 </div>
93 </div> 93 </div>
94 94
112 Octave is free software licensed under the 112 Octave is free software licensed under the
113 [GNU General Public License (GPL)]({{ "license.html" | relative_url }}). 113 [GNU General Public License (GPL)]({{ "license.html" | relative_url }}).
114 Assuming you have Mercurial installed on your machine you may obtain the latest 114 Assuming you have Mercurial installed on your machine you may obtain the latest
115 development version of Octave sources with the following command: 115 development version of Octave sources with the following command:
116 116
117 {% highlight text %} 117 ```
118 hg clone https://www.octave.org/hg/octave 118 hg clone https://www.octave.org/hg/octave
119 {% endhighlight %} 119 ```
120 120
121 [Get involved]({{ "/get-involved.html" | relative_url }}) in Octave development. 121 [Get involved]({{ "/get-involved.html" | relative_url }}) in Octave development.
122 122
123 123
124 {% assign latest_post = site.posts.first %} 124 {% assign latest_post = site.posts.first %}