Greetings,
Are there any HTML editors which support syntax highlighting of c
program source code.
Let's say I write my html code as follows:
<html>
<body>
<code>
#include<stdio.h>
#define TOTAL_ELEMENTS (sizeof(array) / sizeof(array[0]))
int array[] = {23,34,12,17,204,99,16};
int main()
{
int d;
for(d=-1;d <= (TOTAL_ELEMENTS-2);d++)
printf("%d\n",array[d+1]);
return 0;
}
</code>
</body>
</html>
And the tool generates the real html code as displayed in colours as
shown here:
http://www.gowrikumar.com/c/index.html
Currently I'm using gvim to convert the c programs to HTML and then
including them
in the larger html page. But I soon found that it's becoming very
difficult to manage the website.
Also any other pointers for solutions for this sort web authoring,
where the site would predominantly contains c language source code, is
greatly appreciated.
Thanks in advance.
Regards,
Gowri Kumar