2015-07-20 12 views
8

Qualcuno sa come? Sto cercando questo, ma non funziona:Come creare snippet markdown in atomo.

'text.html.markdown': 
    'Bash': 
    'prefix': '`B' 
    'body': '```Bash\n\n```' 
    'rubyonrails': 
    'prefix': '`r' 
    'body': '```rubyonrails\n\n($1)```' 
+1

L'ambito predefinito per Markdown in atomo è '.source.gfm', non' text.html.markdown'. [Questo] (https://github.com/atom/language-gfm/blob/master/snippets/gfm.cson) è il modo in cui dichiarano i snippet incorporati – afontaine

+0

Sei un erudito. Vuoi postare questo come risposta? – Jwan622

risposta

18

L'ambito predefinito per Markdown in Atom è .source.gfm, non text.html.markdown.

I suoi frammenti sarebbe simile:

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

fantastico. Questo ha aiutato. – mythicalcoder