I would like to know if it is possible to have a call out to a specific section of a listing file so that the listing can look like this (with the red highlighted box, arrows and red text??:
If so, how can this be done?
Here is the code that I have so far:
\documentclass[a4paper, 10pt]{report}
\usepackage{calc}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage{pdfpages,graphicx}
\usepackage{listings}
\usepackage{filecontents}
\usepackage[numbered,framed]{matlab-prettifier}
\definecolor{myblueiii}{RGB}{199,234,253}
\usepackage{tcolorbox}
\newcounter{result}
\tcbuselibrary{skins,breakable,listings}
\newtcbinputlisting[use counter=result]{\inputresult}[3][]{%
colback=myblueiii,
title after break={\centering\footnotesize\itshape\strut Result~\theresult~--~continued},%
listing only,listing options={xleftmargin=-1mm,#1,style=mystyleresults},after upper={\centering\strut Result~\theresult:~#2},%
listing file={#3}}
\lstdefinestyle{mystyleresults}{
numberstyle=\tiny\color{codegray},
stringstyle=\color{black},
basicstyle=\ttfamily\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=none,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=6
}
\begin{filecontents}{result1.txt}
=== Run information ===
Classifier Model
Bagging with 10 iterations and base learner
weka.classifiers.trees.J48 -C 0.25 -M 2
Cost Matrix
0 1
1 0
Time taken to build model: 0.01 seconds
=== Stratified cross-validation ===
=== Summary ===
Correctly Classified Instances 166 88.2979 %
Incorrectly Classified Instances 22 11.7021 %
Kappa statistic 0.7173
\end{filecontents}
\begin{document}
\inputresult{Result from run 1}{result1.txt}
\end{document}

