aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqorg11 <qorg@vxempire.xyz>2021-12-19 13:20:27 +0100
committerqorg11 <qorg@vxempire.xyz>2021-12-19 13:20:27 +0100
commit51c50190342699a4f68024a8fbcf51eeef35e21b (patch)
treeb34aed77b5b6eb0194d4e83174e743d15e498fdb
parent541a0dac1a9ca11759f8e9ee7d7945f87aa2572f (diff)
downloadkill9-51c50190342699a4f68024a8fbcf51eeef35e21b.tar.gz
kill9-51c50190342699a4f68024a8fbcf51eeef35e21b.zip
c++ rocks thing uses pandoc instead of the js thing
-rw-r--r--rocks/computers/software/langs/c++.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/rocks/computers/software/langs/c++.md b/rocks/computers/software/langs/c++.md
index d581088..05561f3 100644
--- a/rocks/computers/software/langs/c++.md
+++ b/rocks/computers/software/langs/c++.md
@@ -1,4 +1,3 @@
-<script src="/run_prettify.js"></script>
<noscript><p>JavaScript disabled! Congrats! But keep in mind that there won't be syntax highligthing</p></noscript>
# C++ has good stuff
@@ -15,7 +14,7 @@ Let's be honest, no matter how much you love C, you have to recognize
that the pthreads API are garbage. But C++'s threads API is much
better:
-<pre class="prettyprint">
+~~~{.c++ .numberLines}
#include &lt;iostream&gt;
#include &lt;thread&gt;
#include &lt;mutex&gt;
@@ -57,7 +56,7 @@ main(void)
std::cout << j << std::endl;
}
-</pre>
+~~~
### Async functions and stuff
@@ -65,7 +64,7 @@ As far as I know, C doesn't have this (well, it does but as state
above you'll have to have a lot of patience to work with
pthreads). but C++ does.
-<pre class="prettyprint">
+~~~{.c++ .numberLines}
#include &lt;iostream&gt;
#include &lt;future&gt;
@@ -83,7 +82,7 @@ main()
std::cout << "The return value of do_stuff is: " << future.get() << std::endl;
return 0;
}
-</pre>
+~~~
## C compatibility