01: [31m/*[m
02: [31m  This is a classical Hello program[m
03: [31m  to test source-highlight with Java programs.[m
04: [31m  [m
05: [31m  to have an html translation type[m
06: [31m[m
07: [31m        source-highlight -s java -f html --input Hello.java --output Hello.html[m
08: [31m        source-highlight -s java -f html < Hello.java > Hello.html[m
09: [31m[m
10: [31m  or type source-highlight --help for the list of options[m
11: [31m[m
12: [31m  written by[m
13: [31m  Lorenzo Bettini <bettini@gnu.org>[m
14: [31m  http://w3.newnet.it/bettini[m
15: [31m  http://www.gnu.org/software/src-highlite[m
16: [31m*/[m
17: 
18: [01;34mimport[m java[31m.[mio[31m.[m[31m*[m [31m;[m
19: 
20: [01;34mpublic[m [01;34mclass[m Hello [31m{[m
21:     [32mint[m foo [31m=[m [35m1998[m [31m;[m
22:     [32mint[m hex_foo [31m=[m [35m0xCAFEBABE[m[31m;[m
23:     [32mboolean[m b [31m=[m [01;34mfalse[m[31m;[m
24:     Integer i [31m=[m [01;34mnull[m [31m;[m
25:     [32mchar[m c [31m=[m [31m'\''[m[31m,[m d [31m=[m [31m'n'[m[31m,[m e [31m=[m [31m'\\'[m [31m;[m
26:     String xml [31m=[m [31m"<tag attr=\"value\">&auml;</tag>"[m[31m,[m foo2 [31m=[m [31m"\\"[m [31m;[m
27:     
28:     [01;34mpublic[m [01;34mstatic[m [32mvoid[m [01;30mmain[m[31m([m String args[31m[[m[31m][m [31m)[m [31m{[m
29:         [31m// just some greetings ;-)  /*[m
30:         System[31m.[mout[31m.[m[01;30mprintln[m[31m([m [31m"Hello from java2html :-)"[m [31m)[m [31m;[m
31:         System[31m.[mout[31m.[m[01;30mprintln[m[31m([m [31m"\tby Lorenzo Bettini"[m [31m)[m [31m;[m
32:         System[31m.[mout[31m.[m[01;30mprintln[m[31m([m [31m"\tbettini@gnu.org"[m [31m)[m [31m;[m
33:         [01;34mif[m [31m([margc [31m>[m [35m0[m[31m)[m
34:             String param [31m=[m argc[31m[[m[35m0[m[31m][m[31m;[m
35:         [31m//System.out.println( "bye bye... :-D" ) ; // see you soon[m
36:     [31m}[m
37: [31m}[m
