From 24f0c12468a2d66dcae1a3204d949b195daffb38 Mon Sep 17 00:00:00 2001
From: MZuenni <michi.zuendorf@gmail.com>
Date: Wed, 1 Mar 2023 12:50:38 +0100
Subject: added digit separator

---
 latexHeaders/code.sty | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'latexHeaders/code.sty')

diff --git a/latexHeaders/code.sty b/latexHeaders/code.sty
index 535a380..67a6f15 100644
--- a/latexHeaders/code.sty
+++ b/latexHeaders/code.sty
@@ -22,7 +22,7 @@
 
 \usepackage{listings}
 \lstset{
-	language={C++},
+	language={[11]C++},
 	numbers=left,
 	stepnumber=1,
 	numbersep=6pt,
@@ -44,6 +44,7 @@
 	frame=trbl,
 	aboveskip=3pt,
 	belowskip=3pt,
+	deletestring=[b]{'},%lose char heighlighting but win digit separator
 	escapechar=@
 	%moredelim=**[is][{\btHL[fill=green!30,draw=red,dashed,thin]}]{@}{@}	
 }
@@ -106,3 +107,4 @@
 \makeatother
 
 \newcommand{\hl}[1]{\btHL[fill=safeOrange,draw=black,thin]{#1}}
+
-- 
cgit v1.2.3

