I ran into difficulties using TeXnicCenter on WIndows (I was supposed to run Latex with some option). So I tried the example with the listings package. Here is the Tex code:
\documentclass[12pt,english,a4paper]{book}
%\usepackage[utf8]{inputenc}
%\usepackage[T1]{fontenc}
%\usepackage{lmodern}
%
%\usepackage{xcolor}
%\definecolor{bg_listing}{rgb}{0.95,0.95,0.95}
%
%\usepackage{minted}
%\setminted[Fortran]{linenos, autogobble, breaklines, breakanywhere,
%bgcolor=bg_listing}
%\setminted[Bash]{style=bw, frame=single, breaklines, breakanywhere}
%\setmintedinline{bgcolor={}}
\usepackage{xcolor}
\usepackage{listings}
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
\lstdefinestyle{mystyle}{
backgroundcolor=\color{backcolour},
commentstyle=\color{codegreen},
keywordstyle=\color{blue},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\ttfamily\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2
}
\lstset{style=mystyle}
\lstset{language=Fortran}
\begin{document}
\tableofcontents
\chapter{Introduction}
\chapter{Fortran Tip}
\section{Bitwise}
\begin{lstlisting}[language=Fortran]
program bitwise
implicit none
print*,iand(1,1),iand(1,0),iand(0,1),iand(0,0) ! 1 0 0 0
print*,iand(2,2),iand(2,1),iand(2,0) ! 2 0 0
print*,ior(1,1),ior(1,0),ior(0,1),ior(0,0) ! 1 1 1 0
print*,ieor(1,1),ieor(1,0),ieor(0,1),ieor(0,0) ! 0 1 1 0
print*,iany([1,1]),iany([1,0]),iany([0,0]) ! 1 1 0
end program bitwise
\end{lstlisting}
\end{document}
Just an alternative, mind you :).
Regards,
Arjen