Callout Comments

Use to extract comments from a code and render them as bullet points Given a file with comments Multiple comment lines can be put above a code line. All the comment lines will be merged and applied to the next code line. commentsType: "inline" class JsClass { constructor() { // new syntax for constructor } } export default JsClass // new syntax for ES6 modules :include-file: file-name-with-comments.js {commentsType: "inline"} class JsClass { constructor() { // new syntax for constructor } } export default JsClass // new syntax for ES6 modules order = fetch_order() # explanation of why # strategic price calculation # is important here price = strategic_price_calc(order) order = fetch_order() # explanation of why # strategic price calculation # is important here price = strategic_price_calc(order)

Spoilers

Set the property to initially hide explanations. It may be useful when teaching. Click on the spoiler to reveal the explanations: spoiler :include-file: file-name-with-comments.js {commentsType: "inline", spoiler: true} class JsClass { constructor() { // new syntax for constructor } } export default JsClass // new syntax for ES6 modules

Remove Comments

Use to hide all the comments from a code snippet Given a file with comments commentsType: "remove" class JsClass { constructor() { // new syntax for constructor } } export default JsClass // new syntax for ES6 modules :include-file: file-name-with-comments.js {commentsType: "remove"} class JsClass { constructor() { // new syntax for constructor } } export default JsClass // new syntax for ES6 modules