%
-% lltjp-listings.sty 2018-08-25
+% lltjp-listings.sty 2018-09-17
%
\NeedsTeXFormat{LaTeX2e}
\begingroup\lccode`\~=`#1\lowercase{%
\gdef\lst@next##1~{%
\let\lst@arg\@empty\ltj@lst@remove@jacmd{##1}%
- \expandafter\expandafter\expandafter\scantokens\expandafter{\lst@arg}%
+ \expandafter\expandafter\expandafter\scantokens\expandafter{\lst@arg\relax}%
~}%
}\endgroup
}
IVS対応1: \texttt{vsraw=false} (default)
\begin{LTXexample}[escapechar=\%, basicstyle=\tt]
-1234567890
+123456789012345678
1葛󠄀城,葛󠄁飾
󠄀a
\end{LTXexample}
IVS対応2: \texttt{vsraw=true}
\begin{LTXexample}[escapechar=\%,vsraw, basicstyle=\tt]
-1234567890
+123456789012345678
1葛󠄀城,葛󠄁飾アイウ
\end{LTXexample}
aiu
\end{lstlisting}
あいうえお
+
+\bigskip
+\textbf{Escape character}
+\begin{lstlisting}[escapechar=\#,basicstyle=\ttfamily]
+1234567890123457890
+aiu#\textcolor{red}{e} #o#\textcolor{red}{ka}#ki
+\end{lstlisting}
+
\end{document}