aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
author小半 <32007823+BuiltCat@users.noreply.github.com>2021-11-29 23:10:09 +0800
committerGitHub <noreply@github.com>2021-11-29 23:10:09 +0800
commit81bcc7939165a0de4cf4aeab650c4c4e43b2de01 (patch)
treed0fc07a68896f10361a895e51cebf7e338a60747 /files
parent7d6e0afab1a6eba2e203a34c6f0b110f4dd3888e (diff)
downloadtranslated-content-81bcc7939165a0de4cf4aeab650c4c4e43b2de01.tar.gz
translated-content-81bcc7939165a0de4cf4aeab650c4c4e43b2de01.tar.bz2
translated-content-81bcc7939165a0de4cf4aeab650c4c4e43b2de01.zip
Fix syntax highlight, Web/JavaScript/Closures, zh-CN (#3208)
Part of the code in this page does not support highlighting, and now I have fixed it. The code location is on line 336.
Diffstat (limited to 'files')
-rw-r--r--files/zh-cn/web/javascript/closures/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/javascript/closures/index.html b/files/zh-cn/web/javascript/closures/index.html
index 9c14c74c62..c2a1cca928 100644
--- a/files/zh-cn/web/javascript/closures/index.html
+++ b/files/zh-cn/web/javascript/closures/index.html
@@ -333,7 +333,7 @@ setupHelp();</pre>
<p>另一个可选方案是使用 <code>forEach()</code>来遍历<code>helpText</code>数组并给每一个<code><a href="/zh-CN/docs/Web/HTML/Element/p" title="The HTML &lt;p> element represents a paragraph.">&lt;p&gt;</a></code>添加一个监听器,如下所示:</p>
-<pre class="notranslate">function showHelp(help) {
+<pre class="brush: js notranslate">function showHelp(help) {
document.getElementById('help').innerHTML = help;
}