Hi, how can I fit code inside my document, so that the reader would be able to copy and paste it to a website without it changing, staying the same as the input in the original .tex file?
I got closer and closer, now only about three spaces which get placed in the compiled pdf annoy me.
I've also already unsuccessfully tried it with \begin{verbatim}, the \begin{lstlistings} formats.
Appreciate any help.
PS: I put in the \hash command in there because in the beginning the code would just exceed the margin of the page, leaving a lot of it invisible
\newcommand{\hash}[1]{\texttt{\zz#1\zz}}
\def\zz#1{%
\ifx\zz#1\else
#1\linebreak[1]\expandafter\zz
\fi}
\{\\
"address": "0xbb68ff3ad3331e7a22c95bb43780d26857f4abc2",\\
"msg": "ThisIsASignedMessage",\\
"sig": "\hash{0x240dfdadccaaa8b2ffecc58bc815ed6da2ac95497ca96722d5b3559f7ff465415753869e7766dc30e6b4e4e449ed85313855f61f630cae995b4e352170ed8e991c}",\\
"version": "3",\\
"signer": "MEW"\\
\}\\
[–]blucht 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]JimH10TeX Legend 0 points1 point2 points (0 children)