On 12/18/2017 11:50 PM, Pablo Rodriguez wrote:
Hans,
sorry for insisting, but I really need this.
I have the following sample:
\definetype[context][option=tex]
\definetype[lua][option=lua]
\starttext
\startTEXpage[offset=2em]
a \TEX\ inline comment: \context{ag%befe}
\Lua\ inline comment: \lua{agb --efe}
\startTEX
This is text. % a comment, not \comment
\stopTEX
\startXML
<p>This is text.<!--and this is a comment--></p>
\stopXML
\startLUA
if code=="code" then --this is a comment
\stopLUA
\stopTEXpage
\stoptext
Would it be possible that all comments in type and typing (at least, for
Lua, XML and TeX) would have the same formatting for the whole comment
contents, including the comment signs?
Sorry, but with the current output, it is hard to see (for total
newbies) what is part of the comment and what not. And the text editor
will display something different.
It depends on the lexer ...
% \usemodule[scite] % use editor logic
% DIffers per lexer:
\definestartstop
[XmlSnippetComment]
[color=,
style=]
I’m afraid that the scite module isn’t an option for me.
Then you need to configure the highligheters yourself
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________