diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 48c802f..f07755e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -48,12 +48,19 @@ snippet **name is the join key** — the docs repo has a `` `` placeholder in the target `.mdx` page, and Snipsync (run on the docs-repo side) copies the code across by matching names. -```java -// @@@SNIPSTART java-s3-driver-create + + +
+// @@@SNIPSTART java-example-name S3AsyncClient s3Client = S3AsyncClient.builder().region(Region.US_EAST_2).build(); ... -// @@@SNIPEND -``` +// @@@SNIPEND +Use `#` instead of `//` for Python and Ruby. Naming convention: `
+// @@@SNIPSTART java-example-name S3AsyncClient s3Client = S3AsyncClient.builder().region(Region.US_EAST_2).build(); -// @@@SNIPEND -``` +// @@@SNIPEND +- Use `#` instead of `//` for Python and Ruby. - In PHP, Snipsync leaves out the marker line, and nothing can come before ` - + <?php // @@@SNIPSTART php-example-name ?> + <?php declare(strict_types=1); - ``` + The closing `?>` swallows its newline, so the file prints nothing and `declare(strict_types=1)` still works. diff --git a/php-sandbox/README.md b/php-sandbox/README.md index d8f5a83..e49c5c0 100644 --- a/php-sandbox/README.md +++ b/php-sandbox/README.md @@ -411,6 +411,7 @@ best-practices/testing-suite/test.sh ## Snipsync markers -The PHP files start with `` followed by a second -`` first line, +followed by a second `` first line as "declare(strict_types) must be -# the very first statement", but PHP itself still enforces strict types there. +# first line, which holds the Snipsync start marker inside ``, as +# "declare(strict_types) must be the very first statement", but PHP itself +# still enforces strict types there. parameters: level: 5 paths: