diff --git a/docs/index.md b/docs/index.md
index 7f06004..fa30a65 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -11,8 +11,8 @@ Hello@@account.userName ? ' ' + account.userName : ''@@! Ready to test drive Aut
-
-
+
+
@@ -146,6 +146,16 @@ Hello@@account.userName ? ' ' + account.userName : ''@@! Ready to test drive Aut
if (!eqlPath(url)) return page(url);
};
+ // pretty printing
+ tutorial.on('codevisible', prettifyonvisible);
+ tutorial.on('nativevisible', prettifyonvisible);
+ tutorial.on('hybridvisible', prettifyonvisible);
+ tutorial.on('clientvisible', prettifyonvisible);
+ tutorial.on('serverapivisible', prettifyonvisible);
+
+ function prettifyonvisible(visible) {
+ if (visible && prettyPrint) prettyPrint();
+ }
})()