We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9579fc1 commit 6b54217Copy full SHA for 6b54217
src/plugins/filter-highlight-all/demo.js
@@ -1,8 +1,10 @@
1
+import prism from '../../global.js';
2
+
3
// elements with a .no-highlight class will be ignored
-Prism.plugins.filterHighlightAll.reject.addSelector('code.no-highlight');
-Prism.plugins.filterHighlightAll.reject.addSelector('pre.no-highlight > code');
4
+prism.plugins.filterHighlightAll.reject.addSelector('code.no-highlight');
5
+prism.plugins.filterHighlightAll.reject.addSelector('pre.no-highlight > code');
6
7
// don't highlight CSS code
-Prism.plugins.filterHighlightAll.add(env => {
8
+prism.plugins.filterHighlightAll.add(env => {
9
return env.language !== 'css';
10
});
0 commit comments