Last active
January 27, 2018 08:20
-
-
Save stefanfrede/4d77e229b153c33c41114c9d23914960 to your computer and use it in GitHub Desktop.
Latex snippet for Anki to preview JavaScript code.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Inline | |
[latex]\mintinline[bgcolor=black]{js}|...code goes here...|[/latex] | |
// Multi line | |
[latex] | |
\begin{minted} | |
[ | |
frame=lines, | |
framesep=2mm, | |
bgcolor=black, | |
baselinestretch=1, | |
fontsize=\footnotesize, | |
linenos | |
] | |
{js} | |
...code goes here... | |
\end{minted} | |
[/latex] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment