1\documentclass[a4paper, oneside, 10pt]{article}
2\usepackage[utf8x]{inputenc}
3\usepackage[czech]{babel}
4\usepackage{listings}
5\begin{document}
6
7
8
9\lstset{frame=single, language=java}
10\begin{lstlisting}
11
12/**
13 * The HelloWorldApp class implements an application that
14 * simply displays "Hello World!" to the standard output.
15 */
16class HelloWorldApp {
17    public static void main(String[] args) {
18        System.out.println("Hello World!"); //Display the string.
19    }
20}
21\end{lstlisting}
22
23\lstset{frame=single, language=pascal}
24\begin{lstlisting}
25
26for i:=maxint to 0 do
27begin
28{ do nothing }
29end;
30Write('Case insensitive');
31Write('Pascal keywords.');
32\end{lstlisting}
33
34
35
36\lstset{frame=single, language=PHP}
37\begin{lstlisting}
38
39echo "Hello, Dokuwiki!";
40\end{lstlisting}
41
42\lstset{frame=single, language=PHP}
43\begin{lstlisting}
44
45echo "Hello again, Dokuwiki!;
46\end{lstlisting}
47
48
49
50\lstset{frame=single, language=HTML}
51\begin{lstlisting}
52
53I am <strong>strong</strong>
54\end{lstlisting}
55
56\lstset{frame=single, language=HTML}
57\begin{lstlisting}
58
59I am <strong>stronger</strong>
60\end{lstlisting}
61
62\lstset{frame=single, language=php, title=myexample.php}
63\begin{lstlisting}
64
65<?php echo "hello world!"; ?>
66\end{lstlisting}
67
68\lstset{frame=single, language=php, title=myexample.php}
69\begin{lstlisting}
70
71<?php echo "hello world!"; ?>
72\end{lstlisting}
73
74
75
76\end{document}
77