Changes

Jump to navigation Jump to search
222 bytes added ,  22:40, 27 December 2021
m
→‎Defining your own set of colors: comment on mkii only setting
< [[Structurals|Text formatting]] | [[Verbatim with line breaks]] >
 
=Displayed text=
{{cmd|starttyping}},
[[Image:Verbatim-mkiv.png‎]]
 
= Verbatim with line breaks=
 
[[Verbatim with line breaks|Dedicated page]]
 
[[Line breaks marker]]
= Pretty printing =
% XML code will be typeset with the palette you just defined
\definepalet[XMLcolorpretty] [MYcolors] % the name is magic !- mkii only
\starttext
This results in:
:<context>
\setupbodyfont[8pt]
\definecolor[MYcolorone] [r=.8,g=.5,b=.5]
prettyfour=MYcolorfour]
% \definepalet[XMLcolorpretty] [MYcolors] % the name is magic !
\setupcolors[state=start]
\stoptext
</context>
 
== Syntax highlighting source code or configuration files ==
 
see [[Verbatim_with_LuaTeX]] with Python, Apache httpd.conf and zc.buildout config files examples.
= Colored background =
<texcode>
\setuplinenumbering[location=intexttext]
\startcode
This is the first line
after={\stopframedcode}]
\setuplinenumbering[location=intexttext]
\startcode
This is the first line
(-a- --> [[User:Andrea]])
 
 
[[Category:Basics]]
174

edits

Navigation menu