On 13.08.2005 08:29, Daniele Giorgio Degiorgi wrote:
> I am planning to write some programs, and to try to keep the
> documentation up to date I would like to use cweb of D. Knuth.
>
> Several years ago I configured a visual studio project for this task,
> but since the versions of visual studio changed and it would need a
> serious revision still having some doubt on a decent result.
>
> On the other side, I would prefer to do it with gcc.
>
> On www.winedt.org <http://www.winedt.org/> there are some macros for
> programmers, but they seem to be ready only for the final phase
> (compile and link) and integrating cweave and ctangle could be not a
> trivial task.
>
> Now my questions:
>
> Did someone already something in this direction?
>
> Do you have any idea for a clean and simple solution?
A C mode for WinEdt is currently lacking. If you feel like creating
highlighting settings etc., the WinEdt community would be eternally
grateful if you contribute them to winedt.org.
Unfortunately, there is one major obstacle concerning WEB documents:
WinEdt does not allow different highlighting settings for different
parts within one document.[*] That is, if you apply C highlighting to
the file, all C keywords will also be highlighted in the running text of
the documentation parts, etc.
If you still want to give it a try, you can download a basic WEB mode
that I've compiled:
<http://www.winedt.org/temp/WEB.zip>
It includes highlighting settings for WEB commands and definitions for
the TOC tree (requiring WinEdt 5.4). Suggestions are welcome.
Regards,
Robert.
[*] In the "Most Wanted" poll at winedt.org, this feature has overtaken
the wish for enhanced documentation, and is now number one.