diff --git a/src/docs/contributor/javascript_coding_standards.diviner b/src/docs/contributor/javascript_coding_standards.diviner index 83772918c3..7bff8a3bdf 100644 --- a/src/docs/contributor/javascript_coding_standards.diviner +++ b/src/docs/contributor/javascript_coding_standards.diviner @@ -107,7 +107,7 @@ see @{article:Javascript Object and Array}. break; } -##break## statements should be indented to block level. If you don't push them +`break` statements should be indented to block level. If you don't push them in, you end up with an inconsistent rule for conditional ##break## statements, as in the ##2## case. diff --git a/src/docs/contributor/php_coding_standards.diviner b/src/docs/contributor/php_coding_standards.diviner index 93957845ce..a180a2ff3a 100644 --- a/src/docs/contributor/php_coding_standards.diviner +++ b/src/docs/contributor/php_coding_standards.diviner @@ -112,7 +112,7 @@ visually and react better to "Find Next..." in editors. break; } -##break## statements should be indented to block level. +`break` statements should be indented to block level. **array literals:** diff --git a/src/docs/contributor/using_oauthserver.diviner b/src/docs/contributor/using_oauthserver.diviner index 9587d23410..dad9b63b68 100644 --- a/src/docs/contributor/using_oauthserver.diviner +++ b/src/docs/contributor/using_oauthserver.diviner @@ -6,7 +6,7 @@ How to use the Phabricator OAuth Server. = Overview = Phabricator includes an OAuth Server which supports the -##Authorization Code Grant## flow as described in the OAuth 2.0 +`Authorization Code Grant` flow as described in the OAuth 2.0 specification: http://tools.ietf.org/html/draft-ietf-oauth-v2-23 diff --git a/src/docs/flavor/javascript_pitfalls.diviner b/src/docs/flavor/javascript_pitfalls.diviner index fb9af3c197..beef1b83e6 100644 --- a/src/docs/flavor/javascript_pitfalls.diviner +++ b/src/docs/flavor/javascript_pitfalls.diviner @@ -29,7 +29,7 @@ usually after operators. = ##with## is Bad News = -##with## is a pretty bad feature, for this reason among others: +`with` is a pretty bad feature, for this reason among others: with (object) { property = 3; // Might be on object, might be on window: who knows. diff --git a/src/docs/flavor/php_pitfalls.diviner b/src/docs/flavor/php_pitfalls.diviner index c51b459910..2b8373f8cc 100644 --- a/src/docs/flavor/php_pitfalls.diviner +++ b/src/docs/flavor/php_pitfalls.diviner @@ -153,13 +153,13 @@ Strongly prefer the ##key## varieties. = array_uintersect() and array_udiff() are Definitely Slow Too = These functions have the problems of both the ##usort()## family and the -##array_diff()## family. Avoid them. +`array_diff()` family. Avoid them. = foreach() Does Not Create Scope = Variables survive outside of the scope of foreach(). More problematically, references survive outside of the scope of foreach(). This code mutates -##$array## because the reference leaks from the first loop to the second: +`$array` because the reference leaks from the first loop to the second: COUNTEREXAMPLE $array = range(1, 3); @@ -276,7 +276,7 @@ This doesn't do what you'd expect it to do in C: This is because the successor to 'z' is 'aa', which is "less than" 'z'. The loop will run for ~700 iterations until it reaches 'zz' and terminates. That is, -##$c## will take on these values: +`$c` will take on these values: a b diff --git a/src/docs/tech/celerity.diviner b/src/docs/tech/celerity.diviner index d864f1b437..91a53d6e8d 100644 --- a/src/docs/tech/celerity.diviner +++ b/src/docs/tech/celerity.diviner @@ -46,7 +46,7 @@ appropriate references to CSS and JS resources. It uses resources (so you only have to explicitly include what you're actually using, and not all of its dependencies) and any packaging rules (so it may be able to generate fewer resource requests, improving performance). It then generates -##