Skip to content

Commit

Permalink
Update browser.html
Browse files Browse the repository at this point in the history
  • Loading branch information
underpig1 committed Aug 7, 2020
1 parent 7650f4f commit 3cb3567
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/browser/browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ <h3>NEURON</h3>
var code = document.getElementById("code");
var text = code.innerHTML;

for (var i in grammers.patterns) {
highlight(grammers.patterns[i].match, grammers.patterns[i].name);
}
highlight(/entity/g, "entity.name.function");

function highlight(re, cl) {
code.innerHTML = code.innerHTML.replace(re, `<span class = "${cl}">$&</span>`);
Expand Down

0 comments on commit 3cb3567

Please sign in to comment.