Skip to content

Commit 638af2c

Browse files
committed
update manual
1 parent aa9ba40 commit 638af2c

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

codehigh.tex

+13-7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
\documentclass[oneside]{book}
33
\usepackage[a4paper,margin=2cm]{geometry}
44

5+
\setlength{\parindent}{0pt}
6+
\setlength{\parskip}{4pt plus 1pt minus 1pt}
7+
58
\usepackage{codehigh}
69
\usepackage{hyperref}
710
\hypersetup{
@@ -23,7 +26,7 @@
2326

2427
\tableofcontents
2528

26-
\chapter{Package Interface}
29+
\chapter{Package Interfaces}
2730

2831
\section{Introduction}
2932

@@ -35,9 +38,9 @@ \section{Introduction}
3538
\footnote{\url{http://www.inf.puc-rio.br/~roberto/lpeg/}}.
3639
\verb!LPeg! is much more powerful and faster than \verb!l3regex!.
3740

38-
At present, this package is in \underline{\color{red3}\textbf{experimental}} status.
39-
Don’t use it in important documents, unless you have time
40-
to update them for the newer versions of \verb!codehigh! package in the future.
41+
%At present, this package is in \underline{\color{red3}\textbf{experimental}} status.
42+
%Don’t use it in important documents, unless you have time
43+
%to update them for the newer versions of \verb!codehigh! package in the future.
4144

4245
\section{Highlighting Code}
4346

@@ -76,7 +79,7 @@ \subsection*{Suction Name}
7679
}
7780
\end{codehigh}
7881
This language is for highlighting LaTeX2 classes and packages.
79-
Note that private commands and public commands are highlighted with different colors.
82+
It highlights private commands and public commands with different colors.
8083

8184
The following example is typeset by \verb!codehigh! environment with option \verb!language=latex/latex3!.
8285
\begin{codehigh}[language=latex/latex3]
@@ -91,7 +94,7 @@ \subsection*{Suction Name}
9194
}
9295
\end{codehigh}
9396
This language is for highlighting LaTeX3 classes and packages.
94-
Note that private commands/variables and public commands/variables are highlighted with different colors.
97+
It highlights private commands/variables and public commands/variables with different colors.
9598

9699
The following example is typeset by \verb!codehigh! environment with option \verb!language=latex/math!.
97100
\begin{codehigh}[language=latex/math]
@@ -147,6 +150,9 @@ \section{Highlighting File}
147150
\dochighinput[language=latex/latex3]{codehigh.sty}
148151
\end{codehigh}
149152

153+
In reading an input file, lines starting wtih \verb!%%%! will be omitted,
154+
and lines starting with \verb!%%>! will be extracted and typeset as normal text.
155+
150156
\section{Customization}
151157

152158
The following example changes default background colors with \verb!\CodeHigh! command:
@@ -171,7 +177,7 @@ \section{Customization}
171177
To modify or add languages and themes, please read the source files
172178
\verb!codehigh.sty! and \verb!codehigh.lua! for reference.
173179

174-
\chapter{Source Code}
180+
\chapter{The Source Code}
175181

176182
\dochighinput[language=latex/latex3]{codehigh.sty}
177183

0 commit comments

Comments
 (0)