Docs: Mention `loadLanguages()` function on homepage in the nodeJS section. Close #972, close #593
diff --git a/index.html b/index.html
index f646155..e053ca7 100644
--- a/index.html
+++ b/index.html
@@ -166,7 +166,24 @@
var code = "var data = 1;";
// Returns a highlighted HTML string
-var html = Prism.highlight(code, Prism.languages.javascript);</code></pre>
+var html = Prism.highlight(code, Prism.languages.javascript, 'javascript');</code></pre>
+
+ <p>Requiring <code>prismjs</code> will load the default languages: <code>markup</code>, <code>css</code>,
+ <code>clike</code> and <code>javascript</code>. You can load more languages separately by requiring them
+ directly from the <code>components</code> folder. Or you can use the <code class="language-javascript">loadLanguages()</code> utility, that
+ will automatically handle any required dependencies.</p>
+ <p>Example:</p>
+
+ <pre><code class="language-js">var Prism = require('prismjs');
+var loadLanguages = require('prismjs/components/index.js');
+loadLanguages(['haml']);
+
+// The code snippet you want to highlight, as a string
+var code = "= ['hi', 'there', 'reader!'].join \" \"";
+
+// Returns a highlighted HTML string
+var html = Prism.highlight(code, Prism.languages.haml, 'haml');</code></pre>
+
</section>
<section id="languages-list" class="language-markup">