How to escape a dot in emmet
Asked Answered
V

0

13

I am using Atom to write a react-native application. Basically I need a snippet that expands to:

  <TabBarIOS>
    <TabBarIOS.Item>
    </TabBarIOS.Item>
    <TabBarIOS.Item
    </TabBarIOS.Item>
  </TabBarIOS>

if I try something like: TabBarIOS>TabBarIOS.Item*2 it uses the dot to add a className attribute, so it produces:

 <TabBarIOS>
  <TabBarIOS className="Item"></TabBarIOS>
  <TabBarIOS className="Item"></TabBarIOS>
</TabBarIOS>

The official documentation includes syntax to escape "|" and "$" with "\", sadly that does not work for dots. Is there a way to escape that dot in order to get it included in the tag name?

Valentijn answered 13/10, 2016 at 5:11 Comment(2)
have you found the answer for this?Silvie
Need Answers pleezVise

© 2022 - 2024 — McMap. All rights reserved.