Commit 7cb65eeca5b109c868a88a3b9843382fd9acd481

Jakub Klímek 2019-08-05T13:16:32

Fixed alias example in extending page (#2011) This fixes the example on how to add a language alias to a language definition.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/extending.html b/extending.html
index dfc3f1a..ed0d2f1 100644
--- a/extending.html
+++ b/extending.html
@@ -177,7 +177,7 @@ ol.indent {
 
 			<p>To add the alias, we add this line at the end of <code>prism-foo-bar.js</code>:</p>
 
-			<pre><code class="language-js">Prism.languages.foo = Prism.language['foo-bar'];</code></pre>
+			<pre><code class="language-js">Prism.languages.foo = Prism.languages['foo-bar'];</code></pre>
 
 			<p>Aliases also have to be registered in <code>components.json</code> by adding the <code>alias</code> property to the language entry. In this example, the updated entry will look like this:</p>