Skip to content

jchouse/bemhtml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bemhtml language support in Atom

Adds syntax highlighting and snippets to bemhtml file in Atom.

Originally (https://github.com/atom/language-javascript).

Based (https://github.com/feugenix/BEMHTMLSublime).

Contributions are greatly appreciated. Please fork this repository and open a pull request to add snippets, make grammar tweaks, etc.

Snippets

don't be afraid to press ⇥

block b -> block blockName,

block b: -> block: 'blockName',

elem e -> elem elemName,

elem e: -> elem: 'elemName',

block + elem be -> block blockName, elem elemName,

mod m -> mod modName modValue,

mods m: -> mods: { modName: 'modValue' },

elemMod em -> elemMod modName modValue,

elemMods em: -> elemMods: { modName: 'modValue' },

mix mi: -> mix: [ { block: blockName } ]

content c: -> content: [ { ... } ]

js js: -> js: { ... }

tag t: -> tag: 'tagName',

attrs a: -> attrs: { ... }

cls cl: -> cls: 'className',

bem: false bf: -> bem: false

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •