Wiki page
[Syntax Highlighting Test] by
tangent
2019-09-02 19:00:07.
D 2019-09-02T19:00:07.728
L Syntax\sHighlighting\sTest
N text/x-markdown
U tangent
W 956
This is a test of the [Prism][1] syntax highlighting [as set up on this site][2].
# C
``` c
#include <stdio.h>
int main(void)
{
printf("Hello, world!\n");
return 0;
}
```
# C++
``` cpp
#include <iostream>
int main()
{
std::cout << "Hello, world!" << std::endl;
}
```
# HTML
``` html
<html>
<head>
<title>Hello, world!</title>
</head>
<body lang="en">
<h1>Hello, world!</h1>
</body>
</html>
```
# JavaScript
``` js
(function() {
console.log("Hello, world!");
})();
```
# Makefile
``` makefile
MSG := Hello, world!
all:
@echo "$(MSG)"
```
# Markdown
``` markdown
# Hello
...world!
```
# Perl
``` perl
#!/usr/bin/env perl -w
use v5.16;
use strict;
say "Hello, world\n";
```
[1]: https://prismjs.com
[2]: https://prismjs.com/download.html#themes=prism-coy&languages=markup+css+clike+javascript+c+cpp+markdown+makefile+perl
Z 4bdb00789b903637438eacc4f48072da