File: Hello_h_f.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 (76 lines) | stat: -rw-r--r-- 5,872 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!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>./Hello.java</title>
</head>
<body>
<body text="#000000" bgcolor="#CBFFE1" link="#CC6600" vlink="#51188E" alink="#FF0000">
This file has been formatted with
<br><b><font color="#FF0000">GNU Source-highlight</font></b>,
<a href="http://www.gnu.org/software/src-highlite">http://www.gnu.org/software/src-highlite</a>
<br>
by <i><font color="#009900">Lorenzo Bettini</font></i>
<a href="http://www.lorenzobettini.it">http://www.lorenzobettini.it</a>
<hr>
<center>
<table BORDER=3 CELLPADDING=10 COLS=1 WIDTH="90%" BGCOLOR="#FFFF99" NOSAVE >
<tr NOSAVE>
<td NOSAVE>

<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="#008080">import</font></b> <font color="#000080">java</font><font color="#990000">.</font><font color="#000080">io</font><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> <font color="#000080">Hello</font> <font color="#FF0000">{</font>
    <font color="#009900">int</font> <font color="#000080">foo</font> <font color="#990000">=</font> <font color="#993399">1998</font> <font color="#990000">;</font>
    <font color="#009900">int</font> <font color="#000080">hex_foo</font> <font color="#990000">=</font> <font color="#993399">0xCAFEBABE</font><font color="#990000">;</font>
    <font color="#009900">boolean</font> <font color="#000080">b</font> <font color="#990000">;</font>
    <font color="#000080">Integer</font> <font color="#000080">i</font> <font color="#990000">=</font> <b><font color="#0000FF">null</font></b> <font color="#990000">;</font>
    <font color="#009900">char</font> <font color="#000080">c</font> <font color="#990000">=</font> <font color="#FF0000">'\''</font><font color="#990000">,</font> <font color="#000080">d</font> <font color="#990000">=</font> <font color="#FF0000">'n'</font><font color="#990000">,</font> <font color="#000080">e</font> <font color="#990000">=</font> <font color="#FF0000">'\\'</font> <font color="#990000">;</font>
    <font color="#000080">String</font> <font color="#000080">xml</font> <font color="#990000">=</font> <font color="#FF0000">"&lt;tag attr=\"value\"&gt;&amp;auml;&lt;/tag&gt;"</font><font color="#990000">,</font> <font color="#000080">foo2</font> <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> <font color="#000080">String</font> <font color="#000080">args</font><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>
	<font color="#000080">System</font><font color="#990000">.</font><font color="#000080">out</font><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>
	<font color="#000080">System</font><font color="#990000">.</font><font color="#000080">out</font><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>
	<font color="#000080">System</font><font color="#990000">.</font><font color="#000080">out</font><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>
</td>
</tr>
</table></center>
<hr>
This file was generated with the following command:
<pre>
source-highlight -s cpp -f html -i cmdline.c -o cmdline.c.html --css="cpp2html.css" --header="./header.html" --footer="./footer.html"</pre>
and these are <a href="header.html">header.html</a> and <a href="footer.html">footer.html</a>.
<br>
<tt>--header</tt> and <tt>--footer</tt> options are an idea of
Xavier Outhier, for an earlier version of Java2html (now GNU Source-highlight), <a href="http://www.gnu.org/software/src-highlite">http://www.gnu.org/software/src-highlite</a><a href="http://www.gnu.org/software/src-highlite"></a>


</body>
</html>