From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6949 Path: main.gmane.org!not-for-mail From: "Robert F. Beeger" <5beeger@informatik.uni-hamburg.de> Newsgroups: gmane.comp.tex.context Subject: Verbatim modules Date: Thu, 21 Feb 2002 13:07:17 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <1647893640.20020221130717@informatik.uni-hamburg.de> Reply-To: "Robert F. Beeger" <5beeger@informatik.uni-hamburg.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="----------E1DC411343280A" X-Trace: main.gmane.org 1035397450 15214 80.91.224.250 (23 Oct 2002 18:24:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:24:10 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:6949 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6949 This is a cryptographically signed message in MIME format. ------------E1DC411343280A Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Hello! I searched for a possibility to include listings with syntax highlighting in my current text. First I thought it would be nice to embed HTML in ConTeXt since my Java-IDE can export Java-Files with syntax highlighting to HTML. Then I found the verbatim modules of ConTeXt and think they are a much better idea. It is more lightweight than having the HTML-export with all those font settings and so on. Those verbatim modules do nearly everything I need. Thanks to Pragma ADE for this. But now I have some questions. There are is a JS and a JV verbatim environment defined in ConTeXt. What is the difference between those two. Is it only to make the intention clear : If you have some Java-code, use JV to make clear that it is Java and not JavaScript. If it is JavaScript use JS. Or is there more to it. I have one problem with the Java/JavaScript verbatim module. I would like the comments to be grayed out like it is done by the XML module. If I have \startJV // bla public void bla(); \stopJV the "//" gets typeset in red and the "bla" after the "//" gets typeset in black, which is the normal color for non-keywords. How do I make it that the "bla" after the "//"is grayed out. An other problem occurres when I use a JavaDoc-Comment \startJV /** * bla * @param blub Blub bla blub. */ \stopJV Now "/*" and "*/" gets typeset in red, the "*" after "/*" and the text in the comment gets typeset in black and the two remaining "*" get grayed out. Here I would like to have "/*", "*/" and the other stars to be typeset in one color´, be it red or what ever, and the text to be grayed out. I know this is not that easy to accomplish and is more a feature request for the future. But since I am into this now, I thought it would not do any harm, if mentioned it. Greets Robert ------------E1DC411343280A Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIHxAYJKoZIhvcNAQcCoIIHtTCCB7ECAQMxCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCCBeww ggK7MIICJKADAgECAgMFV+EwDQYJKoZIhvcNAQECBQAwgZIxCzAJBgNVBAYTAlpBMRUwEwYDVQQI EwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEPMA0GA1UEChMGVGhhd3RlMR0wGwYD VQQLExRDZXJ0aWZpY2F0ZSBTZXJ2aWNlczEoMCYGA1UEAxMfUGVyc29uYWwgRnJlZW1haWwgUlNB IDIwMDAuOC4zMDAeFw0wMTA3MzExNzMwMjVaFw0wMjA3MzExNzMwMjVaMHIxDzANBgNVBAQTBkJl ZWdlcjESMBAGA1UEKhMJUm9iZXJ0IEYuMRkwFwYDVQQDExBSb2JlcnQgRi4gQmVlZ2VyMTAwLgYJ KoZIhvcNAQkBFiE1YmVlZ2VyQGluZm9ybWF0aWsudW5pLWhhbWJ1cmcuZGUwgZ8wDQYJKoZIhvcN AQEBBQADgY0AMIGJAoGBAKZgPf7rEFWftjw0/Q7bKgIP89LQ6zlbyLJ8w4EnA03hwbAaBsNvBDtS iIMamd6sIkSKVL0kMVPwXaySeGdkot3Hx4x0M4wZxRqqwL9aZKfCe2W8XfE/RuEZh1JEeeYZPqZe Ak6OLTbqliCbdSCnBxtrMjuZSaeH3XYF2hWnnlmDAgMBAAGjPjA8MCwGA1UdEQQlMCO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