|
Posted by gkumar007 on July 24, 2006, 6:21 am
Please log in for more thread options
Greetings,
Thanks for all the replies. I would try following the suggestions
provided and
would come back if I find any difficulty.
Regards,
Gowri Kumar
AdriHenne Boswell wrote:
> Gazing into my crystal ball I observed gkumar007@gmail.com writing in
>
> > 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[] = ;
> > 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.
>
> You may want to try HTML-Kit, an excellent HTML editor, with syntax
> highlighting for myriad languages. There are hundreds of plugins
> available, and this one <http://www.chami.com/html-
> kit/plugins/info/codepublisher/> may be the one you are looking for.
>
> --
> Adrienne Boswell at Home
> Arbpen Web Site Design Services
> http://www.cavalcade-of-coding.info
> Please respond to the group so others can share
|