ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* prettyprinting
@ 2001-08-30 12:28 Patrick Gundlach
  2001-08-30 16:40 ` prettyprinting Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Gundlach @ 2001-08-30 12:28 UTC (permalink / raw)


Hi,

I have defined (like verb-jv.tex) a new prettyprinting style. 
Everything is fine, except for the / character. 

inst auth+ myauth {  // comment
  target  = /home/users
  subject = /noth/ing
  action = open(), close() 
  }

is an example of the language. I would like to use the / as a 
beginning of a single line comment (//) and for a double line 
comment (/*...*/) but also in the language but with the same 
appearance as the word home and users (second line). But now the 
/ appears as a green / and the other words black. 
These are the specials I have now.

\gdef\PONsetspecials%
  {\PLsetspecials
    \setpretty`\+=62
   \setpretty`\#=32
   \setpretty`\%=41
   \setpretty`\/=43
   \setpretty`\*=44 }

Viele Grüße,

  Patrick Gundlach

- I TeX, therefore I am -


^ permalink raw reply	[flat|nested] 3+ messages in thread
* prettyprinting
@ 2001-08-30 14:32 Patrick Gundlach
  0 siblings, 0 replies; 3+ messages in thread
From: Patrick Gundlach @ 2001-08-30 14:32 UTC (permalink / raw)


One other question:

How can I define something like %%\ N  in TeX prettyprinting:

\startTEX
\def\mathematics#1% %%\ N usage: \type {\mathematics{x^2}} 
\stopTEX

This doesn't work:

\startPON
inst auth+ myauth {  // comment
  target  = /home/users ; %%\ N  \type{...}
\stopPON

Viele Grüße,

  Patrick Gundlach

- I TeX, therefore I am -


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-08-30 16:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-30 12:28 prettyprinting Patrick Gundlach
2001-08-30 16:40 ` prettyprinting Hans Hagen
2001-08-30 14:32 prettyprinting Patrick Gundlach

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).