angular/adev/shared-docs/components/viewers/example-viewer
Shuaib Hasan Akib 27e183330e fix(docs-infra): preserve shell class for multifile code blocks
The ExampleViewer component was extracting only innerHTML from code
blocks in multifile examples, which lost the shell class applied by
the formatCode function. This caused the $ prompt to not appear for
shell commands in multifile blocks even when language="shell" was set.

Modified the Snippet interface to track shell language state and
updated getCodeSnippetsFromMultifileWrapper and getStandaloneCodeSnippet
methods to preserve the shell class. Updated example-viewer template
to conditionally apply the shell class to the code wrapper element.

Fixes inconsistency between standalone and multifile shell code blocks.
2025-10-27 09:29:37 +01:00
..
example-viewer.component.html fix(docs-infra): preserve shell class for multifile code blocks 2025-10-27 09:29:37 +01:00
example-viewer.component.scss docs(docs-infra): allow collapse code example (#63559) 2025-09-04 15:25:23 -07:00
example-viewer.component.spec.ts docs(docs-infra): fix example viewer (#64580) 2025-10-22 14:35:03 +00:00
example-viewer.component.ts docs(docs-infra): fix example viewer (#64580) 2025-10-22 14:35:03 +00:00