* anyone a working c typing mode
@ 2001-02-12 18:31 Uwe Koloska
2001-02-13 7:48 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Uwe Koloska @ 2001-02-12 18:31 UTC (permalink / raw)
Hello,
is there anybody out there with a working c/c++ typing mode? I want to
include some sources in my documentation.
Thanx
Uwe
--
mailto:koloska@rcs.urz.tu-dresden.de
http://rcswww.urz.tu-dresden.de/~koloska/
-- --
right now the web page is in german only
but this will change as time goes by ;-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: anyone a working c typing mode
2001-02-12 18:31 anyone a working c typing mode Uwe Koloska
@ 2001-02-13 7:48 ` Hans Hagen
2001-02-13 14:33 ` Uwe Koloska
2001-02-13 14:37 ` Ed L Cashin
0 siblings, 2 replies; 4+ messages in thread
From: Hans Hagen @ 2001-02-13 7:48 UTC (permalink / raw)
Cc: ntg-context
At 07:31 PM 2/12/01 +0100, you wrote:
>Hello,
>
>is there anybody out there with a working c/c++ typing mode? I want to
>include some sources in my documentation.
To a certain extent the perl / javascript mode may work ok; i don't know
enough of c to make a mode -)
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: anyone a working c typing mode
2001-02-13 7:48 ` Hans Hagen
@ 2001-02-13 14:33 ` Uwe Koloska
2001-02-13 14:37 ` Ed L Cashin
1 sibling, 0 replies; 4+ messages in thread
From: Uwe Koloska @ 2001-02-13 14:33 UTC (permalink / raw)
You wrote on Dienstag, 13. Februar 2001 08:48:
>To a certain extent the perl / javascript mode may work ok; i don't know
>enough of c to make a mode -)
And I don't know (and understand) enough from the ConTeXt verbatim code to
write a c mode :-( What do I have to know about context verbatim to write
a new c mode? Or what do you have to know about C to write a mode?
And how can I type a file?
\typefile{name}{file} seems not be able to get a mode option like PL and
the documentation seems to be wrong. The first argument is the filename
and there seems to be no second argument.
Uwe
--
mailto:koloska@rcs.urz.tu-dresden.de
http://rcswww.urz.tu-dresden.de/~koloska/
-- --
right now the web page is in german only
but this will change as time goes by ;-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: anyone a working c typing mode
2001-02-13 7:48 ` Hans Hagen
2001-02-13 14:33 ` Uwe Koloska
@ 2001-02-13 14:37 ` Ed L Cashin
1 sibling, 0 replies; 4+ messages in thread
From: Ed L Cashin @ 2001-02-13 14:37 UTC (permalink / raw)
Cc: Uwe Koloska, ntg-context
Hans Hagen <pragma@wxs.nl> writes:
> At 07:31 PM 2/12/01 +0100, you wrote:
> >Hello,
> >
> >is there anybody out there with a working c/c++ typing mode? I want to
> >include some sources in my documentation.
>
> To a certain extent the perl / javascript mode may work ok; i don't know
> enough of c to make a mode -)
Or, if you want a no-frills code listing, a macro like this may be
enough:
\def\displayfile#1{%
\startlinenumbering
\typefile{#1}
\stoplinenumbering\page}
--
--Ed Cashin integrit file verification system
ecashin@coe.uga.edu http://integrit.sourceforge.net/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-02-13 14:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-12 18:31 anyone a working c typing mode Uwe Koloska
2001-02-13 7:48 ` Hans Hagen
2001-02-13 14:33 ` Uwe Koloska
2001-02-13 14:37 ` Ed L Cashin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).