File: Hello3.html

package info (click to toggle)
source-highlight 1.11-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,872 kB
  • ctags: 4,699
  • sloc: sh: 3,633; cpp: 2,606; lex: 2,463; ansic: 1,610; makefile: 537; php: 185; perl: 145; yacc: 122; ruby: 63; sed: 53; python: 45; ml: 38; java: 30
file content (50 lines) | stat: -rw-r--r-- 4,187 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="GNU source-highlight 1.11
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite">
<title>Happy Java with java2html :-)</title>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000EE" vlink="#551A8B" alink="#FF0000">
<pre><tt><i><font color="#9A1900">/*</font></i>
<i><font color="#9A1900">  This is a classical Hello program</font></i>
<i><font color="#9A1900">  to test source-highlight with Java programs.</font></i>
<i><font color="#9A1900">  </font></i>
<i><font color="#9A1900">  to have an html translation type</font></i>
<i><font color="#9A1900"></font></i>
<i><font color="#9A1900">   source-highlight -s java -f html --input Hello.java --output Hello.html</font></i>
<i><font color="#9A1900">   source-highlight -s java -f html &lt; Hello.java &gt; Hello.html</font></i>
<i><font color="#9A1900"></font></i>
<i><font color="#9A1900">  or type source-highlight --help for the list of options</font></i>
<i><font color="#9A1900"></font></i>
<i><font color="#9A1900">  written by</font></i>
<i><font color="#9A1900">  Lorenzo Bettini</font></i>
<i><font color="#9A1900">  http://www.lorenzobettini.it</font></i>
<i><font color="#9A1900">  http://www.gnu.org/software/src-highlite</font></i>
<i><font color="#9A1900">*/</font></i>

<b><font color="#000080">import</font></b> java<font color="#990000">.</font>io<font color="#990000">.</font><font color="#990000">*</font> <font color="#990000">;</font>

<b><font color="#0000FF">public</font></b> <b><font color="#0000FF">class</font></b> Hello <font color="#FF0000">{</font>
    <font color="#009900">int</font> foo <font color="#990000">=</font> <font color="#993399">1998</font> <font color="#990000">;</font>
    <font color="#009900">int</font> hex_foo <font color="#990000">=</font> <font color="#993399">0xCAFEBABE</font><font color="#990000">;</font>
    <font color="#009900">boolean</font> b <font color="#990000">;</font>
    Integer i <font color="#990000">=</font> <b><font color="#0000FF">null</font></b> <font color="#990000">;</font>
    <font color="#009900">char</font> c <font color="#990000">=</font> <font color="#FF0000">'\''</font><font color="#990000">,</font> d <font color="#990000">=</font> <font color="#FF0000">'n'</font><font color="#990000">,</font> e <font color="#990000">=</font> <font color="#FF0000">'\\'</font> <font color="#990000">;</font>
    String xml <font color="#990000">=</font> <font color="#FF0000">"&lt;tag attr=\"value\"&gt;&amp;auml;&lt;/tag&gt;"</font><font color="#990000">,</font> foo2 <font color="#990000">=</font> <font color="#FF0000">"\\"</font> <font color="#990000">;</font>
    
    <b><font color="#0000FF">public</font></b> <b><font color="#0000FF">static</font></b> <font color="#009900">void</font> <b><font color="#000000">main</font></b><font color="#990000">(</font> String args<font color="#990000">[</font><font color="#990000">]</font> <font color="#990000">)</font> <font color="#FF0000">{</font>
   <i><font color="#9A1900">// just some greetings ;-)  /*</font></i>
   System<font color="#990000">.</font>out<font color="#990000">.</font><b><font color="#000000">println</font></b><font color="#990000">(</font> <font color="#FF0000">"Hello from java2html :-)"</font> <font color="#990000">)</font> <font color="#990000">;</font>
   System<font color="#990000">.</font>out<font color="#990000">.</font><b><font color="#000000">println</font></b><font color="#990000">(</font> <font color="#FF0000">"\tby Lorenzo Bettini"</font> <font color="#990000">)</font> <font color="#990000">;</font>
   System<font color="#990000">.</font>out<font color="#990000">.</font><b><font color="#000000">println</font></b><font color="#990000">(</font> <font color="#FF0000">"\twww.lorenzobettini.it"</font> <font color="#990000">)</font> <font color="#990000">;</font>
        <i><font color="#9A1900">//System.out.println( "bye bye... :-D" ) ; // see you soon</font></i>
    <font color="#FF0000">}</font>
<font color="#FF0000">}</font>
</tt></pre>
</body>
</html>