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

Unified Diff: site/user/sample/hello.md

Issue 874303002: prettify site/user/sample/hello (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Another 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/user/sample/hello.md
diff --git a/site/user/sample/hello.md b/site/user/sample/hello.md
index 78cf6f9add3d35afd004d18e2c8d370bab04ad89..d917cf778c37ad81ea5958aaf9c2581d62cbd85d 100644
--- a/site/user/sample/hello.md
+++ b/site/user/sample/hello.md
@@ -55,8 +55,9 @@ Step 3: Create your own Sample
Create a file `experimental/SkiaExamples/Tutorial.cpp` within the Skia tree. Copy the following code:
-~~~~
+<!--?prettify lang=cc?-->
+~~~~
#include "SkExample.h"
#include "SkDevice.h"
@@ -99,7 +100,6 @@ static SkExample* MyFactory(SkExampleWindow* window) {
return new HelloTutorial(window);
}
static SkExample::Registry registry(MyFactory);
-
~~~~
@@ -108,16 +108,22 @@ Step 4: Compile and run SkiaExamples with your Sample
Here is what you have to do to compile your example. There will be
functionality to make this easier, but for now, this is what you have to do:
- * Open `gyp/experimental.gyp` and look for the `SkiaExamples` target.
- * In the 'sources' section of the SkiaExampels target, add
+
+* Open `gyp/experimental.gyp` and look for the `SkiaExamples` target.
+
+* In the 'sources' section of the SkiaExampels target, add
`../experimental/SkiaExamples/Tutorial.cpp` to the list of sources.
- * Repeat Step 2 to update our gyp targets and build our example.
- * Run the SkiaExamples, specifying the name of our new example: `$> out/Release/SkiaExamples --match Tutorial`
+
+* Repeat Step 2 to update our gyp targets and build our example.
+
+* Run the SkiaExamples, specifying the name of our new example:
+
+ $> out/Release/SkiaExamples --match Tutorial
Step 5: How to iterate through multiple examples
------------------------------------------------
-If you did not specify an example with the --match flag, or if your match
+If you did not specify an example with the `--match` flag, or if your match
string matches more than one example, you can use the *n* key to iterate
through all of the examples registered.
« 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