%% Fortran90 code style
\usepackage{listings}
\lstset{language=[90]Fortran,
  basicstyle=\scriptsize,
  keywordstyle=\color{blue},
  commentstyle=\color{green},
    stringstyle=\color{gray},
    showstringspaces=false,
  morecomment=[l]{!\ }% Comment only with space after !
}

%% Matlab code style with escape sequence
\lstset{language=Matlab,
  basicstyle=\scriptsize,
  keywordstyle=\color{blue},
  commentstyle=\color{green},
    stringstyle=\color{gray},
    showstringspaces=false,
    escapeinside={\%*}{*)}
}

\begin{lstlisting}
..........code..............
\end{lstlisting}
