Changes

Jump to navigation Jump to search
847 bytes added ,  10:27, 3 September 2017
scite pretty printing
of input and produces tex output. The details about this are discussed
at [[Custom_pretty_printer]].
 
== Improved pretty printing ==
 
Default ConTeXt comment handling can be shown in the following sample:
 
<context source="yes">
\starttext
\startbuffer[texcode]
This is text. % and this is a comment
\stopbuffer
 
\startbuffer[xmlcode]
<p>This is text.<!--and this is a comment--></p>
\stopbuffer
 
\startbuffer[luacode]
if code=="code" then --this is a comment
 
--[[
this is a
 
multiline comment
--]]
 
---[[
but this isn’t a
 
multiline comment
--]]
\stopbuffer
 
\typebuffer[texcode][option=TEX]
\typebuffer[xmlcode][option=XML]
\typebuffer[luacode][option=LUA]
\stoptext
</context>
 
If you want to improve Lua multiline comments and to color the whole comments (not only the comment marker), write <code>\usemodule[scite]</code> before <code>\starttext</code>. (I cannot show it here, since ConTeXt at the wiki seems to have a problem with that.)
= Tabbing =
139

edits

Navigation menu