Possible duplicate of this question
MWE:
\documentclass[%
parskip=full,% empty line after each paragraph.
twoside=false% not a 2-sided print for a book.
]{scrbook}
% \usepackage[utf8]{inputenc} % For non-English languages
\usepackage[latin1]{inputenc} % listings needs this encoding instead!
\usepackage{listings, tcolorbox}
\usepackage{tcolorbox}
\tcbuselibrary{listings,skins,theorems,xparse}
\NewTotalTCBox{\inlinebox}{ O{white} v}
{ tcbox raise base,
arc=2pt,
nobeforeafter,% makes the box inline
colback=#1!10!white,% pales given color for background
boxsep=0pt,left=1pt,right=1pt,top=2pt,bottom=2pt,
boxrule=0pt}
{\lstinline[style=tcblatex,texcsstyle=*\color{blue}\bfseries]§#2§}
\newcommand\cil{\inlinebox[green]}
\begin{document}
\cil|\TeX| (\TeX) is a control word because it is made up of letters. Any non-letter will end the sequence.
\end{document}
This all works if I do \UseRawInputEncoding, as per this answer.
Should I do that? Or is there something more correct that I should do?
\usepackage[latin1]{inputenc} also works, by the way.