Dear list,

sorry for insisting, but I need to solve this.

I have to explain to newcomers (in my Spanish introduction to ConTeXt)
what comments are and multiple lines don’t affect the final PDF document.

I have the following sample:

    \setuptyping[lines=yes]
    \starttext
    \startTEXpage[offset=1em]
    \startTEX
    This is text. % and this is a comment
    \stopTEX

    \startXML
    <p>This is text.<!--and this is a comment--></p>
    \stopXML

    \startLUA
    if code=="code" then --this is a comment

    --[[
    this is a

    multiline comment
    --]]

    ---[[
    this isn’t a


    multiline comment
    --]]
    \stopLUA
    \stopTEXpage
    \stoptext

I have three questions:

1. How do I enable that multiple blank lines are displayed as more than
a single one?

The Lua code contains one, two and three blank lines and they are
displayed always as separation from single lines.

I thought lines=yes should do that, but it doesn’t.

2. I accidentally discovered that the block comment opening (--[[)
removes break with next line. I think it should be fixed.

3. The most important issue is that the whole comment (both markers and
content) is displayed with \darkyellow.

I wonder why comments aren’t display in typing as in any other editor.
All comment characters should be displayed the same, since none of them
would affect to the final output.

How can I get the same color for the whole comment (again, both markers
and content)?

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to