mirror of
https://github.com/wassname/template.git
synced 2026-10-01 12:43:05 +08:00
Adding a few more languages.
This commit is contained in:
1 parent
5c4b1108b6
commit
0abf0247e2
4 files changed
+335
-118
No files matched your search
@@ -35,6 +35,22 @@
|
||||
<tr><td>234</td><td>54</td><td>23</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>Here's a javascript code block.</p>
|
||||
<dt-code block language="javascript">
|
||||
var x = 25;
|
||||
function(x){
|
||||
return x * x;
|
||||
}
|
||||
</dt-code>
|
||||
<p>We also support python.</p>
|
||||
<dt-code block language="python">
|
||||
# Python 3: Fibonacci series up to n
|
||||
def fib(n):
|
||||
a, b = 0, 1
|
||||
while a < n:
|
||||
print(a, end=' ')
|
||||
a, b = b, a+b
|
||||
</dt-code>
|
||||
</dt-article>
|
||||
|
||||
<script type="text/bibliography">
|
||||
|
||||
Reference in new issue
Block a user