Skip to content

Commit

Permalink
Change "Highlighting Dynamic Content" section example to javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
gadhagod authored Aug 21, 2021
1 parent ae51965 commit 94ea16e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/language-highlight.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Code blocks [dynamically created from javascript](https://docsify.js.org/#/confi

```javascript
var code = document.createElement("code");
code.innerHTML = "echo 'Hello World!'"
code.setAttribute("class", "lang-bash");
code.innerHTML = "console.log('Hello World!')";
code.setAttribute("class", "lang-javascript");
Prism.highlightElement(code);
```

0 comments on commit 94ea16e

Please sign in to comment.