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?
Asked
Active
Viewed 350 times
0

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

Patrice Chalin
- 15,440
- 7
- 33
- 44
-
What do you mean with 'pretty print'? Only syntax highlighting or really fix formatting (like indentation) issues? – Günter Zöchbauer Feb 01 '14 at 17:31
-
Rainbows is what AngularUI uses for its site: http://angular-ui.github.io/bootstrap/ – Günter Zöchbauer Feb 02 '14 at 07:36
1 Answers
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