Highlight Testing
Test the highlight feature in this website.
C#:
using ..;
// Phông chữ phù hợp cần hỗ trợ tất cả các ký tự của tiếng Việt,
// để đảm bảo khả năng hiển thị chính xác trên các hệ điều hành,
// thiết bị, cũng như trình duyệt khác nhau.
CSS:
}
{
}
}
Typescript:
;
declare magicNumber number;
; // fat arrow syntax
JSON:
HTML:
Title
Title
<!-- here goes the rest of the page -->
Javascript:
export $initHighlight;
Typescript (TSX):
;
;
Diff:
apples
- oranges
kiwis
carrots
apples
kiwis
carrots
+ grapefruits
LaTeX:
% \require{extpfeil} % produce extensible horizontal arrows
\begin{array} % arrange LPPs
% first row
% first LPP
\begin{array}
\max & z = c^T x \\
\text{s.t.} & A x \le b \\
& x \ge 0
\end{array}
& \xtofrom &
% second LPP
\begin{array}
\min & v = b^T y \\
\text{s.t.} & A^T y \ge c \\
& y \ge 0
\end{array} \\
() & & () \\
\text{add } \text{slack var} & & \text{minus } \text{surplus var}\\ % Change to your favorite arrow style
%
% second row
% third LPP
\begin{array}
\max & z = c^T x \\
\text{s.t.} & A x + s = b \\
& x,s \ge 0
\end{array}
& \xtofrom[\text{some steps skipped}] &
% fourth LPP
\begin{array}
\min & v = b^T y \\
\text{s.t.} & A^T y - t = c \\
& y,t \ge 0
\end{array} \\
() & & ()
%
\end{array}
Mermaid:
sequenceDiagram
box Purple Alice & John
participant A
participant J
end
box Another Group
participant B
participant C
end
A->>J: Hello John, how are you?
J->>A: Great!
A->>B: Hello Bob, how is Charly ?
B->>C: Hello Charly, how are you?
Snippet:
A sample content
}
;
Below animation is HTML/CSS/JS code injected directly into the page: