Am 24.08.10 15:53, schrieb Jaroslav Hajtmar:
Hello all...

I am converting any manual from HTML to ConTeXt.
There are a lot of programm code. and in the code is very often % character. Ther is no problem in \startyping - \stoptyping environment, but I need using this in text ... for example

The sequence \type{%0} stands for the whole match. The sequence \type{%%} stands for a single~\type{%}.
or
For instance, the call \type{string.format('%q', 'a string with "quotes" and \n new line')} will produce the string:
...
etc..

1.

It is clear that this can not work, but is there any satisfactory solution?? Something like \startypingintext ... \stoptypingintext i.e. intext typing environment..

What prevents you from testting this yourself, \type{%} produce a '%' in the text.

2.
in html code is often emphasis found inside the program code
for example:
<code>\<em>ddd</em></code>,

Maybe it's a dumb question, but may be inside emphasis inside verbatim (\startyping - \stoptyping) environment??

Yes, it's possible to use style commands in verbatim mode but the mechanism in MkII and MkIV
are different and it's important to know which system you use.

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to