Subject: Re: java2html v 1 (free) Date: Thu, 22 Apr 1999 14:37:09 +0200 From: "Osvaldo Pinali Doederlein" Organization: Ecole des Mines de Nantes To: "Lorenzo Bettini" Hi Lorenzo, From: Lorenzo Bettini > This is a simple program that, given a source java file, produces an > html source with syntax highlighting. Hey, thanks, this is pretty useful :)) But I have two suggestions: 1) Include the tags.j2h file in the Win32 binary distribution file... for really lazy Windows users :) 2) Add a switch to map tabs to spaces... I want that each tab expand to three spaces just like in my editor; right now I would need to run a secondary program to do the tab expansion, or lose my favourite formatting. Java code usually has lots of identation even without heavily nested control structures -- thanks to exception, synchronized blocks, class scope, nested classes... with eight chars per tab the code runs over any right margin pretty soon!! *************************************** Subject: Quotation Bug Date: Fri, 04 Jun 1999 20:40:05 -0230 From: Raymond Lambe To: bug-java2html@gnu.org The following code produces incorrect syntax highlighting because it takes everything after the double quotation mark to be a string up until it encounters a second double quotation mark. char quot = '\"'; Anyhow, hope this help... Great idea to make a java2html syntax highlighter. :-) Ray Lambe St. John's, Newfoundland, Canada *********************************************** Subject: Suggestion for a Feature Date: Tue, 13 Jul 1999 22:32:21 -0400 From: "Robert J. Clark" Organization: KL Group Inc. To: bug-java2html@gnu.org Hi, I just downloaded java2html and started playing with it and it seems to me that having a couple of more command line options to specify input and output files would make life easier: -input for the input file -output for the output file instead of assuming the argv[1] is the input and argv[2] is the output. This would allow people to do something like: cat MyFile.java | java2html -output ~/html/HyJava.html Also, perhaps another command line option to specify the title of the HTML document when the -doc option is used. e.g.: java2html -input MyFile.java -output ~/html/HyJava.html -doc \ -title "Title" I am attaching a version of java2html.cc with the above changes so you can see what I mean. - Rob *********************************************** Subject: patch for compilation problems with gcc 2.95 Date: Fri, 6 Aug 1999 12:21:30 +0200 (MEST) From: Luc.Maisonobe@cnes.fr (Luc Maisonobe) To: lorenzo.bettini@penteres.it, bug-java2html@gnu.org Hello, Here is a little patch to add some const qualifiers in function arguments. Without some of them, gcc 2.95 refuses to compile the program. Luc *********************************************** Subject: java2html suggestion Date: Wed, 11 Aug 1999 11:44:33 +0300 From: Kaloian Doganov Organization: Eurasia Software Services To: Lorenzo Bettini Hello, Mr. Bettini! I like your java2html software very much - it's very useful. I have some suggestions about improving the customization capabilities of java2html. First of all, the physical formatting can be replaced by logical formatting. Syntax elements can be rounded by tags, instead of , , and tags. For example: Once marked with these classes, user can change the physical formatting of the generated HTML as easy as possible - using Cascading Style Sheets. For example: .java-keyword { color: red; font-weight: bold } Changing a class definition will cause a changing of the physical format of all marked elements. And without need java2html to produce the HTML file again. These CSS can be inline (in HTML) or in external .CSS file. I'm attaching a modified variant of Hello3 example to demonstrate my suggestion. *********************************************** Subject: java2html Date: Thu, 12 Aug 1999 20:16:51 +0300 From: Jari Korva Organization: University of Oulu To: lorenzo.bettini@penteres.it Hi Thank you for java2html! However there is still something to do... Namely I found two bugs in it: - It ends a string when it finds an escaped double quotation mark in it (i.e. "Hello \"World\"") - It doesn't replace '&'-characters with "&" as it should I'll attach a "bug.patch", which should fix it (it has also an improved Hello.java to test it)... Then I figured that it would be nice to have an alternative output format: HTML with CSS. This would make it easy to adjust the look of html files on-the-fly. I include a "css.patch" which does this. You can try the new feature like this: java2html -input Hello.java -doc -css Hello.css or java2html -input Hello.java -css (The command line handling is a bit clumsy because it requires that that the -doc is specified before -css.) -- - Jari Korva - jari.korva@iki.fi *********************************************** Subject: BUG REPORT: Incorrect treatment of backslashes in strings Date: Wed, 24 Nov 1999 11:08:31 +0200 From: Ziv Caspi To: bug-java2html@gnu.org java2html fails to identify that there is a single backslash in the following code fragment: int a( int b ) { _tcsrchr( 0, _T('\\') ); } Instead, it things that the character string has started, but is never ended. ---------------------------------------------- Ziv caspi zivca@netvision.net.il Peach-Networks, ltd. ***************************** Subject: java2html 1.4 Date: Fri, 17 Mar 2000 14:27:20 +0000 (GMT) From: Chris Mason To: lorenzo.bettini@penteres.it Hi, Great program, but I am not sure if this is a bug or not, but whatever I do I cannot get the darkgreen colour working. I keep on adding it into the tags.j2h file, but I keep on the getting the following error and it reverts back to the default colour, [cjmaso@sunlab19] ~> java2html --verbose < Dictionary.java > Dictionary.html java2html 1.4 Trying with... tags.j2h /ufs/csuga/users/cjmaso/Utils/Linux/share/java2html/tags.j2h Parsing tags.j2h file ... keyword blue (no options) type blue (no options) string black (no options) number black (no options) *** parse error on option # 4 Using default tags... Parsing done! translating Java code... done ! [cjmaso@sunlab19] ~> My tags.j2h file looks like this, [cjmaso@sunlab19] ~/Utils/Linux/share/java2html> cat tags.j2h keyword blue; type blue; string black; number black; comment darkgreen; [cjmaso@sunlab19] ~/Utils/Linux/share/java2html> However if I change the darkgreen to green it works without any problems, but just wanted to use the darkgreen! How about an option to set the default tab length, it seems to be using 8, but I would like it if you can set this? As I prefer to use 2 when formatting code. Cheers, Chris Mason ***************************** Subject: java2html-bug Date: Thu, 13 Apr 2000 20:46:14 -0100 From: Michael Gasche To: bug-java2html@gnu.org Hello Lorenzo You probably remember me, I once write you about java2html. I send you a part of a HTML-Document, which was generated with your java2html-program v1.5 and I have cut out of the whole HTML-Document (extract bug.zip). As you can see, there is a '/*' after a '//', this star-comment is never being closed and all following text is highlighted with the wrong color. A bit more far, this text would change the color again, because this bug implies other errors and the color of all text is changed again. I think this bug happens because java2html doesn't realize that after a '//' a star comment ('/*') has no meaning anymore and doesn't need to be closed with a '*/'. Just a little bug. I'm sure you can correct it fastly, then your program looks pretty good. By the way. there's a new version of my java2html: http://gasche.virtualave.net/idx.html I know my program is a bit experimental, but you may like it. I also wanted to ask you, if you would set a link on your site to my Homepage. I'll do the same with your link, if you want. Let me know. Greetings from Switzerland, Mike PS: How was the Dream Theatre concert? ***************************** Subject: cpp2html numbers patch Date: Wed, 12 Jul 2000 18:17:07 -0500 From: Tom Hull To: lorenzo.bettini@penteres.it Lorenzo, I just took a look at your cpp2html program, since I'm looking for an easy way to dump browsable c/c++ text into web pages. Nice program. One problem that I noticed was that hexadecimal integer constants appeared with only the initial 0 in pink. Attached is a diff -c of a change to scanner.ll to fix this. I also expanded the number scan to handle floating point numbers. I did not include terminal qualifiers (e.g., [uU] for unsigned, [lL] for long, [lL][lL] for long long, etc.), but it would be easy to add them as well. -- /* * Tom Hull * thull@kscable.com * http://www.ocston.org/~thull/ */ ***************************** Subject: [java2html] Header and footer options? Date: Fri, 14 Jul 2000 11:49:11 +0200 From: Xavier Outhier Organization: ANF-Data To: lorenzo.bettini@penteres.it Hi, I would like to know if it is foreseen to have option like header and footer options in java2html to have the possibility to custumize the html output? I could propose to do the implementation of this if you agree. Greetings. Xavier.