/usr/share/doc/source-highlight/Hello_xhtml.html is in source-highlight 3.1.8-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="GENERATOR" content="GNU source-highlight 3.1.8
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite" />
<meta name="INPUTLANG" content="java.lang" />
<title>./Hello.java</title>
<link rel="stylesheet" href="./xhtml.css" type="text/css" />
</head>
<body>
<pre><tt><span class="comment">/*</span>
<span class="comment"> This is a classical Hello program</span>
<span class="comment"> to test source-highlight with Java programs.</span>
<span class="comment"> </span>
<span class="comment"> to have an html translation type</span>
<span class="comment"> source-highlight -s java -f html --input Hello.java --output Hello.html</span>
<span class="comment"> source-highlight -s java -f html < Hello.java > Hello.html</span>
<span class="comment"> or type source-highlight --help for the list of options</span>
<span class="comment"> written by</span>
<span class="comment"> Lorenzo Bettini</span>
<span class="comment"> </span><span class="url">http://www.lorenzobettini.it</span>
<span class="comment"> </span><span class="url">http://www.gnu.org/software/src-highlite</span>
<span class="comment">*/</span>
<span class="preproc">package</span><span class="normal"> hello</span><span class="symbol">;</span>
<span class="preproc">import</span><span class="normal"> java</span><span class="symbol">.</span><span class="normal">io</span><span class="symbol">.*</span><span class="normal"> </span><span class="symbol">;</span>
<span class="comment">/**</span>
<span class="comment"> * </span><span class="keyword"><p></span>
<span class="comment"> * A simple Hello World class, used to demonstrate some</span>
<span class="comment"> * features of Java source highlighting.</span>
<span class="comment"> * </span><span class="keyword"></p></span>
<span class="comment"> * </span><span class="todo">TODO:</span><span class="comment"> nothing, just to show an highlighted </span><span class="todo">TODO</span><span class="comment"> or </span><span class="todo">FIXME</span>
<span class="comment"> *</span>
<span class="comment"> * </span><span class="type">@author</span><span class="comment"> Lorenzo Bettini</span>
<span class="comment"> * </span><span class="type">@version</span><span class="comment"> 2.0</span>
<span class="comment"> */</span>
<span class="keyword">public</span><span class="normal"> </span><span class="keyword">class</span><span class="normal"> </span><span class="classname">Hello</span><span class="normal"> </span><span class="cbracket">{</span>
<span class="normal"> </span><span class="type">int</span><span class="normal"> foo </span><span class="symbol">=</span><span class="normal"> </span><span class="number">1998</span><span class="normal"> </span><span class="symbol">;</span>
<span class="normal"> </span><span class="type">int</span><span class="normal"> hex_foo </span><span class="symbol">=</span><span class="normal"> </span><span class="number">0xCAFEBABE</span><span class="symbol">;</span>
<span class="normal"> </span><span class="type">boolean</span><span class="normal"> b </span><span class="symbol">=</span><span class="normal"> </span><span class="keyword">false</span><span class="symbol">;</span>
<span class="normal"> </span><span class="usertype">Integer</span><span class="normal"> i </span><span class="symbol">=</span><span class="normal"> </span><span class="keyword">null</span><span class="normal"> </span><span class="symbol">;</span>
<span class="normal"> </span><span class="type">char</span><span class="normal"> c </span><span class="symbol">=</span><span class="normal"> </span><span class="string">'</span><span class="specialchar">\'</span><span class="string">'</span><span class="symbol">,</span><span class="normal"> d </span><span class="symbol">=</span><span class="normal"> </span><span class="string">'n'</span><span class="symbol">,</span><span class="normal"> e </span><span class="symbol">=</span><span class="normal"> </span><span class="string">'</span><span class="specialchar">\\</span><span class="string">'</span><span class="normal"> </span><span class="symbol">;</span>
<span class="normal"> </span><span class="usertype">String</span><span class="normal"> xml </span><span class="symbol">=</span><span class="normal"> </span><span class="string">"<tag attr=</span><span class="specialchar">\"</span><span class="string">value</span><span class="specialchar">\"</span><span class="string">>&auml;</tag>"</span><span class="symbol">,</span><span class="normal"> foo2 </span><span class="symbol">=</span><span class="normal"> </span><span class="string">"</span><span class="specialchar">\\</span><span class="string">"</span><span class="normal"> </span><span class="symbol">;</span>
<span class="normal"> </span>
<span class="normal"> </span><span class="keyword">public</span><span class="normal"> </span><span class="keyword">static</span><span class="normal"> </span><span class="type">void</span><span class="normal"> </span><span class="function">main</span><span class="symbol">(</span><span class="normal"> </span><span class="usertype">String</span><span class="normal"> args</span><span class="symbol">[]</span><span class="normal"> </span><span class="symbol">)</span><span class="normal"> </span><span class="cbracket">{</span>
<span class="normal"> </span><span class="comment">// just some greetings ;-) /*</span>
<span class="normal"> System</span><span class="symbol">.</span><span class="normal">out</span><span class="symbol">.</span><span class="function">println</span><span class="symbol">(</span><span class="normal"> </span><span class="string">"Hello from java2html :-)"</span><span class="normal"> </span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">;</span>
<span class="normal"> System</span><span class="symbol">.</span><span class="normal">out</span><span class="symbol">.</span><span class="function">println</span><span class="symbol">(</span><span class="normal"> </span><span class="string">"</span><span class="specialchar">\t</span><span class="string">by Lorenzo Bettini"</span><span class="normal"> </span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">;</span>
<span class="normal"> System</span><span class="symbol">.</span><span class="normal">out</span><span class="symbol">.</span><span class="function">println</span><span class="symbol">(</span><span class="normal"> </span><span class="string">"</span><span class="specialchar">\t</span><span class="string">http://www.lorenzobettini.it"</span><span class="normal"> </span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">;</span>
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">argc </span><span class="symbol">></span><span class="normal"> </span><span class="number">0</span><span class="symbol">)</span>
<span class="normal"> </span><span class="usertype">String</span><span class="normal"> param </span><span class="symbol">=</span><span class="normal"> argc</span><span class="symbol">[</span><span class="number">0</span><span class="symbol">];</span>
<span class="normal"> </span><span class="comment">//System.out.println( "bye bye... :-D" ) ; // see you soon</span>
<span class="normal"> </span><span class="cbracket">}</span>
<span class="cbracket">}</span>
</tt></pre>
</body>
</html>
|