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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Markdown 1 Markdown
2 ======== 2 ========
3 3
4 This site can handle normal MarkDown and many common extensions. To learn 4 This site can handle normal MarkDown and many common extensions. To learn
5 how the following is done please see the [source for this page](./markdown.md). 5 how the following is done please see the [source for this page](./markdown.md).
6 Any file you put under `/site/` that has the extension `.md` will be processed 6 Any file you put under `/site/` that has the extension `.md` will be processed
7 as MarkDown. All other files will be served directly. For example, images 7 as MarkDown. All other files will be served directly. For example, images
8 can be added and they will be served correctly and referenced from within MarkDo wn files. 8 can be added and they will be served correctly and referenced from within MarkDo wn files.
9 9
10 Some Example MarkDown 10 Some Example MarkDown
(...skipping 24 matching lines...) Expand all
35 | +----------------+ | 35 | +----------------+ |
36 | | 36 | |
37 +---v---+ +---v---+ 37 +---v---+ +---v---+
38 | | | | 38 | | | |
39 | Yes | | No | 39 | Yes | | No |
40 | | | | 40 | | | |
41 +-------+ +-------+ 41 +-------+ +-------+
42 42
43 ~~~~ 43 ~~~~
44 44
45 Format code snippets or other preformatted text. 45 Format code snippets or other preformatted text. Just surround the code
46 with `~~~~`. You can also trigger syntax highlighting by putting in
47 the following HTML comment before the code section:
46 48
49 <!--?prettify?-->
50
51
52 <!--?prettify?-->
47 ~~~~ 53 ~~~~
48 class SK_API SkPaint { 54 class SK_API SkPaint {
49 public: 55 public:
50 SkPaint(); 56 SkPaint();
51 SkPaint(const SkPaint& paint); 57 SkPaint(const SkPaint& paint);
52 ~SkPaint(); 58 ~SkPaint();
53 59
54 SkPaint& operator=(const SkPaint&); 60 SkPaint& operator=(const SkPaint&);
55 ~~~~ 61 ~~~~
56 62
63
57 Tables 64 Tables
58 65
59 Name | Value | Summary 66 Name | Value | Summary
60 --------|----------|-------- 67 --------|----------|--------
61 A | 27 | yes 68 A | 27 | yes
62 B | 23 | no 69 B | 23 | no
63 70
64 71
65 There are also inline styles for *emphasis*, **bold**, 72 There are also inline styles for *emphasis*, **bold**,
66 ~~strikethrough~~, and `inline code`. Also small fractions, 73 ~~strikethrough~~, and `inline code`. Also small fractions,
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 364
358 Output: 365 Output:
359 366
360 <p>If you want your page to validate under XHTML 1.0 Strict, 367 <p>If you want your page to validate under XHTML 1.0 Strict,
361 you've got to put paragraph tags in your blockquotes:</p> 368 you've got to put paragraph tags in your blockquotes:</p>
362 369
363 <pre><code>&lt;blockquote&gt; 370 <pre><code>&lt;blockquote&gt;
364 &lt;p&gt;For example.&lt;/p&gt; 371 &lt;p&gt;For example.&lt;/p&gt;
365 &lt;/blockquote&gt; 372 &lt;/blockquote&gt;
366 </code></pre> 373 </code></pre>
OLDNEW
« 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