Monday, October 03, 2011
To allow code Listing in Latex, follow this block of code , like a professional books
\documentclass{unlthesis}
\usepackage{color}
\usepackage{xcolor}
\usepackage{listings}
\usepackage{caption}
\DeclareCaptionFont{white}{\color{white}}
\DeclareCaptionFormat{listing}{\colorbox{gray}{\parbox{\textwidth}{#1#2#3}}}
\captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white}
\begin{document}
\begin{lstlisting}[language=java,
caption=XYZ.java, label=code:XYZ_Code, frame=b,
breaklines=true, showstringspaces=false,
basicstyle=\footnotesize]
class Doing
{
public static void main(string [] args)
{
int x = 0 ;
}
}
\end{lstlisting}
\end{document}
While exploring my old data, i discovered an old source code for a game developed in 2003 by me and only me. :)
The game was Selem w Te3ban (سلم و تعبان)(Snake and Stairs), it coded by Visual Studio 2003 and C# .NET 1.1. It support up to two players and really i was talented in graphics, i made some pretty images in it. Sorry if you find any bug, i was just a new pie in programming ;)
For try and play it , follow this link.
Labels: C# , me , Technology
Subscribe to:
Posts
(
Atom
)