Community previewValidate controls against current Google documentation.Report a gap
Code Block Features
Goog-Sec uses Starlight’s built-in Expressive Code renderer for syntax highlighting, filenames, line markers, and copy controls.
Basic block
Section titled “Basic block”```bash gcloud projects describe example-project```Filename or command purpose
Section titled “Filename or command purpose”```yaml title="organization-policy.yaml"name: organizations/123456789/policies/iam.disableServiceAccountKeyCreationspec: rules: - enforce: true```Highlight lines
Section titled “Highlight lines”Use brace markers after the language:
```json {3-5}{ "bindings": [ { "role": "roles/viewer", "members": ["group:security@example.com"] } ]}```Mark inserted or deleted lines
Section titled “Mark inserted or deleted lines”```diff lang="yaml"- member: user:admin@example.com+ member: group:cloud-admins@example.com```Command and output
Section titled “Command and output”Keep commands and observed output separate when readers should not copy the output:
```bash title="Command"gcloud auth list --filter=status:ACTIVE```
```text title="Expected shape"Credentialed AccountsACTIVE ACCOUNT* operator@example.com```Safety rules
Section titled “Safety rules”- Use synthetic identifiers such as
example-projectandexample.com. - Never include tokens, cookies, API keys, customer data, or real tenant IDs.
- Mark destructive commands explicitly in nearby prose.
- Include a read-only verification command after every configuration example.
- Prefer complete commands over fragments that depend on hidden shell state.
Page provenance
Community-maintained guidance. Use the edit link below to propose a sourced correction.
Was this page useful?
Help us prioritize the next improvement.