matlab-prettifier
matlab-prettifier copied to clipboard
A style for the Matlab REPL?
I have some assignments in my Linear Algebra class that require use of MATLAB, and I'd like to have syntax highlighting on them.
\subsection*{Exercise 1.3}
\begin{lstlisting}
>> z = 25-(100-7exp(5+cos(pi/3))
z = 25-(100-7exp(5+cos(pi/3))
↑
Error: Invalid use of operator.
Did you mean: z = 25-(100-7*exp (5+cos(pi/3)))
>> z = 25-(100-7*exp (5+cos(pi/3)))
z =
1.6378e+03
\end{lstlisting}
I should also note that using language=Matlab,style=Matlab-*
(where *
is any of the styles) results in this bug: https://tex.stackexchange.com/questions/537733/up-arrow-not-showing-in-listingsutf8
Related to the REPL using these characters/in this style.