Use prism.js to easily highlight code syntax in your Angular application.
<pre ng-prism="css">.example { color: #000; }</pre>
<pre ng-prism="css" ng-prism-data="{{ myCode }}"></pre>
<pre ng-prism="css" ng-prism-data=".example { color: #000; }"></pre>