I broke up with neovim....vim is my best friend now
This commit is contained in:
50
dot_vim/plugged/vimtex/test/test-syntax/test-listings.tex
Normal file
50
dot_vim/plugged/vimtex/test/test-syntax/test-listings.tex
Normal file
@@ -0,0 +1,50 @@
|
||||
\documentclass{article}
|
||||
\usepackage{listings}
|
||||
|
||||
\begin{document}
|
||||
|
||||
% Comment out to compile!
|
||||
\lstinputlisting[options]{file}
|
||||
|
||||
\lstinline|asdasd|
|
||||
\lstinline{asdasd}
|
||||
|
||||
\lstinline[language=C]|int x;|
|
||||
\lstinline[language=C]{int x;}
|
||||
|
||||
\begin{lstlisting}
|
||||
testing
|
||||
\end{lstlisting}
|
||||
|
||||
\begin{lstlisting}[directivestyle={\color{black}},
|
||||
language=C,
|
||||
emph={int,char,double,float,unsigned},
|
||||
emphstyle={\color{blue}}]
|
||||
#include<stdio.h>
|
||||
main() {
|
||||
int i = 0;
|
||||
printf("Hello World");
|
||||
}
|
||||
\end{lstlisting}
|
||||
|
||||
\begin{lstlisting}[language=python]
|
||||
def function(arg):
|
||||
pass
|
||||
\end{lstlisting}
|
||||
|
||||
\lstset{language=rust,numbers=none}
|
||||
\begin{lstlisting}
|
||||
fn main() {
|
||||
println!("Hello World!");
|
||||
}
|
||||
\end{lstlisting}
|
||||
|
||||
\lstset{language=x,numbers=none}
|
||||
|
||||
\lstset{
|
||||
language=C,
|
||||
basicstyle=\color[RGB]{0,0,0},
|
||||
numberstyle=\small
|
||||
}
|
||||
|
||||
\end{document}
|
||||
Reference in New Issue
Block a user