Skip to content

Commit 2b85b43

Browse files
authored
Merge pull request #24742 from github/repo-sync
repo sync
2 parents 7bee262 + cb52336 commit 2b85b43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contributing/content-style-guide.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,12 @@ Style your CTAs using the following format.
5353

5454
### Code blocks
5555

56-
Keep lines in code samples to about 60 characters, to avoid requiring readers to scroll horizontally in the code block. Locate explanatory text before the code block, rather than using comments inside the code block.
56+
Keep lines in code samples to about 60 characters, to avoid requiring readers to scroll horizontally in the code block. Locate explanatory text before the code block, rather than using comments inside the code block. See "[Code sample syntax highlighting](./content-markup-reference.md#code-sample-syntax-highlighting)" for more information on the syntax and formatting of code blocks.
5757

5858
Within code blocks:
5959
- Do not use markup before the command output.
6060
- Only use `$` before the command itself if you’re showing the command’s output in the same block.
61+
- If you show a command and the command's output, do not make the code block copyable.
6162
- If your code example includes `{` or `}` that should render, wrap that section in `{% raw %}` `{% endraw %}` to disable Liquid processing for that section.
6263
- If your code example includes content that should be parsed (for example, HTML tags to format text), wrap that section in `<pre>` `</pre>` tags to parse rather than escape the content in the section.
6364
- **Use**:

0 commit comments

Comments
 (0)