0

What is the recommended way to pretty print HTML or code excerpts in AngularDart? Is there a package to help achieve this (have found none), or do developers simply use "external" packages like google-code-prettify?

Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
Patrice Chalin
  • 15,440
  • 7
  • 33
  • 44

1 Answers1

0

I use this http://craig.is/making/rainbows/ You add a javascript tag and some classes to your tags containing your code - that's it.

If you want to include HTML including Angular markup you can use ng-non-bindable to prevent Angular processing tags and attributes it may have selectors for.

Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567