ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* comment colors in \typebuffers
@ 2017-08-08 21:02 Pablo Rodriguez
  0 siblings, 0 replies; only message in thread
From: Pablo Rodriguez @ 2017-08-08 21:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hans,

I have the following sample:

    \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

    --[[
    and this is a
    multiline comment
    --]]
    \stopLUA
    \stopTEXpage
    \stoptext

All comments are colored in darkyellow, but the issue is that in Lua and
TeX only the comment markers are colored, while in XML only the comment
content is colored.

Because it is basic to display what it won’t affect to the
interpretation or compilation of the code, would it be possible that the
whole comments (both markers and content) could be colored?

Sorry, but in all the code editors I have used in my life, comment
coloring involved both markers (or delimiters) 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-08-08 21:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-08 21:02 comment colors in \typebuffers Pablo Rodriguez

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