Donate Share

c2html

File Release Notes and Changelog

Release Name: c2html 1.1.0

Notes:


Changes: Changed the code according to the suggestions of David Ireland: 1. You should change the </font> tag in write_end_tag to be at the end so the final file becomes valid HTML // Move this.... // fputs ("</font>", output_file); if (font.font_style.underlined) { fputs (underlined, output_file); } if (font.font_style.italic) { fputs (italic, output_file); } if (font.font_style.bold) { fputs (bold, output_file); } // ...to here fputs ("</font>", output_file); 2. If you have an identifier name like hello1234, the digits "234" will be highlighted like an integer - see xhello.c.html attached. I think you can solve this problem by adding a check_begin_identif and a check_end_identif function. This looks for an identifier beginning with either an alpha or underscore followed by zero or more alnums or underscores. It also gives you the opportunity to use a different style for such beasts. In the example `hello.c.html' attached I've used an underlined style to show it. It's not been extensively tested but it's a start.