fix(website): Fix the ptor-code directive to repaint the code when the scope changes.

The sample code in the api page was not getting updated when you clicked on a new element. Added a watch to prettify the code when the scope changes.