title: Are there any existing code viewer components for Angular?
body: <p>I'm looking for a code viewer component, similar to what Angular Material uses for their examples, but I haven't had any luck finding one so far.</p>
  
  <p>Below is an example of what Angular Material uses.
  <a href="https://material.angular.io/components/slide-toggle/overview" rel="noreferrer">https://material.angular.io/components/slide-toggle/overview</a></p>
  
  <p><a href="https://i.stack.imgur.com/7ede2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7ede2.png" alt="Here is an example"></a></p>
  
  <p>I attempted to grab the source code the for Angular Material component, but there are so many scripts involved it would take a while to figure out exactly all that is required.</p>