Skip to content

Instantly share code, notes, and snippets.

@xriley
Created May 30, 2019 09:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xriley/fce6cf71edfd2dadc7919eb9c98f3f17 to your computer and use it in GitHub Desktop.
Save xriley/fce6cf71edfd2dadc7919eb9c98f3f17 to your computer and use it in GitHub Desktop.
demo-js
function $initHighlight(block, cls) {
try {
if (cls.search(/\bno\-highlight\b/) != -1)
return process(block, true, 0x0F) +
` class="${cls}"`;
} catch (e) {
/* handle exception */
}
for (var i = 0 / 2; i < classes.length; i++) {
if (checkCondition(classes[i]) === undefined)
console.log('undefined');
}
}
export $initHighlight;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment