- This example uses manual syntax highlighting using the following CSS - classes: + This example uses manual syntax highlighting using the predefined + CSS classes mentioned in the typography:
-neutralidentifiernumberstringcommentkeywordfunction#include <stdlib.h>
diff --git a/styleguide/typography/index.html b/styleguide/typography/index.html
index 1e77bca..bfa9bc2 100644
--- a/styleguide/typography/index.html
+++ b/styleguide/typography/index.html
@@ -219,6 +219,42 @@
Code
+
+ If you want to add syntax highlighting to your code, you can use the
+ following formatting (also available as CSS classes using the same
+ name). If you need more granularity, feel free to add more colors and
+ decorations as needed.
+
+
+ -
+
comment: text-shade 4, italic
+
+ -
+
neutral: text-shade 2
+
+ -
+
identifier: primary
+
+ -
+
function: accent 1, italic
+
+ -
+
keyword: accent 2
+
+ -
+
number: accent 3
+
+ -
+
string: accent 3, italic
+
+
Our custom font: Argon Glow