0

how to put wlanguage code source in a report

i use this code :

\documentclass[12pt,a4paper]{report}
% Pour la gestion du français et des accents %
\usepackage[english,french]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{tcolorbox,listings}
\usepackage{fullpage}
\usepackage{color}
 
\definecolor{darkWhite}{rgb}{0.94,0.94,0.94}
 
\lstset{
    backgroundcolor=\color{darkWhite},
    breakatwhitespace=false,
    breaklines=true,
    captionpos=b,
    commentstyle=\color{red},
    deletekeywords={...},
    escapeinside={\%*}{*)},
    extendedchars=true,
    keepspaces=true,
    keywordstyle=\color{blue},
    language=wlangage,
    morekeywords={*,...},
    showspaces=false,
    showstringspaces=false,
    showtabs=false,
    stepnumber=1,
    stringstyle=\color{gray},
    tabsize=4,
    title=\lstname,
}
 
\lstdefinestyle{frameStyle}{
    basicstyle=\footnotesize,
    numbers=left,
    numbersep=20pt,
    numberstyle=\tiny\color{black}
}
 
\tcbuselibrary{listings,skins,breakable}
 
\newtcblisting{customFrame}{
    arc=0mm,
    top=0mm,
    bottom=0mm,
    left=3mm,
    right=0mm,
    width=\textwidth,
    listing only,
    listing options={style=frameStyle},
    breakable
}
 
\begin{document}
 
\begin{customFrame}
HExécuteRequête(REQ_CategorieAnneeDist)
HSupprimeTout(CategorieRevue)
POUR TOUT REQ_CategorieAnneeDist 
    HRAZ(CategorieRevue)
    CategorieRevue.AnneeCategorie = REQ_CategorieAnneeDist.AnneeCategorie
    CategorieRevue.DesignationCategorie = REQ_CategorieAnneeDist.Categorie
    HAjoute(CategorieRevue)
FIN

\end{customFrame}
 
\end{document}

but latex did not understand the language wlanguage andi don't understand how to change color like this :

enter image description here

how can i do like this ?

3
  • 1
    Is this useful? tex.stackexchange.com/q/374237/1952
    – Ignasi
    Jul 3, 2020 at 7:40
  • the probleme i use overleaf and not logiciel for latex @Ignasi
    – Lorain M
    Jul 3, 2020 at 10:29
  • 1
    You can include language definitions into your preamble, and if you prefer an independent file, put it on your project folder on Overleaf.
    – Ignasi
    Jul 3, 2020 at 10:44

0

You must log in to answer this question.

Browse other questions tagged .