/usr/share/doc/source-highlight/Hello_xhtml2.html is in source-highlight 3.1.6-2ubuntu1.
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 | <!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.6
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite" />
<meta name="INPUTLANG" content="java.lang" />
<title>./Hello.java</title>
</head>
<body style="background-color: white">
<pre><tt><span style="font-style: italic"><span style="color: #9A1900">/*</span></span>
<span style="font-style: italic"><span style="color: #9A1900"> This is a classical Hello program</span></span>
<span style="font-style: italic"><span style="color: #9A1900"> to test source-highlight with Java programs.</span></span>
<span style="font-style: italic"><span style="color: #9A1900"> </span></span>
<span style="font-style: italic"><span style="color: #9A1900"> to have an html translation type</span></span>
<span style="font-style: italic"><span style="color: #9A1900"> source-highlight -s java -f html --input Hello.java --output Hello.html</span></span>
<span style="font-style: italic"><span style="color: #9A1900"> source-highlight -s java -f html < Hello.java > Hello.html</span></span>
<span style="font-style: italic"><span style="color: #9A1900"> or type source-highlight --help for the list of options</span></span>
<span style="font-style: italic"><span style="color: #9A1900"> written by</span></span>
<span style="font-style: italic"><span style="color: #9A1900"> Lorenzo Bettini</span></span>
<span style="font-style: italic"><span style="color: #9A1900"> </span></span><span style="text-decoration: underline"><span style="color: #0000FF">http://www.lorenzobettini.it</span></span>
<span style="font-style: italic"><span style="color: #9A1900"> </span></span><span style="text-decoration: underline"><span style="color: #0000FF">http://www.gnu.org/software/src-highlite</span></span>
<span style="font-style: italic"><span style="color: #9A1900">*/</span></span>
<span style="font-weight: bold"><span style="color: #000080">package</span></span> hello<span style="color: #990000">;</span>
<span style="font-weight: bold"><span style="color: #000080">import</span></span> java<span style="color: #990000">.</span>io<span style="color: #990000">.*</span> <span style="color: #990000">;</span>
<span style="font-style: italic"><span style="color: #9A1900">/**</span></span>
<span style="font-style: italic"><span style="color: #9A1900"> * </span></span><span style="font-weight: bold"><span style="color: #0000FF"><p></span></span>
<span style="font-style: italic"><span style="color: #9A1900"> * A simple Hello World class, used to demonstrate some</span></span>
<span style="font-style: italic"><span style="color: #9A1900"> * features of Java source highlighting.</span></span>
<span style="font-style: italic"><span style="color: #9A1900"> * </span></span><span style="font-weight: bold"><span style="color: #0000FF"></p></span></span>
<span style="font-style: italic"><span style="color: #9A1900"> * </span></span><span style="font-weight: bold"><span style="background-color: #66FFFF">TODO:</span></span><span style="font-style: italic"><span style="color: #9A1900"> nothing, just to show an highlighted </span></span><span style="font-weight: bold"><span style="background-color: #66FFFF">TODO</span></span><span style="font-style: italic"><span style="color: #9A1900"> or </span></span><span style="font-weight: bold"><span style="background-color: #66FFFF">FIXME</span></span>
<span style="font-style: italic"><span style="color: #9A1900"> *</span></span>
<span style="font-style: italic"><span style="color: #9A1900"> * </span></span><span style="color: #009900">@author</span><span style="font-style: italic"><span style="color: #9A1900"> Lorenzo Bettini</span></span>
<span style="font-style: italic"><span style="color: #9A1900"> * </span></span><span style="color: #009900">@version</span><span style="font-style: italic"><span style="color: #9A1900"> 2.0</span></span>
<span style="font-style: italic"><span style="color: #9A1900"> */</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">public</span></span> <span style="font-weight: bold"><span style="color: #0000FF">class</span></span> <span style="color: #008080">Hello</span> <span style="color: #FF0000">{</span>
<span style="color: #009900">int</span> foo <span style="color: #990000">=</span> <span style="color: #993399">1998</span> <span style="color: #990000">;</span>
<span style="color: #009900">int</span> hex_foo <span style="color: #990000">=</span> <span style="color: #993399">0xCAFEBABE</span><span style="color: #990000">;</span>
<span style="color: #009900">boolean</span> b <span style="color: #990000">=</span> <span style="font-weight: bold"><span style="color: #0000FF">false</span></span><span style="color: #990000">;</span>
<span style="color: #008080">Integer</span> i <span style="color: #990000">=</span> <span style="font-weight: bold"><span style="color: #0000FF">null</span></span> <span style="color: #990000">;</span>
<span style="color: #009900">char</span> c <span style="color: #990000">=</span> <span style="color: #FF0000">'</span><span style="color: #CC33CC">\'</span><span style="color: #FF0000">'</span><span style="color: #990000">,</span> d <span style="color: #990000">=</span> <span style="color: #FF0000">'n'</span><span style="color: #990000">,</span> e <span style="color: #990000">=</span> <span style="color: #FF0000">'</span><span style="color: #CC33CC">\\</span><span style="color: #FF0000">'</span> <span style="color: #990000">;</span>
<span style="color: #008080">String</span> xml <span style="color: #990000">=</span> <span style="color: #FF0000">"<tag attr=</span><span style="color: #CC33CC">\"</span><span style="color: #FF0000">value</span><span style="color: #CC33CC">\"</span><span style="color: #FF0000">>&auml;</tag>"</span><span style="color: #990000">,</span> foo2 <span style="color: #990000">=</span> <span style="color: #FF0000">"</span><span style="color: #CC33CC">\\</span><span style="color: #FF0000">"</span> <span style="color: #990000">;</span>
<span style="font-weight: bold"><span style="color: #0000FF">public</span></span> <span style="font-weight: bold"><span style="color: #0000FF">static</span></span> <span style="color: #009900">void</span> <span style="font-weight: bold"><span style="color: #000000">main</span></span><span style="color: #990000">(</span> <span style="color: #008080">String</span> args<span style="color: #990000">[]</span> <span style="color: #990000">)</span> <span style="color: #FF0000">{</span>
<span style="font-style: italic"><span style="color: #9A1900">// just some greetings ;-) /*</span></span>
System<span style="color: #990000">.</span>out<span style="color: #990000">.</span><span style="font-weight: bold"><span style="color: #000000">println</span></span><span style="color: #990000">(</span> <span style="color: #FF0000">"Hello from java2html :-)"</span> <span style="color: #990000">)</span> <span style="color: #990000">;</span>
System<span style="color: #990000">.</span>out<span style="color: #990000">.</span><span style="font-weight: bold"><span style="color: #000000">println</span></span><span style="color: #990000">(</span> <span style="color: #FF0000">"</span><span style="color: #CC33CC">\t</span><span style="color: #FF0000">by Lorenzo Bettini"</span> <span style="color: #990000">)</span> <span style="color: #990000">;</span>
System<span style="color: #990000">.</span>out<span style="color: #990000">.</span><span style="font-weight: bold"><span style="color: #000000">println</span></span><span style="color: #990000">(</span> <span style="color: #FF0000">"</span><span style="color: #CC33CC">\t</span><span style="color: #FF0000">http://www.lorenzobettini.it"</span> <span style="color: #990000">)</span> <span style="color: #990000">;</span>
<span style="font-weight: bold"><span style="color: #0000FF">if</span></span> <span style="color: #990000">(</span>argc <span style="color: #990000">></span> <span style="color: #993399">0</span><span style="color: #990000">)</span>
<span style="color: #008080">String</span> param <span style="color: #990000">=</span> argc<span style="color: #990000">[</span><span style="color: #993399">0</span><span style="color: #990000">];</span>
<span style="font-style: italic"><span style="color: #9A1900">//System.out.println( "bye bye... :-D" ) ; // see you soon</span></span>
<span style="color: #FF0000">}</span>
<span style="color: #FF0000">}</span>
</tt></pre>
</body>
</html>
|