How to create markdowns of fragments in an atom.

Does anyone know how? I am trying to do this, but this does not work:

'text.html.markdown': 'Bash': 'prefix': '`B' 'body': '```Bash\n\n```' 'rubyonrails': 'prefix': '`r' 'body': '```rubyonrails\n\n($1)```' 
+8
atom editor
source share
1 answer

The default scope for markdowns in the atom is -.source.gfm, not text.html.markdown.

Your snippets will look like this:

 '.source.gfm': 'Bash': 'prefix': '`B' 'body': '```Bash\n\n```' 'rubyonrails': 'prefix': '`r' 'body': '```rubyonrails\n\n($1)```' 
+18
source share

All Articles