Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Unified Diff: site/dev/tools/markdown.md

Issue 862933002: Add docs for prettify. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: site/dev/tools/markdown.md
diff --git a/site/dev/tools/markdown.md b/site/dev/tools/markdown.md
index e08ccb9473e798b1057144c44b27b728129ce228..66feb9460e65cf285e3063237a74ed81848855da 100644
--- a/site/dev/tools/markdown.md
+++ b/site/dev/tools/markdown.md
@@ -42,8 +42,14 @@ Or go old school and use [ASCII art](http://asciiflow.com/):
~~~~
-Format code snippets or other preformatted text.
+Format code snippets or other preformatted text. Just surround the code
+with `~~~~`. You can also trigger syntax highlighting by putting in
+the following HTML comment before the code section:
+ <!--?prettify?-->
+
+
+<!--?prettify?-->
~~~~
class SK_API SkPaint {
public:
@@ -54,6 +60,7 @@ public:
SkPaint& operator=(const SkPaint&);
~~~~
+
Tables
Name | Value | Summary
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698