You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On https://ace.c9.io/build/kitchen-sink.html, with a LaTeX document, the (bright) GitHub theme displays LaTeX code only in black with only a few commands highlighted (in bold face).
Expected Behavior
Same kind of behavior as the github.com site or, for instance, the Ace GitHub Dark theme which displays LaTeX code in colors, with all of the command names highlighted.
Current Behavior
In the following default LaTeX code provided by the Kitchen Sink, only \usepackage is highlighted by the Ace (bright) GitHub theme:
\usepackage{amsmath}
\title{\LaTeX}
\date{}
\begin{document}
\maketitle\LaTeX{} is a document preparation system for the \TeX{}
typesetting program. It offers programmable desktop publishing
features and extensive facilities for automating most aspects of
typesetting and desktop publishing, including numbering and
cross-referencing, tables and figures, page layout, bibliographies,
and much more. \LaTeX{} was originally written in 1984 by Leslie
Lamport and has become the dominant method for using \TeX; few
people write in plain \TeX{} anymore. The current version is
\LaTeXe.
% This is a comment; it will not be shown in the final output.% The following shows a little of the typesetting power of LaTeX:\begin{align}
E &= mc^2 \\ m &= \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}}\end{align}
\end{document}
As you can see above if you're using the default bright theme of this github.com site, the LaTeX code is colorful.
It seems like this is an issue with other document types as well, I did check couple of others (Kotlin, Go, Javascript), and there is also lack of highlighting for some syntax types.
\usepackage{amsmath}
\title{\LaTeX}
\date{}
\begin{document}
\maketitle\LaTeX{} is a document preparation system for the \TeX{}
typesetting program. It offers programmable desktop publishing
features and extensive facilities for automating most aspects of
typesetting and desktop publishing, including numbering and
cross-referencing, tables and figures, page layout, bibliographies,
and much more. \LaTeX{} was originally written in 1984 by Leslie
Lamport and has become the dominant method for using \TeX; few
people write in plain \TeX{} anymore. The current version is
\LaTeXe.
% This is a comment; it will not be shown in the final output.% The following shows a little of the typesetting power of LaTeX:\begin{align}
E &= mc^2 \\ m &= \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}}\end{align}
\end{document}
Especially, the LaTeX command \usepackage and its argument amsmath are highlighted:
Describe the bug
On https://ace.c9.io/build/kitchen-sink.html, with a LaTeX document, the (bright) GitHub theme displays LaTeX code only in black with only a few commands highlighted (in bold face).
Expected Behavior
Same kind of behavior as the github.com site or, for instance, the Ace GitHub Dark theme which displays LaTeX code in colors, with all of the command names highlighted.
Current Behavior
In the following default LaTeX code provided by the Kitchen Sink, only
\usepackage
is highlighted by the Ace (bright) GitHub theme:As you can see above if you're using the default bright theme of this github.com site, the LaTeX code is colorful.
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
Ace Version / Browser / OS / Keyboard layout
The text was updated successfully, but these errors were encountered: