
Code: Select all
\documentclass[11pt,a4paper]{article}
\usepackage[usenames]{color}
\usepackage{listings}
%set up code styling
\definecolor{darkgreen}{rgb}{0.0,0.6,0.2}
\lstset{
language=HTML,
basicstyle=\color{black},
keywordstyle=\color{darkgreen},
identifierstyle=,
commentstyle=\color{blue},
stringstyle=\color{red},
showstringspaces=false
}
\begin{document}
\begin{lstlisting}
<!-- divide viewport horizontally into 2 frames -->
<frameset rows="50px, *">
<!-- The first frame is the full width header -->
<frame src="header.html" />
<!-- another frameset is added to the second frame to
create an aria for the navigation and content -->
<frameset cols="120px,*">
<frame src="navi.html" />
<frame src="frame_a.html"
name="showframe" />
</frameset>
</frameset>
\end{lstlisting}
\end{document}