Stack snippets have three parameters:
- begin snippet
- hide
- babel
hide
hides the snippet so it doesn't take up too much space, babel
probably does something complicated that I don't understand, but begin snippet
doesn't seem to do anything.
From the name, it sounds like it should define which block of code should come first in the rendered output, but that is not the case:
console.log('JavaScript');
.CSS { }
<div>HTML</div>
When I set begin snippet: css
or begin snippet: html
it still starts with JavaScript. Is this a bug, or does begin snippet
do something else?
hide: true
orhide: false
andbabel: true
orbabel: false
, nottrue babel
or justhide
. And Babel is used for transpilation. – Sebastian Simon Aug 10 '18 at 12:05begin snippet: js
means JavaScript and JS related technologies. Maybe in the future there will be Python snippets that havebegin snippet: python
and if Python has related technologies, these will be included as blocks as well. – Sebastian Simon Aug 10 '18 at 12:08begin
snippet: js
hide: false
babel: true
– James Douglas Aug 10 '18 at 12:10